mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-25 07:02:13 +00:00
Always add a null function at table index zero
This allows function references (a table index internally) to be nullable
This commit is contained in:
parent
9613d29d93
commit
16d1a833dd
@ -286,7 +286,7 @@ export class Compiler extends DiagnosticEmitter {
|
||||
/** Map of already compiled static string segments. */
|
||||
stringSegments: Map<string,MemorySegment> = new Map();
|
||||
/** Function table being compiled. */
|
||||
functionTable: string[] = [];
|
||||
functionTable: string[] = [ "null" ];
|
||||
/** Argument count helper global. */
|
||||
argcVar: GlobalRef = 0;
|
||||
/** Argument count helper setter. */
|
||||
@ -394,10 +394,13 @@ export class Compiler extends DiagnosticEmitter {
|
||||
var functionTable = this.functionTable;
|
||||
var functionTableSize = functionTable.length;
|
||||
var functionTableExported = false;
|
||||
if (functionTableSize) {
|
||||
module.setFunctionTable(functionTable);
|
||||
module.addTableExport("0", "table");
|
||||
functionTableExported = true;
|
||||
module.setFunctionTable(functionTable);
|
||||
if (functionTableSize) { // index 0 is NULL
|
||||
module.addFunction("null", this.ensureFunctionType(null, Type.void), null, module.createBlock(null, []));
|
||||
if (functionTableSize > 1) {
|
||||
module.addTableExport("0", "table");
|
||||
functionTableExported = true;
|
||||
}
|
||||
}
|
||||
|
||||
// import table if requested (default table is named '0' by Binaryen)
|
||||
|
@ -53,4 +53,7 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 6 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -6,6 +6,8 @@
|
||||
(global $abi/condition (mut i32) (i32.const 0))
|
||||
(global $abi/y (mut i32) (i32.const 0))
|
||||
(global $HEAP_BASE i32 (i32.const 24))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\06\00\00\00a\00b\00i\00.\00t\00s\00")
|
||||
(export "memory" (memory $0))
|
||||
@ -283,4 +285,6 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 6 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -1,4 +1,8 @@
|
||||
(module
|
||||
(type $v (func))
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(func $start (; 0 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -9,6 +9,8 @@
|
||||
(global $ASC_FEATURE_MUTABLE_GLOBAL i32 (i32.const 0))
|
||||
(global $ASC_FEATURE_SIGN_EXTENSION i32 (i32.const 0))
|
||||
(global $HEAP_BASE i32 (i32.const 8))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(start $start)
|
||||
@ -38,4 +40,6 @@
|
||||
(i32.const 0)
|
||||
)
|
||||
)
|
||||
(func $null (; 1 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -1,6 +1,10 @@
|
||||
(module
|
||||
(type $v (func))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\t\00\00\00a\00s\00s\00e\00r\00t\00.\00t\00s")
|
||||
(data (i32.const 32) "\0c\00\00\00m\00u\00s\00t\00 \00b\00e\00 \00t\00r\00u\00e")
|
||||
(export "memory" (memory $0))
|
||||
(func $start (; 0 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -3,6 +3,8 @@
|
||||
(type $v (func))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(global $HEAP_BASE i32 (i32.const 60))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\t\00\00\00a\00s\00s\00e\00r\00t\00.\00t\00s\00")
|
||||
(data (i32.const 32) "\0c\00\00\00m\00u\00s\00t\00 \00b\00e\00 \00t\00r\00u\00e\00")
|
||||
@ -139,4 +141,6 @@
|
||||
(unreachable)
|
||||
)
|
||||
)
|
||||
(func $null (; 2 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -1148,4 +1148,7 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 5 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -11,6 +11,8 @@
|
||||
(global $binary/f (mut f32) (f32.const 0))
|
||||
(global $binary/F (mut f64) (f64.const 0))
|
||||
(global $HEAP_BASE i32 (i32.const 8))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(start $start)
|
||||
@ -4920,4 +4922,6 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 7 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -11,9 +11,9 @@
|
||||
(global $builtins/u (mut i32) (i32.const 0))
|
||||
(global $builtins/U (mut i64) (i64.const 0))
|
||||
(global $builtins/s (mut i32) (i32.const 0))
|
||||
(global $builtins/fn (mut i32) (i32.const 0))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $start~anonymous|0)
|
||||
(global $builtins/fn (mut i32) (i32.const 1))
|
||||
(table 2 2 anyfunc)
|
||||
(elem (i32.const 0) $builtins/test $start~anonymous|1)
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\0b\00\00\00b\00u\00i\00l\00t\00i\00n\00s\00.\00t\00s")
|
||||
(data (i32.const 40) "\01\00\00\001")
|
||||
@ -21,7 +21,7 @@
|
||||
(export "table" (table $0))
|
||||
(export "test" (func $builtins/test))
|
||||
(start $start)
|
||||
(func $start~anonymous|0 (; 1 ;) (; has Stack IR ;) (type $iiv) (param $0 i32) (param $1 i32)
|
||||
(func $start~anonymous|1 (; 1 ;) (; has Stack IR ;) (type $iiv) (param $0 i32) (param $1 i32)
|
||||
(nop)
|
||||
)
|
||||
(func $builtins/test (; 2 ;) (; has Stack IR ;) (type $v)
|
||||
|
@ -14,7 +14,7 @@
|
||||
(global $builtins/u (mut i32) (i32.const 0))
|
||||
(global $builtins/U (mut i64) (i64.const 0))
|
||||
(global $builtins/s (mut i32) (i32.const 0))
|
||||
(global $builtins/fn (mut i32) (i32.const 0))
|
||||
(global $builtins/fn (mut i32) (i32.const 1))
|
||||
(global $~lib/builtins/i8.MIN_VALUE i32 (i32.const -128))
|
||||
(global $~lib/builtins/i8.MAX_VALUE i32 (i32.const 127))
|
||||
(global $~lib/builtins/i16.MIN_VALUE i32 (i32.const -32768))
|
||||
@ -44,8 +44,8 @@
|
||||
(global $~lib/builtins/f64.MAX_SAFE_INTEGER f64 (f64.const 9007199254740991))
|
||||
(global $~lib/builtins/f64.EPSILON f64 (f64.const 2.220446049250313e-16))
|
||||
(global $HEAP_BASE i32 (i32.const 48))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $start~anonymous|0)
|
||||
(table 2 2 anyfunc)
|
||||
(elem (i32.const 0) $null $start~anonymous|1)
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\0b\00\00\00b\00u\00i\00l\00t\00i\00n\00s\00.\00t\00s\00")
|
||||
(data (i32.const 40) "\01\00\00\001\00")
|
||||
@ -53,7 +53,7 @@
|
||||
(export "table" (table $0))
|
||||
(export "test" (func $builtins/test))
|
||||
(start $start)
|
||||
(func $start~anonymous|0 (; 1 ;) (type $iiv) (param $0 i32) (param $1 i32)
|
||||
(func $start~anonymous|1 (; 1 ;) (type $iiv) (param $0 i32) (param $1 i32)
|
||||
(nop)
|
||||
)
|
||||
(func $builtins/test (; 2 ;) (type $v)
|
||||
@ -3123,4 +3123,6 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 4 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -80,4 +80,7 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 5 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -6,6 +6,8 @@
|
||||
(type $v (func))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(global $HEAP_BASE i32 (i32.const 44))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\10\00\00\00c\00a\00l\00l\00-\00i\00n\00f\00e\00r\00r\00e\00d\00.\00t\00s\00")
|
||||
(export "memory" (memory $0))
|
||||
@ -100,4 +102,6 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 6 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -4,9 +4,9 @@
|
||||
(type $v (func))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(global $~argc (mut i32) (i32.const 0))
|
||||
(global $call-optional/optIndirect (mut i32) (i32.const 0))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $call-optional/opt|trampoline)
|
||||
(global $call-optional/optIndirect (mut i32) (i32.const 1))
|
||||
(table 2 2 anyfunc)
|
||||
(elem (i32.const 0) $null $call-optional/opt|trampoline)
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\10\00\00\00c\00a\00l\00l\00-\00o\00p\00t\00i\00o\00n\00a\00l\00.\00t\00s")
|
||||
(export "memory" (memory $0))
|
||||
@ -177,4 +177,7 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 4 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -4,10 +4,10 @@
|
||||
(type $v (func))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(global $~argc (mut i32) (i32.const 0))
|
||||
(global $call-optional/optIndirect (mut i32) (i32.const 0))
|
||||
(global $call-optional/optIndirect (mut i32) (i32.const 1))
|
||||
(global $HEAP_BASE i32 (i32.const 44))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $call-optional/opt|trampoline)
|
||||
(table 2 2 anyfunc)
|
||||
(elem (i32.const 0) $null $call-optional/opt|trampoline)
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\10\00\00\00c\00a\00l\00l\00-\00o\00p\00t\00i\00o\00n\00a\00l\00.\00t\00s\00")
|
||||
(export "memory" (memory $0))
|
||||
@ -206,4 +206,6 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 4 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -1,5 +1,6 @@
|
||||
(module
|
||||
(type $iv (func (param i32)))
|
||||
(type $v (func))
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(export "test" (func $class-extends/test))
|
||||
@ -23,4 +24,7 @@
|
||||
(i32.const 3)
|
||||
)
|
||||
)
|
||||
(func $null (; 1 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -1,6 +1,9 @@
|
||||
(module
|
||||
(type $iv (func (param i32)))
|
||||
(type $v (func))
|
||||
(global $HEAP_BASE i32 (i32.const 8))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(export "test" (func $class-extends/test))
|
||||
@ -24,4 +27,6 @@
|
||||
(i32.const 3)
|
||||
)
|
||||
)
|
||||
(func $null (; 1 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -17,4 +17,7 @@
|
||||
(i32.const 0)
|
||||
)
|
||||
)
|
||||
(func $null (; 3 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -2,6 +2,8 @@
|
||||
(type $iv (func (param i32)))
|
||||
(type $v (func))
|
||||
(global $HEAP_BASE i32 (i32.const 8))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(export "test" (func $class-overloading/test))
|
||||
@ -19,4 +21,6 @@
|
||||
(i32.const 0)
|
||||
)
|
||||
)
|
||||
(func $null (; 3 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -1,5 +1,6 @@
|
||||
(module
|
||||
(type $i (func (result i32)))
|
||||
(type $v (func))
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(export "test" (func $class-with-boolean-field/test))
|
||||
@ -12,4 +13,7 @@
|
||||
(i32.const 0)
|
||||
)
|
||||
)
|
||||
(func $null (; 1 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -1,6 +1,9 @@
|
||||
(module
|
||||
(type $i (func (result i32)))
|
||||
(type $v (func))
|
||||
(global $HEAP_BASE i32 (i32.const 8))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(export "test" (func $class-with-boolean-field/test))
|
||||
@ -14,4 +17,6 @@
|
||||
(get_local $0)
|
||||
)
|
||||
)
|
||||
(func $null (; 1 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -67,4 +67,7 @@
|
||||
(call $class/Animal.sub<f32>)
|
||||
)
|
||||
)
|
||||
(func $null (; 4 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -9,6 +9,8 @@
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(global $class/Animal.ONE (mut i32) (i32.const 1))
|
||||
(global $HEAP_BASE i32 (i32.const 28))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\08\00\00\00c\00l\00a\00s\00s\00.\00t\00s\00")
|
||||
(export "memory" (memory $0))
|
||||
@ -152,4 +154,6 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 7 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -1,4 +1,8 @@
|
||||
(module
|
||||
(type $v (func))
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(func $null (; 0 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -1,5 +1,10 @@
|
||||
(module
|
||||
(type $v (func))
|
||||
(global $HEAP_BASE i32 (i32.const 8))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(func $null (; 0 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -216,4 +216,7 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 2 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -5,6 +5,8 @@
|
||||
(global $comma/a (mut i32) (i32.const 0))
|
||||
(global $comma/b (mut i32) (i32.const 0))
|
||||
(global $HEAP_BASE i32 (i32.const 28))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\08\00\00\00c\00o\00m\00m\00a\00.\00t\00s\00")
|
||||
(export "memory" (memory $0))
|
||||
@ -273,4 +275,6 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 2 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -44,4 +44,7 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 4 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -7,6 +7,8 @@
|
||||
(import "my" "externalFunction" (func $declare/my.externalFunction))
|
||||
(import "my" "externalConstant" (global $declare/my.externalConstant i32))
|
||||
(global $HEAP_BASE i32 (i32.const 32))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\n\00\00\00d\00e\00c\00l\00a\00r\00e\00.\00t\00s\00")
|
||||
(export "memory" (memory $0))
|
||||
@ -49,4 +51,6 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 4 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -196,4 +196,7 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 2 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -6,6 +6,8 @@
|
||||
(global $do/m (mut i32) (i32.const 0))
|
||||
(global $do/o (mut i32) (i32.const 0))
|
||||
(global $HEAP_BASE i32 (i32.const 24))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\05\00\00\00d\00o\00.\00t\00s\00")
|
||||
(export "memory" (memory $0))
|
||||
@ -240,4 +242,6 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 2 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -1,4 +1,8 @@
|
||||
(module
|
||||
(type $v (func))
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(func $null (; 0 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -1,5 +1,10 @@
|
||||
(module
|
||||
(type $v (func))
|
||||
(global $HEAP_BASE i32 (i32.const 8))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(func $null (; 0 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -48,4 +48,7 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 2 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -19,6 +19,8 @@
|
||||
(global $enum/SelfReference.ONE i32 (i32.const 1))
|
||||
(global $enum/enumType (mut i32) (i32.const 0))
|
||||
(global $HEAP_BASE i32 (i32.const 8))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(export "Implicit.ZERO" (global $enum/Implicit.ZERO))
|
||||
@ -56,4 +58,6 @@
|
||||
(get_global $enum/NonConstant.ONE)
|
||||
)
|
||||
)
|
||||
(func $null (; 2 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -5,6 +5,8 @@
|
||||
(global $export/b i32 (i32.const 2))
|
||||
(global $export/c i32 (i32.const 3))
|
||||
(global $HEAP_BASE i32 (i32.const 8))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(export "add" (func $export/add))
|
||||
@ -35,4 +37,6 @@
|
||||
(func $export/ns.two (; 3 ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
(func $null (; 4 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -189,7 +189,10 @@
|
||||
(get_global $~lib/allocator/arena/startOffset)
|
||||
)
|
||||
)
|
||||
(func $exports/subOpt|trampoline (; 10 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $null (; 10 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
(func $exports/subOpt|trampoline (; 11 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(block $1of1
|
||||
(block $0of1
|
||||
(block $outOfRange
|
||||
@ -211,12 +214,12 @@
|
||||
(get_local $1)
|
||||
)
|
||||
)
|
||||
(func $~setargc (; 11 ;) (; has Stack IR ;) (type $iv) (param $0 i32)
|
||||
(func $~setargc (; 12 ;) (; has Stack IR ;) (type $iv) (param $0 i32)
|
||||
(set_global $~argc
|
||||
(get_local $0)
|
||||
)
|
||||
)
|
||||
(func $exports/Car#constructor|trampoline (; 12 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $exports/Car#constructor|trampoline (; 13 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(block $1of1
|
||||
(block $0of1
|
||||
(block $outOfRange
|
||||
|
@ -20,6 +20,8 @@
|
||||
(global $exports/outer.inner.a i32 (i32.const 42))
|
||||
(global $HEAP_BASE i32 (i32.const 8))
|
||||
(global $~argc (mut i32) (i32.const 0))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(export "add" (func $exports/add))
|
||||
@ -289,7 +291,9 @@
|
||||
(get_global $~lib/allocator/arena/startOffset)
|
||||
)
|
||||
)
|
||||
(func $exports/subOpt|trampoline (; 16 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $null (; 16 ;) (type $v)
|
||||
)
|
||||
(func $exports/subOpt|trampoline (; 17 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(block $1of1
|
||||
(block $0of1
|
||||
(block $outOfRange
|
||||
@ -311,12 +315,12 @@
|
||||
(get_local $1)
|
||||
)
|
||||
)
|
||||
(func $~setargc (; 17 ;) (type $iv) (param $0 i32)
|
||||
(func $~setargc (; 18 ;) (type $iv) (param $0 i32)
|
||||
(set_global $~argc
|
||||
(get_local $0)
|
||||
)
|
||||
)
|
||||
(func $exports/Car#constructor|trampoline (; 18 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $exports/Car#constructor|trampoline (; 19 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(block $1of1
|
||||
(block $0of1
|
||||
(block $outOfRange
|
||||
@ -335,18 +339,18 @@
|
||||
(get_local $1)
|
||||
)
|
||||
)
|
||||
(func $Car#get:doors (; 19 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $Car#get:doors (; 20 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(i32.load
|
||||
(get_local $0)
|
||||
)
|
||||
)
|
||||
(func $Car#set:doors (; 20 ;) (type $iiv) (param $0 i32) (param $1 i32)
|
||||
(func $Car#set:doors (; 21 ;) (type $iiv) (param $0 i32) (param $1 i32)
|
||||
(i32.store
|
||||
(get_local $0)
|
||||
(get_local $1)
|
||||
)
|
||||
)
|
||||
(func $exports/vehicles.Car#constructor|trampoline (; 21 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $exports/vehicles.Car#constructor|trampoline (; 22 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(block $1of1
|
||||
(block $0of1
|
||||
(block $outOfRange
|
||||
@ -365,12 +369,12 @@
|
||||
(get_local $1)
|
||||
)
|
||||
)
|
||||
(func $vehicles.Car#get:doors (; 22 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $vehicles.Car#get:doors (; 23 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(i32.load
|
||||
(get_local $0)
|
||||
)
|
||||
)
|
||||
(func $vehicles.Car#set:doors (; 23 ;) (type $iiv) (param $0 i32) (param $1 i32)
|
||||
(func $vehicles.Car#set:doors (; 24 ;) (type $iiv) (param $0 i32) (param $1 i32)
|
||||
(i32.store
|
||||
(get_local $0)
|
||||
(get_local $1)
|
||||
|
@ -12,4 +12,7 @@
|
||||
(export "two" (func $external/two))
|
||||
(export "three" (func $external/three))
|
||||
(export "var_" (global $external/var_))
|
||||
(func $null (; 4 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -6,6 +6,8 @@
|
||||
(import "foo" "baz" (func $external/three))
|
||||
(import "foo" "var" (global $external/var_ i32))
|
||||
(global $HEAP_BASE i32 (i32.const 8))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(export "foo.bar" (func $external/foo.bar))
|
||||
@ -13,4 +15,6 @@
|
||||
(export "two" (func $external/two))
|
||||
(export "three" (func $external/three))
|
||||
(export "var_" (global $external/var_))
|
||||
(func $null (; 4 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -203,4 +203,7 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 2 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -4,6 +4,8 @@
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(global $for/i (mut i32) (i32.const 0))
|
||||
(global $HEAP_BASE i32 (i32.const 24))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\06\00\00\00f\00o\00r\00.\00t\00s\00")
|
||||
(export "memory" (memory $0))
|
||||
@ -257,4 +259,6 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 2 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -4,25 +4,25 @@
|
||||
(type $v (func))
|
||||
(type $i (func (result i32)))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(global $function-expression/f1 (mut i32) (i32.const 0))
|
||||
(global $function-expression/f1 (mut i32) (i32.const 1))
|
||||
(global $~argc (mut i32) (i32.const 0))
|
||||
(global $function-expression/f2 (mut i32) (i32.const 1))
|
||||
(global $function-expression/f3 (mut i32) (i32.const 2))
|
||||
(global $function-expression/f4 (mut i32) (i32.const 3))
|
||||
(table 4 4 anyfunc)
|
||||
(elem (i32.const 0) $start~anonymous|0 $start~anonymous|0 $start~someName|2 $start~anonymous|3)
|
||||
(global $function-expression/f2 (mut i32) (i32.const 2))
|
||||
(global $function-expression/f3 (mut i32) (i32.const 3))
|
||||
(global $function-expression/f4 (mut i32) (i32.const 4))
|
||||
(table 5 5 anyfunc)
|
||||
(elem (i32.const 0) $start~someName|3 $start~anonymous|1 $start~anonymous|1 $start~someName|3 $start~anonymous|4)
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\16\00\00\00f\00u\00n\00c\00t\00i\00o\00n\00-\00e\00x\00p\00r\00e\00s\00s\00i\00o\00n\00.\00t\00s")
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $start~anonymous|0 (; 1 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $start~anonymous|1 (; 1 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
||||
(get_local $0)
|
||||
)
|
||||
(func $start~someName|2 (; 2 ;) (; has Stack IR ;) (type $v)
|
||||
(func $start~someName|3 (; 2 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
(func $start~anonymous|3 (; 3 ;) (; has Stack IR ;) (type $i) (result i32)
|
||||
(func $start~anonymous|4 (; 3 ;) (; has Stack IR ;) (type $i) (result i32)
|
||||
(i32.const 1)
|
||||
)
|
||||
(func $start (; 4 ;) (; has Stack IR ;) (type $v)
|
||||
|
@ -4,29 +4,29 @@
|
||||
(type $v (func))
|
||||
(type $i (func (result i32)))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(global $function-expression/f1 (mut i32) (i32.const 0))
|
||||
(global $function-expression/f1 (mut i32) (i32.const 1))
|
||||
(global $~argc (mut i32) (i32.const 0))
|
||||
(global $function-expression/f2 (mut i32) (i32.const 1))
|
||||
(global $function-expression/f3 (mut i32) (i32.const 2))
|
||||
(global $function-expression/f4 (mut i32) (i32.const 3))
|
||||
(global $function-expression/f2 (mut i32) (i32.const 2))
|
||||
(global $function-expression/f3 (mut i32) (i32.const 3))
|
||||
(global $function-expression/f4 (mut i32) (i32.const 4))
|
||||
(global $HEAP_BASE i32 (i32.const 56))
|
||||
(table 4 4 anyfunc)
|
||||
(elem (i32.const 0) $start~anonymous|0 $start~anonymous|1 $start~someName|2 $start~anonymous|3)
|
||||
(table 5 5 anyfunc)
|
||||
(elem (i32.const 0) $null $start~anonymous|1 $start~anonymous|2 $start~someName|3 $start~anonymous|4)
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\16\00\00\00f\00u\00n\00c\00t\00i\00o\00n\00-\00e\00x\00p\00r\00e\00s\00s\00i\00o\00n\00.\00t\00s\00")
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $start~anonymous|0 (; 1 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $start~anonymous|1 (; 1 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(get_local $0)
|
||||
)
|
||||
(func $start~anonymous|1 (; 2 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $start~anonymous|2 (; 2 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(get_local $0)
|
||||
)
|
||||
(func $start~someName|2 (; 3 ;) (type $v)
|
||||
(func $start~someName|3 (; 3 ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
(func $start~anonymous|3 (; 4 ;) (type $i) (result i32)
|
||||
(func $start~anonymous|4 (; 4 ;) (type $i) (result i32)
|
||||
(i32.const 1)
|
||||
)
|
||||
(func $start (; 5 ;) (type $v)
|
||||
@ -113,4 +113,6 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 6 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -11,39 +11,39 @@
|
||||
(global $function-types/i32Adder (mut i32) (i32.const 0))
|
||||
(global $~argc (mut i32) (i32.const 0))
|
||||
(global $function-types/i64Adder (mut i32) (i32.const 0))
|
||||
(table 4 4 anyfunc)
|
||||
(elem (i32.const 0) $function-types/makeAdder<i32>~anonymous|0 $function-types/makeAdder<i64>~anonymous|1 $function-types/makeAdder<f64>~anonymous|2 $function-types/makeAdder<i32>~anonymous|0)
|
||||
(table 5 5 anyfunc)
|
||||
(elem (i32.const 0) $null $function-types/makeAdder<i32>~anonymous|1 $function-types/makeAdder<i64>~anonymous|2 $function-types/makeAdder<f64>~anonymous|3 $function-types/makeAdder<i32>~anonymous|1)
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\11\00\00\00f\00u\00n\00c\00t\00i\00o\00n\00-\00t\00y\00p\00e\00s\00.\00t\00s")
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $function-types/makeAdder<i32>~anonymous|0 (; 1 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $function-types/makeAdder<i32>~anonymous|1 (; 1 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(i32.add
|
||||
(get_local $0)
|
||||
(get_local $1)
|
||||
)
|
||||
)
|
||||
(func $function-types/makeAdder<i32> (; 2 ;) (; has Stack IR ;) (type $i) (result i32)
|
||||
(i32.const 0)
|
||||
(i32.const 1)
|
||||
)
|
||||
(func $function-types/makeAdder<i64>~anonymous|1 (; 3 ;) (; has Stack IR ;) (type $III) (param $0 i64) (param $1 i64) (result i64)
|
||||
(func $function-types/makeAdder<i64>~anonymous|2 (; 3 ;) (; has Stack IR ;) (type $III) (param $0 i64) (param $1 i64) (result i64)
|
||||
(i64.add
|
||||
(get_local $0)
|
||||
(get_local $1)
|
||||
)
|
||||
)
|
||||
(func $function-types/makeAdder<i64> (; 4 ;) (; has Stack IR ;) (type $i) (result i32)
|
||||
(i32.const 1)
|
||||
(i32.const 2)
|
||||
)
|
||||
(func $function-types/makeAdder<f64>~anonymous|2 (; 5 ;) (; has Stack IR ;) (type $FFF) (param $0 f64) (param $1 f64) (result f64)
|
||||
(func $function-types/makeAdder<f64>~anonymous|3 (; 5 ;) (; has Stack IR ;) (type $FFF) (param $0 f64) (param $1 f64) (result f64)
|
||||
(f64.add
|
||||
(get_local $0)
|
||||
(get_local $1)
|
||||
)
|
||||
)
|
||||
(func $function-types/makeAdder<f64> (; 6 ;) (; has Stack IR ;) (type $i) (result i32)
|
||||
(i32.const 2)
|
||||
(i32.const 3)
|
||||
)
|
||||
(func $function-types/doAddWithFn<i32> (; 7 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
||||
(set_global $~argc
|
||||
@ -201,7 +201,7 @@
|
||||
(call $function-types/doAddWithFn<i32>
|
||||
(i32.const 4)
|
||||
(i32.const 5)
|
||||
(i32.const 3)
|
||||
(i32.const 4)
|
||||
)
|
||||
(i32.const 9)
|
||||
)
|
||||
@ -253,4 +253,7 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 11 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -11,39 +11,39 @@
|
||||
(global $~argc (mut i32) (i32.const 0))
|
||||
(global $function-types/i64Adder (mut i32) (i32.const 0))
|
||||
(global $HEAP_BASE i32 (i32.const 48))
|
||||
(table 4 4 anyfunc)
|
||||
(elem (i32.const 0) $function-types/makeAdder<i32>~anonymous|0 $function-types/makeAdder<i64>~anonymous|1 $function-types/makeAdder<f64>~anonymous|2 $function-types/addI32)
|
||||
(table 5 5 anyfunc)
|
||||
(elem (i32.const 0) $null $function-types/makeAdder<i32>~anonymous|1 $function-types/makeAdder<i64>~anonymous|2 $function-types/makeAdder<f64>~anonymous|3 $function-types/addI32)
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\11\00\00\00f\00u\00n\00c\00t\00i\00o\00n\00-\00t\00y\00p\00e\00s\00.\00t\00s\00")
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $function-types/makeAdder<i32>~anonymous|0 (; 1 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $function-types/makeAdder<i32>~anonymous|1 (; 1 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(i32.add
|
||||
(get_local $0)
|
||||
(get_local $1)
|
||||
)
|
||||
)
|
||||
(func $function-types/makeAdder<i32> (; 2 ;) (type $i) (result i32)
|
||||
(i32.const 0)
|
||||
(i32.const 1)
|
||||
)
|
||||
(func $function-types/makeAdder<i64>~anonymous|1 (; 3 ;) (type $III) (param $0 i64) (param $1 i64) (result i64)
|
||||
(func $function-types/makeAdder<i64>~anonymous|2 (; 3 ;) (type $III) (param $0 i64) (param $1 i64) (result i64)
|
||||
(i64.add
|
||||
(get_local $0)
|
||||
(get_local $1)
|
||||
)
|
||||
)
|
||||
(func $function-types/makeAdder<i64> (; 4 ;) (type $i) (result i32)
|
||||
(i32.const 1)
|
||||
(i32.const 2)
|
||||
)
|
||||
(func $function-types/makeAdder<f64>~anonymous|2 (; 5 ;) (type $FFF) (param $0 f64) (param $1 f64) (result f64)
|
||||
(func $function-types/makeAdder<f64>~anonymous|3 (; 5 ;) (type $FFF) (param $0 f64) (param $1 f64) (result f64)
|
||||
(f64.add
|
||||
(get_local $0)
|
||||
(get_local $1)
|
||||
)
|
||||
)
|
||||
(func $function-types/makeAdder<f64> (; 6 ;) (type $i) (result i32)
|
||||
(i32.const 2)
|
||||
(i32.const 3)
|
||||
)
|
||||
(func $function-types/doAddWithFn<i32> (; 7 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
||||
(set_global $~argc
|
||||
@ -237,7 +237,7 @@
|
||||
(call $function-types/doAddWithFn<i32>
|
||||
(i32.const 4)
|
||||
(i32.const 5)
|
||||
(i32.const 3)
|
||||
(i32.const 4)
|
||||
)
|
||||
(i32.const 9)
|
||||
)
|
||||
@ -300,4 +300,6 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 13 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -15,6 +15,8 @@
|
||||
(type $fff (func (param f32 f32) (result f32)))
|
||||
(type $FFF (func (param f64 f64) (result f64)))
|
||||
(global $HEAP_BASE i32 (i32.const 8))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(start $start)
|
||||
@ -143,4 +145,6 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 16 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -6,8 +6,8 @@
|
||||
(global $~lib/allocator/arena/startOffset (mut i32) (i32.const 0))
|
||||
(global $~lib/allocator/arena/offset (mut i32) (i32.const 0))
|
||||
(global $~argc (mut i32) (i32.const 0))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $getter-call/C#get:x~anonymous|0)
|
||||
(table 2 2 anyfunc)
|
||||
(elem (i32.const 0) $null $getter-call/C#get:x~anonymous|1)
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
@ -103,11 +103,11 @@
|
||||
(i32.const 0)
|
||||
)
|
||||
)
|
||||
(func $getter-call/C#get:x~anonymous|0 (; 2 ;) (; has Stack IR ;) (type $i) (result i32)
|
||||
(func $getter-call/C#get:x~anonymous|1 (; 2 ;) (; has Stack IR ;) (type $i) (result i32)
|
||||
(i32.const 42)
|
||||
)
|
||||
(func $getter-call/C#get:x (; 3 ;) (; has Stack IR ;) (type $FUNCSIG$i) (result i32)
|
||||
(i32.const 0)
|
||||
(i32.const 1)
|
||||
)
|
||||
(func $getter-call/test (; 4 ;) (; has Stack IR ;) (type $i) (result i32)
|
||||
(local $0 i32)
|
||||
@ -129,4 +129,7 @@
|
||||
(get_global $~lib/allocator/arena/startOffset)
|
||||
)
|
||||
)
|
||||
(func $null (; 6 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -10,8 +10,8 @@
|
||||
(global $~lib/allocator/arena/offset (mut i32) (i32.const 0))
|
||||
(global $~argc (mut i32) (i32.const 0))
|
||||
(global $HEAP_BASE i32 (i32.const 8))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $getter-call/C#get:x~anonymous|0)
|
||||
(table 2 2 anyfunc)
|
||||
(elem (i32.const 0) $null $getter-call/C#get:x~anonymous|1)
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
@ -135,11 +135,11 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $getter-call/C#get:x~anonymous|0 (; 2 ;) (type $i) (result i32)
|
||||
(func $getter-call/C#get:x~anonymous|1 (; 2 ;) (type $i) (result i32)
|
||||
(i32.const 42)
|
||||
)
|
||||
(func $getter-call/C#get:x (; 3 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(i32.const 0)
|
||||
(i32.const 1)
|
||||
)
|
||||
(func $getter-call/test (; 4 ;) (type $i) (result i32)
|
||||
(local $0 i32)
|
||||
@ -179,4 +179,6 @@
|
||||
(get_global $~lib/allocator/arena/startOffset)
|
||||
)
|
||||
)
|
||||
(func $null (; 6 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -67,4 +67,7 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 4 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -6,6 +6,8 @@
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(global $getter-setter/Foo._bar (mut i32) (i32.const 0))
|
||||
(global $HEAP_BASE i32 (i32.const 44))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\10\00\00\00g\00e\00t\00t\00e\00r\00-\00s\00e\00t\00t\00e\00r\00.\00t\00s\00")
|
||||
(export "memory" (memory $0))
|
||||
@ -79,4 +81,6 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 4 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -2,6 +2,7 @@
|
||||
(type $i (func (result i32)))
|
||||
(type $iiv (func (param i32 i32)))
|
||||
(type $iiiiv (func (param i32 i32 i32 i32)))
|
||||
(type $v (func))
|
||||
(global $../../examples/i64-polyfill/assembly/i64/lo (mut i32) (i32.const 0))
|
||||
(global $../../examples/i64-polyfill/assembly/i64/hi (mut i32) (i32.const 0))
|
||||
(memory $0 0)
|
||||
@ -1054,4 +1055,7 @@
|
||||
(i32.const 0)
|
||||
)
|
||||
)
|
||||
(func $null (; 31 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -2,11 +2,14 @@
|
||||
(type $i (func (result i32)))
|
||||
(type $iiv (func (param i32 i32)))
|
||||
(type $iiiiv (func (param i32 i32 i32 i32)))
|
||||
(type $v (func))
|
||||
(global $../../examples/i64-polyfill/assembly/i64/lo (mut i32) (i32.const 0))
|
||||
(global $../../examples/i64-polyfill/assembly/i64/hi (mut i32) (i32.const 0))
|
||||
(global $NaN f64 (f64.const nan:0x8000000000000))
|
||||
(global $Infinity f64 (f64.const inf))
|
||||
(global $HEAP_BASE i32 (i32.const 8))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(export "getHi" (func $../../examples/i64-polyfill/assembly/i64/getHi))
|
||||
@ -1128,4 +1131,6 @@
|
||||
(i32.const 0)
|
||||
)
|
||||
)
|
||||
(func $null (; 31 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -137,4 +137,7 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 5 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -4,6 +4,8 @@
|
||||
(type $v (func))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(global $HEAP_BASE i32 (i32.const 24))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\05\00\00\00i\00f\00.\00t\00s\00")
|
||||
(export "memory" (memory $0))
|
||||
@ -179,4 +181,6 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 6 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -5,6 +5,8 @@
|
||||
(global $export/b i32 (i32.const 2))
|
||||
(global $export/c i32 (i32.const 3))
|
||||
(global $HEAP_BASE i32 (i32.const 8))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(start $start)
|
||||
@ -69,4 +71,6 @@
|
||||
)
|
||||
(call $export/ns.two)
|
||||
)
|
||||
(func $null (; 5 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -16,6 +16,8 @@
|
||||
(global $infer-type/inferi (mut i32) (i32.const -2147483648))
|
||||
(global $infer-type/inferu (mut i32) (i32.const 2147483647))
|
||||
(global $HEAP_BASE i32 (i32.const 40))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\0d\00\00\00i\00n\00f\00e\00r\00-\00t\00y\00p\00e\00.\00t\00s\00")
|
||||
(export "memory" (memory $0))
|
||||
@ -154,4 +156,6 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 7 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -14,4 +14,7 @@
|
||||
(func $inlining-recursive/bar (; 2 ;) (; has Stack IR ;) (type $v)
|
||||
(call $inlining-recursive/baz)
|
||||
)
|
||||
(func $null (; 3 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -1,6 +1,8 @@
|
||||
(module
|
||||
(type $v (func))
|
||||
(global $HEAP_BASE i32 (i32.const 8))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(export "foo" (func $inlining-recursive/foo))
|
||||
@ -21,4 +23,6 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 3 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -5,8 +5,8 @@
|
||||
(type $ii (func (param i32) (result i32)))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(global $~argc (mut i32) (i32.const 0))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $inlining/test_funcs~anonymous|0)
|
||||
(table 2 2 anyfunc)
|
||||
(elem (i32.const 0) $null $inlining/test_funcs~anonymous|1)
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\0b\00\00\00i\00n\00l\00i\00n\00i\00n\00g\00.\00t\00s")
|
||||
(export "memory" (memory $0))
|
||||
@ -16,7 +16,7 @@
|
||||
(func $inlining/test (; 1 ;) (; has Stack IR ;) (type $i) (result i32)
|
||||
(i32.const 3)
|
||||
)
|
||||
(func $inlining/test_funcs~anonymous|0 (; 2 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $inlining/test_funcs~anonymous|1 (; 2 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
||||
(get_local $0)
|
||||
)
|
||||
(func $inlining/test_funcs (; 3 ;) (; has Stack IR ;) (type $v)
|
||||
@ -27,7 +27,7 @@
|
||||
(i32.ne
|
||||
(call_indirect (type $ii)
|
||||
(i32.const 2)
|
||||
(i32.const 0)
|
||||
(i32.const 1)
|
||||
)
|
||||
(i32.const 2)
|
||||
)
|
||||
@ -60,4 +60,7 @@
|
||||
)
|
||||
(call $inlining/test_funcs)
|
||||
)
|
||||
(func $null (; 5 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -7,8 +7,8 @@
|
||||
(global $inlining/constantGlobal i32 (i32.const 1))
|
||||
(global $~argc (mut i32) (i32.const 0))
|
||||
(global $HEAP_BASE i32 (i32.const 36))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $inlining/test_funcs~anonymous|0)
|
||||
(table 2 2 anyfunc)
|
||||
(elem (i32.const 0) $null $inlining/test_funcs~anonymous|1)
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\0b\00\00\00i\00n\00l\00i\00n\00i\00n\00g\00.\00t\00s\00")
|
||||
(export "memory" (memory $0))
|
||||
@ -21,7 +21,7 @@
|
||||
(i32.const 2)
|
||||
)
|
||||
)
|
||||
(func $inlining/test_funcs~anonymous|0 (; 2 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $inlining/test_funcs~anonymous|1 (; 2 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(get_local $0)
|
||||
)
|
||||
(func $inlining/test_funcs (; 3 ;) (type $v)
|
||||
@ -290,7 +290,7 @@
|
||||
(call_indirect (type $ii)
|
||||
(i32.const 2)
|
||||
(block $inlining/func_fe|inlined.0 (result i32)
|
||||
(i32.const 0)
|
||||
(i32.const 1)
|
||||
)
|
||||
)
|
||||
)
|
||||
@ -384,4 +384,6 @@
|
||||
)
|
||||
(call $inlining/test_funcs)
|
||||
)
|
||||
(func $null (; 5 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -83,4 +83,7 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 4 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -10,6 +10,8 @@
|
||||
(global $instanceof/f (mut f32) (f32.const 0))
|
||||
(global $instanceof/an (mut i32) (i32.const 0))
|
||||
(global $HEAP_BASE i32 (i32.const 40))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\0d\00\00\00i\00n\00s\00t\00a\00n\00c\00e\00o\00f\00.\00t\00s\00")
|
||||
(export "memory" (memory $0))
|
||||
@ -396,4 +398,6 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 5 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -1,4 +1,8 @@
|
||||
(module
|
||||
(type $v (func))
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(func $start (; 0 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -27,6 +27,8 @@
|
||||
(global $~lib/builtins/f64.MIN_SAFE_INTEGER f64 (f64.const -9007199254740991))
|
||||
(global $~lib/builtins/f64.MAX_SAFE_INTEGER f64 (f64.const 9007199254740991))
|
||||
(global $HEAP_BASE i32 (i32.const 8))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(start $start)
|
||||
@ -110,4 +112,6 @@
|
||||
(get_global $~lib/builtins/f64.MAX_SAFE_INTEGER)
|
||||
)
|
||||
)
|
||||
(func $null (; 1 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -1,4 +1,8 @@
|
||||
(module
|
||||
(type $v (func))
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(func $start (; 0 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -1,6 +1,8 @@
|
||||
(module
|
||||
(type $v (func))
|
||||
(global $HEAP_BASE i32 (i32.const 8))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(start $start)
|
||||
@ -138,4 +140,6 @@
|
||||
(i32.const 0)
|
||||
)
|
||||
)
|
||||
(func $null (; 1 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -156,4 +156,7 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 2 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -7,6 +7,8 @@
|
||||
(global $logical/f (mut f32) (f32.const 0))
|
||||
(global $logical/F (mut f64) (f64.const 0))
|
||||
(global $HEAP_BASE i32 (i32.const 32))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\n\00\00\00l\00o\00g\00i\00c\00a\00l\00.\00t\00s\00")
|
||||
(export "memory" (memory $0))
|
||||
@ -291,4 +293,6 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 2 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -25,4 +25,7 @@
|
||||
(i32.const 1)
|
||||
)
|
||||
)
|
||||
(func $null (; 2 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -4,6 +4,8 @@
|
||||
(global $main/code (mut i32) (i32.const 0))
|
||||
(global $~started (mut i32) (i32.const 0))
|
||||
(global $HEAP_BASE i32 (i32.const 8))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(export "main" (func $main/main))
|
||||
@ -26,4 +28,6 @@
|
||||
(i32.const 1)
|
||||
)
|
||||
)
|
||||
(func $null (; 2 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -2,6 +2,7 @@
|
||||
(type $iiiiv (func (param i32 i32 i32 i32)))
|
||||
(type $FF (func (param f64) (result f64)))
|
||||
(type $Fi (func (param f64) (result i32)))
|
||||
(type $v (func))
|
||||
(type $FUNCSIG$dd (func (param f64) (result f64)))
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
@ -557,4 +558,7 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 4 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -3,9 +3,12 @@
|
||||
(type $FF (func (param f64) (result f64)))
|
||||
(type $Fi (func (param f64) (result i32)))
|
||||
(type $FFFF (func (param f64 f64 f64) (result f64)))
|
||||
(type $v (func))
|
||||
(global $../../examples/mandelbrot/assembly/index/NUM_COLORS i32 (i32.const 2048))
|
||||
(global $~lib/math/NativeMath.LN2 f64 (f64.const 0.6931471805599453))
|
||||
(global $HEAP_BASE i32 (i32.const 8))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(export "computeLine" (func $../../examples/mandelbrot/assembly/index/computeLine))
|
||||
@ -638,4 +641,6 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 4 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -57,4 +57,7 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 4 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -4,6 +4,8 @@
|
||||
(type $v (func))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(global $HEAP_BASE i32 (i32.const 40))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\0e\00\00\00m\00a\00n\00y\00-\00l\00o\00c\00a\00l\00s\00.\00t\00s\00")
|
||||
(export "memory" (memory $0))
|
||||
@ -1086,4 +1088,6 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 4 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -1648,4 +1648,7 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 3 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -6,6 +6,8 @@
|
||||
(global $memcpy/base i32 (i32.const 8))
|
||||
(global $memcpy/dest (mut i32) (i32.const 0))
|
||||
(global $HEAP_BASE i32 (i32.const 32))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\t\00\00\00m\00e\00m\00c\00p\00y\00.\00t\00s\00")
|
||||
(export "memory" (memory $0))
|
||||
@ -2132,4 +2134,6 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 3 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -524,4 +524,7 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 3 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -6,6 +6,8 @@
|
||||
(global $memmove/base i32 (i32.const 8))
|
||||
(global $memmove/dest (mut i32) (i32.const 0))
|
||||
(global $HEAP_BASE i32 (i32.const 32))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\n\00\00\00m\00e\00m\00m\00o\00v\00e\00.\00t\00s\00")
|
||||
(export "memory" (memory $0))
|
||||
@ -628,4 +630,6 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 3 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -478,4 +478,7 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 3 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -5,6 +5,8 @@
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(global $memset/dest (mut i32) (i32.const 0))
|
||||
(global $HEAP_BASE i32 (i32.const 32))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\t\00\00\00m\00e\00m\00s\00e\00t\00.\00t\00s\00")
|
||||
(export "memory" (memory $0))
|
||||
@ -526,4 +528,6 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 3 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -1,9 +1,13 @@
|
||||
(module
|
||||
(type $i (func (result i32)))
|
||||
(type $v (func))
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(export "default" (func $named-export-default/get3))
|
||||
(func $named-export-default/get3 (; 0 ;) (; has Stack IR ;) (type $i) (result i32)
|
||||
(i32.const 3)
|
||||
)
|
||||
(func $null (; 1 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -1,10 +1,15 @@
|
||||
(module
|
||||
(type $i (func (result i32)))
|
||||
(type $v (func))
|
||||
(global $HEAP_BASE i32 (i32.const 8))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(export "default" (func $named-export-default/get3))
|
||||
(func $named-export-default/get3 (; 0 ;) (type $i) (result i32)
|
||||
(i32.const 3)
|
||||
)
|
||||
(func $null (; 1 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -1,5 +1,6 @@
|
||||
(module
|
||||
(type $i (func (result i32)))
|
||||
(type $v (func))
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(export "getValue" (func $named-import-default/getValue))
|
||||
@ -9,4 +10,7 @@
|
||||
(func $named-import-default/getValue (; 1 ;) (; has Stack IR ;) (type $i) (result i32)
|
||||
(call $named-export-default/get3)
|
||||
)
|
||||
(func $null (; 2 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -1,6 +1,9 @@
|
||||
(module
|
||||
(type $i (func (result i32)))
|
||||
(type $v (func))
|
||||
(global $HEAP_BASE i32 (i32.const 8))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(export "getValue" (func $named-import-default/getValue))
|
||||
@ -10,4 +13,6 @@
|
||||
(func $named-import-default/getValue (; 1 ;) (type $i) (result i32)
|
||||
(call $named-export-default/get3)
|
||||
)
|
||||
(func $null (; 2 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -19,4 +19,7 @@
|
||||
(call $namespace/Joined.anotherFunc)
|
||||
)
|
||||
)
|
||||
(func $null (; 3 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -6,6 +6,8 @@
|
||||
(global $namespace/Outer.Inner.anEnum.TWO i32 (i32.const 2))
|
||||
(global $namespace/Joined.THREE i32 (i32.const 3))
|
||||
(global $HEAP_BASE i32 (i32.const 8))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(start $start)
|
||||
@ -29,4 +31,6 @@
|
||||
(call $namespace/Joined.anotherFunc)
|
||||
)
|
||||
)
|
||||
(func $null (; 3 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -1,5 +1,6 @@
|
||||
(module
|
||||
(type $i (func (result i32)))
|
||||
(type $v (func))
|
||||
(type $FUNCSIG$i (func (result i32)))
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
@ -13,4 +14,7 @@
|
||||
)
|
||||
(i32.const 3)
|
||||
)
|
||||
(func $null (; 2 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -1,7 +1,10 @@
|
||||
(module
|
||||
(type $i (func (result i32)))
|
||||
(type $ii (func (param i32) (result i32)))
|
||||
(type $v (func))
|
||||
(global $HEAP_BASE i32 (i32.const 8))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(export "test" (func $new-without-allocator/test))
|
||||
@ -23,4 +26,6 @@
|
||||
)
|
||||
(i32.const 3)
|
||||
)
|
||||
(func $null (; 2 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -327,4 +327,7 @@
|
||||
(get_local $0)
|
||||
)
|
||||
)
|
||||
(func $null (; 9 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -14,6 +14,8 @@
|
||||
(global $~lib/allocator/arena/offset (mut i32) (i32.const 0))
|
||||
(global $~lib/internal/string/HEADER_SIZE i32 (i32.const 4))
|
||||
(global $HEAP_BASE i32 (i32.const 80))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\0b\00\00\00h\00e\00l\00l\00o\00 \00w\00o\00r\00l\00d\00")
|
||||
(data (i32.const 40) "\11\00\00\00o\00b\00j\00e\00c\00t\00-\00l\00i\00t\00e\00r\00a\00l\00.\00t\00s\00")
|
||||
@ -413,4 +415,6 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 9 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -1,5 +1,9 @@
|
||||
(module
|
||||
(type $v (func))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\0b\00\00\00o\00v\00e\00r\00f\00l\00o\00w\00.\00t\00s")
|
||||
(export "memory" (memory $0))
|
||||
(func $start (; 0 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -3,6 +3,8 @@
|
||||
(type $v (func))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(global $HEAP_BASE i32 (i32.const 36))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\0b\00\00\00o\00v\00e\00r\00f\00l\00o\00w\00.\00t\00s\00")
|
||||
(export "memory" (memory $0))
|
||||
@ -1090,4 +1092,6 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 2 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -117,4 +117,7 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 1 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -5,6 +5,8 @@
|
||||
(global $portable-conversions/f (mut f32) (f32.const 0))
|
||||
(global $portable-conversions/F (mut f64) (f64.const 0))
|
||||
(global $HEAP_BASE i32 (i32.const 8))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(start $start)
|
||||
@ -244,4 +246,6 @@
|
||||
(get_global $portable-conversions/F)
|
||||
)
|
||||
)
|
||||
(func $null (; 1 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -1,5 +1,6 @@
|
||||
(module
|
||||
(type $ii (func (param i32) (result i32)))
|
||||
(type $v (func))
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(export "fib" (func $recursive/fib))
|
||||
@ -28,4 +29,7 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 1 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -1,6 +1,9 @@
|
||||
(module
|
||||
(type $ii (func (param i32) (result i32)))
|
||||
(type $v (func))
|
||||
(global $HEAP_BASE i32 (i32.const 8))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(export "fib" (func $recursive/fib))
|
||||
@ -29,4 +32,6 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 1 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -5,6 +5,8 @@
|
||||
(global $export/b i32 (i32.const 2))
|
||||
(global $export/c i32 (i32.const 3))
|
||||
(global $HEAP_BASE i32 (i32.const 8))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(export "add" (func $export/add))
|
||||
@ -54,4 +56,6 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 5 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
@ -24,4 +24,7 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 3 ;) (; has Stack IR ;) (type $v)
|
||||
(nop)
|
||||
)
|
||||
)
|
||||
|
@ -5,6 +5,8 @@
|
||||
(global $export/b i32 (i32.const 2))
|
||||
(global $export/c i32 (i32.const 3))
|
||||
(global $HEAP_BASE i32 (i32.const 8))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(export "a" (global $export/a))
|
||||
@ -38,4 +40,6 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 3 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user