mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-19 18:01:31 +00:00
Use stack IR when emitting text format (#312)
This commit is contained in:
2
src/glue/js/binaryen.d.ts
vendored
2
src/glue/js/binaryen.d.ts
vendored
@ -5,7 +5,9 @@
|
||||
declare namespace binaryen {
|
||||
class Module {
|
||||
constructor(ref: number);
|
||||
runPasses(passes: string[]): void;
|
||||
emitText(): string;
|
||||
emitStackIR(optimize?: boolean): string;
|
||||
emitAsmjs(): string;
|
||||
}
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Reference in New Issue
Block a user