Use stack IR when emitting text format (#312)

This commit is contained in:
Daniel Wirtz
2018-11-08 08:04:24 +01:00
committed by GitHub
parent 7135af36bd
commit 2bdc2a72f1
194 changed files with 239934 additions and 340697 deletions

View File

@ -5,7 +5,9 @@
declare namespace binaryen {
class Module {
constructor(ref: number);
runPasses(passes: string[]): void;
emitText(): string;
emitStackIR(optimize?: boolean): string;
emitAsmjs(): string;
}
}

View File

@ -14,7 +14,7 @@ import "./i64";
import { Module } from "../../module";
Module.prototype.toText = function(this: Module) {
return new binaryen.Module(this.ref).emitText();
return new binaryen.Module(this.ref).emitStackIR();
};
Module.prototype.toAsmjs = function(this: Module) {