mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-09 04:51:26 +00:00
Use Binaryen's function signature naming scheme (#522)
This commit is contained in:
parent
7184db6dde
commit
4e1bba3a24
@ -27,7 +27,8 @@ import {
|
||||
import {
|
||||
Type,
|
||||
TypeKind,
|
||||
TypeFlags
|
||||
TypeFlags,
|
||||
Signature
|
||||
} from "./types";
|
||||
|
||||
import {
|
||||
@ -3236,17 +3237,16 @@ export function compileCall(
|
||||
}
|
||||
let numOperands = operands.length - 1;
|
||||
let operandExprs = new Array<ExpressionRef>(numOperands);
|
||||
let signatureParts = new Array<string>(numOperands + 1);
|
||||
let nativeReturnType = returnType.toNativeType();
|
||||
let parameterTypes = new Array<Type>(numOperands);
|
||||
let nativeParamTypes = new Array<NativeType>(numOperands);
|
||||
for (let i = 0; i < numOperands; ++i) {
|
||||
operandExprs[i] = compiler.compileExpressionRetainType(operands[1 + i], Type.i32, WrapMode.NONE);
|
||||
let operandType = compiler.currentType;
|
||||
signatureParts[i] = operandType.toSignatureString();
|
||||
parameterTypes[i] = operandType;
|
||||
nativeParamTypes[i] = operandType.toNativeType();
|
||||
}
|
||||
signatureParts[numOperands] = returnType.toSignatureString();
|
||||
let typeName = signatureParts.join("");
|
||||
let typeName = Signature.makeSignatureString(parameterTypes, returnType);
|
||||
let typeRef = module.getFunctionTypeBySignature(nativeReturnType, nativeParamTypes);
|
||||
if (!typeRef) typeRef = module.addFunctionType(typeName, nativeReturnType, nativeParamTypes);
|
||||
compiler.currentType = returnType;
|
||||
@ -5952,7 +5952,7 @@ export function compileIterateRoots(compiler: Compiler): void {
|
||||
? module.createI64(i64_low(value), i64_high(value))
|
||||
: module.createI32(i64_low(value))
|
||||
],
|
||||
"i_"
|
||||
"FUNCSIG$vi"
|
||||
)
|
||||
);
|
||||
} else {
|
||||
@ -5965,7 +5965,7 @@ export function compileIterateRoots(compiler: Compiler): void {
|
||||
compiler.options.nativeSizeType
|
||||
)
|
||||
],
|
||||
"i_"
|
||||
"FUNCSIG$vi"
|
||||
)
|
||||
);
|
||||
}
|
||||
@ -6049,7 +6049,7 @@ export function ensureGCHook(
|
||||
[
|
||||
module.createGetLocal(0, nativeSizeType)
|
||||
],
|
||||
nativeSizeType == NativeType.I64 ? "I_" : "i_"
|
||||
"FUNCSIG$" + (nativeSizeType == NativeType.I64 ? "vj" : "vi")
|
||||
)
|
||||
);
|
||||
|
||||
|
25
src/types.ts
25
src/types.ts
@ -368,16 +368,25 @@ export class Type {
|
||||
/** Converts this type to its signature string. */
|
||||
toSignatureString(): string {
|
||||
switch (this.kind) {
|
||||
default: return "i";
|
||||
// same naming scheme as Binaryen
|
||||
case TypeKind.I8:
|
||||
case TypeKind.U8:
|
||||
case TypeKind.I16:
|
||||
case TypeKind.U16:
|
||||
case TypeKind.I32:
|
||||
case TypeKind.U32:
|
||||
case TypeKind.BOOL: return "i";
|
||||
case TypeKind.I64:
|
||||
case TypeKind.U64: return "I";
|
||||
case TypeKind.U64: return "j";
|
||||
case TypeKind.ISIZE:
|
||||
case TypeKind.USIZE: return this.size == 64 ? "I" : "i";
|
||||
case TypeKind.USIZE: return this.size == 64 ? "j" : "i";
|
||||
case TypeKind.F32: return "f";
|
||||
case TypeKind.F64: return "F";
|
||||
case TypeKind.V128: return "v";
|
||||
case TypeKind.VOID: return "_";
|
||||
case TypeKind.F64: return "d";
|
||||
case TypeKind.V128: return "V";
|
||||
case TypeKind.VOID: return "v";
|
||||
default: assert(false);
|
||||
}
|
||||
return "i";
|
||||
}
|
||||
|
||||
// Types
|
||||
@ -614,12 +623,12 @@ export class Signature {
|
||||
/** Converts a signature to a function type string. */
|
||||
static makeSignatureString(parameterTypes: Type[] | null, returnType: Type, thisType: Type | null = null): string {
|
||||
var sb = [];
|
||||
sb.push(returnType.toSignatureString());
|
||||
if (thisType) sb.push(thisType.toSignatureString());
|
||||
if (parameterTypes) {
|
||||
for (let i = 0, k = parameterTypes.length; i < k; ++i) sb.push(parameterTypes[i].toSignatureString());
|
||||
}
|
||||
sb.push(returnType.toSignatureString());
|
||||
return sb.join("");
|
||||
return "FUNCSIG$" + sb.join("");
|
||||
}
|
||||
|
||||
/** Converts this signature to a function type string. */
|
||||
|
@ -1,7 +1,7 @@
|
||||
(module
|
||||
(type $i (func (result i32)))
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$i (func (result i32)))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\06\00\00\00a\00b\00i\00.\00t\00s")
|
||||
@ -15,10 +15,10 @@
|
||||
(export "exportedExported" (func $abi/exported))
|
||||
(export "exportedInternal" (func $abi/exported))
|
||||
(start $start)
|
||||
(func $abi/exported (; 1 ;) (type $i) (result i32)
|
||||
(func $abi/exported (; 1 ;) (type $FUNCSIG$i) (result i32)
|
||||
i32.const -128
|
||||
)
|
||||
(func $start (; 2 ;) (type $_)
|
||||
(func $start (; 2 ;) (type $FUNCSIG$v)
|
||||
i32.const 1
|
||||
global.set $abi/condition
|
||||
i32.const 0
|
||||
@ -33,7 +33,7 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $null (; 3 ;) (type $_)
|
||||
(func $null (; 3 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,7 +1,7 @@
|
||||
(module
|
||||
(type $i (func (result i32)))
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$i (func (result i32)))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\06\00\00\00a\00b\00i\00.\00t\00s\00")
|
||||
@ -16,10 +16,10 @@
|
||||
(export "exportedExported" (func $abi/exportedExported))
|
||||
(export "exportedInternal" (func $abi/exportedInternal))
|
||||
(start $start)
|
||||
(func $abi/internal (; 1 ;) (type $i) (result i32)
|
||||
(func $abi/internal (; 1 ;) (type $FUNCSIG$i) (result i32)
|
||||
i32.const 128
|
||||
)
|
||||
(func $start:abi (; 2 ;) (type $_)
|
||||
(func $start:abi (; 2 ;) (type $FUNCSIG$v)
|
||||
(local $0 i32)
|
||||
(local $1 i32)
|
||||
call $abi/internal
|
||||
@ -194,26 +194,26 @@
|
||||
end
|
||||
end
|
||||
)
|
||||
(func $abi/exported (; 3 ;) (type $i) (result i32)
|
||||
(func $abi/exported (; 3 ;) (type $FUNCSIG$i) (result i32)
|
||||
i32.const 128
|
||||
i32.const 24
|
||||
i32.shl
|
||||
i32.const 24
|
||||
i32.shr_s
|
||||
)
|
||||
(func $abi/exportedExported (; 4 ;) (type $i) (result i32)
|
||||
(func $abi/exportedExported (; 4 ;) (type $FUNCSIG$i) (result i32)
|
||||
call $abi/exported
|
||||
)
|
||||
(func $abi/exportedInternal (; 5 ;) (type $i) (result i32)
|
||||
(func $abi/exportedInternal (; 5 ;) (type $FUNCSIG$i) (result i32)
|
||||
call $abi/internal
|
||||
i32.const 24
|
||||
i32.shl
|
||||
i32.const 24
|
||||
i32.shr_s
|
||||
)
|
||||
(func $start (; 6 ;) (type $_)
|
||||
(func $start (; 6 ;) (type $FUNCSIG$v)
|
||||
call $start:abi
|
||||
)
|
||||
(func $null (; 7 ;) (type $_)
|
||||
(func $null (; 7 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,11 +1,11 @@
|
||||
(module
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $start)
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(func $start (; 0 ;) (type $_)
|
||||
(func $start (; 0 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,5 +1,5 @@
|
||||
(module
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
@ -17,7 +17,7 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $start:asc-constants (; 0 ;) (type $_)
|
||||
(func $start:asc-constants (; 0 ;) (type $FUNCSIG$v)
|
||||
i32.const 1
|
||||
drop
|
||||
i32.const 0
|
||||
@ -39,9 +39,9 @@
|
||||
i32.const 0
|
||||
drop
|
||||
)
|
||||
(func $start (; 1 ;) (type $_)
|
||||
(func $start (; 1 ;) (type $FUNCSIG$v)
|
||||
call $start:asc-constants
|
||||
)
|
||||
(func $null (; 2 ;) (type $_)
|
||||
(func $null (; 2 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,5 +1,5 @@
|
||||
(module
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$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")
|
||||
@ -7,7 +7,7 @@
|
||||
(elem (i32.const 0) $start)
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(func $start (; 0 ;) (type $_)
|
||||
(func $start (; 0 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
(module
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\t\00\00\00a\00s\00s\00e\00r\00t\00.\00t\00s\00")
|
||||
@ -11,7 +11,7 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $start:assert (; 1 ;) (type $_)
|
||||
(func $start:assert (; 1 ;) (type $FUNCSIG$v)
|
||||
(local $0 i32)
|
||||
i32.const 1
|
||||
i32.eqz
|
||||
@ -107,9 +107,9 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $start (; 2 ;) (type $_)
|
||||
(func $start (; 2 ;) (type $FUNCSIG$v)
|
||||
call $start:assert
|
||||
)
|
||||
(func $null (; 3 ;) (type $_)
|
||||
(func $null (; 3 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,5 +1,5 @@
|
||||
(module
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$v (func))
|
||||
(type $FUNCSIG$dd (func (param f64) (result f64)))
|
||||
(type $FUNCSIG$ff (func (param f32) (result f32)))
|
||||
(memory $0 0)
|
||||
@ -406,7 +406,7 @@
|
||||
local.get $0
|
||||
f64.mul
|
||||
)
|
||||
(func $start:binary (; 4 ;) (type $_)
|
||||
(func $start:binary (; 4 ;) (type $FUNCSIG$v)
|
||||
(local $0 i32)
|
||||
(local $1 i64)
|
||||
(local $2 f32)
|
||||
@ -749,10 +749,10 @@
|
||||
call $~lib/math/NativeMath.pow
|
||||
global.set $binary/F
|
||||
)
|
||||
(func $start (; 5 ;) (type $_)
|
||||
(func $start (; 5 ;) (type $FUNCSIG$v)
|
||||
call $start:binary
|
||||
)
|
||||
(func $null (; 6 ;) (type $_)
|
||||
(func $null (; 6 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,9 +1,9 @@
|
||||
(module
|
||||
(type $FFF (func (param f64 f64) (result f64)))
|
||||
(type $FiF (func (param f64 i32) (result f64)))
|
||||
(type $fff (func (param f32 f32) (result f32)))
|
||||
(type $fif (func (param f32 i32) (result f32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$ddd (func (param f64 f64) (result f64)))
|
||||
(type $FUNCSIG$ddi (func (param f64 i32) (result f64)))
|
||||
(type $FUNCSIG$fff (func (param f32 f32) (result f32)))
|
||||
(type $FUNCSIG$ffi (func (param f32 i32) (result f32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
@ -16,7 +16,7 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $~lib/math/NativeMath.scalbn (; 0 ;) (type $FiF) (param $0 f64) (param $1 i32) (result f64)
|
||||
(func $~lib/math/NativeMath.scalbn (; 0 ;) (type $FUNCSIG$ddi) (param $0 f64) (param $1 i32) (result f64)
|
||||
(local $2 f64)
|
||||
(local $3 i32)
|
||||
(local $4 i32)
|
||||
@ -107,7 +107,7 @@
|
||||
f64.reinterpret_i64
|
||||
f64.mul
|
||||
)
|
||||
(func $~lib/math/NativeMath.pow (; 1 ;) (type $FFF) (param $0 f64) (param $1 f64) (result f64)
|
||||
(func $~lib/math/NativeMath.pow (; 1 ;) (type $FUNCSIG$ddd) (param $0 f64) (param $1 f64) (result f64)
|
||||
(local $2 i64)
|
||||
(local $3 i32)
|
||||
(local $4 i32)
|
||||
@ -1195,7 +1195,7 @@
|
||||
local.get $16
|
||||
f64.mul
|
||||
)
|
||||
(func $~lib/math/NativeMathf.mod (; 2 ;) (type $fff) (param $0 f32) (param $1 f32) (result f32)
|
||||
(func $~lib/math/NativeMathf.mod (; 2 ;) (type $FUNCSIG$fff) (param $0 f32) (param $1 f32) (result f32)
|
||||
(local $2 i32)
|
||||
(local $3 i32)
|
||||
(local $4 i32)
|
||||
@ -1451,7 +1451,7 @@
|
||||
local.get $2
|
||||
f32.reinterpret_i32
|
||||
)
|
||||
(func $~lib/math/NativeMathf.scalbn (; 3 ;) (type $fif) (param $0 f32) (param $1 i32) (result f32)
|
||||
(func $~lib/math/NativeMathf.scalbn (; 3 ;) (type $FUNCSIG$ffi) (param $0 f32) (param $1 i32) (result f32)
|
||||
(local $2 f32)
|
||||
(local $3 i32)
|
||||
(local $4 i32)
|
||||
@ -1541,7 +1541,7 @@
|
||||
f32.reinterpret_i32
|
||||
f32.mul
|
||||
)
|
||||
(func $~lib/math/NativeMathf.pow (; 4 ;) (type $fff) (param $0 f32) (param $1 f32) (result f32)
|
||||
(func $~lib/math/NativeMathf.pow (; 4 ;) (type $FUNCSIG$fff) (param $0 f32) (param $1 f32) (result f32)
|
||||
(local $2 i32)
|
||||
(local $3 i32)
|
||||
(local $4 i32)
|
||||
@ -2479,7 +2479,7 @@
|
||||
local.get $11
|
||||
f32.mul
|
||||
)
|
||||
(func $~lib/math/NativeMath.mod (; 5 ;) (type $FFF) (param $0 f64) (param $1 f64) (result f64)
|
||||
(func $~lib/math/NativeMath.mod (; 5 ;) (type $FUNCSIG$ddd) (param $0 f64) (param $1 f64) (result f64)
|
||||
(local $2 i64)
|
||||
(local $3 i64)
|
||||
(local $4 i64)
|
||||
@ -2737,7 +2737,7 @@
|
||||
local.get $2
|
||||
f64.reinterpret_i64
|
||||
)
|
||||
(func $start:binary (; 6 ;) (type $_)
|
||||
(func $start:binary (; 6 ;) (type $FUNCSIG$v)
|
||||
global.get $binary/i
|
||||
i32.const 1
|
||||
i32.lt_s
|
||||
@ -3345,9 +3345,9 @@
|
||||
call $~lib/math/NativeMath.pow
|
||||
global.set $binary/F
|
||||
)
|
||||
(func $start (; 7 ;) (type $_)
|
||||
(func $start (; 7 ;) (type $FUNCSIG$v)
|
||||
call $start:binary
|
||||
)
|
||||
(func $null (; 8 ;) (type $_)
|
||||
(func $null (; 8 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
(module
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\07\00\00\00b\00o\00o\00l\00.\00t\00s")
|
||||
@ -16,7 +16,7 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $start:bool (; 1 ;) (type $_)
|
||||
(func $start:bool (; 1 ;) (type $FUNCSIG$v)
|
||||
global.get $bool/i
|
||||
i32.const 0
|
||||
i32.ne
|
||||
@ -109,10 +109,10 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $start (; 2 ;) (type $_)
|
||||
(func $start (; 2 ;) (type $FUNCSIG$v)
|
||||
call $start:bool
|
||||
)
|
||||
(func $null (; 3 ;) (type $_)
|
||||
(func $null (; 3 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
(module
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\07\00\00\00b\00o\00o\00l\00.\00t\00s\00")
|
||||
@ -17,7 +17,7 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $start:bool (; 1 ;) (type $_)
|
||||
(func $start:bool (; 1 ;) (type $FUNCSIG$v)
|
||||
global.get $bool/i
|
||||
i32.const 0
|
||||
i32.ne
|
||||
@ -117,9 +117,9 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $start (; 2 ;) (type $_)
|
||||
(func $start (; 2 ;) (type $FUNCSIG$v)
|
||||
call $start:bool
|
||||
)
|
||||
(func $null (; 3 ;) (type $_)
|
||||
(func $null (; 3 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,7 +1,7 @@
|
||||
(module
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $ii_ (func (param i32 i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$vii (func (param i32 i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\0b\00\00\00b\00u\00i\00l\00t\00i\00n\00s\00.\00t\00s")
|
||||
@ -21,10 +21,10 @@
|
||||
(export "table" (table $0))
|
||||
(export "test" (func $builtins/test))
|
||||
(start $start)
|
||||
(func $start:builtins~anonymous|0 (; 1 ;) (type $ii_) (param $0 i32) (param $1 i32)
|
||||
(func $start:builtins~anonymous|0 (; 1 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
||||
nop
|
||||
)
|
||||
(func $start:builtins (; 2 ;) (type $_)
|
||||
(func $start:builtins (; 2 ;) (type $FUNCSIG$v)
|
||||
i32.const 31
|
||||
global.set $builtins/i
|
||||
i32.const 0
|
||||
@ -373,7 +373,7 @@
|
||||
i32.const 1
|
||||
i32.const 2
|
||||
global.get $builtins/fn
|
||||
call_indirect (type $ii_)
|
||||
call_indirect (type $FUNCSIG$vii)
|
||||
i32.const 8
|
||||
i32.load8_s
|
||||
drop
|
||||
@ -444,10 +444,10 @@
|
||||
f64.const 1
|
||||
f64.store
|
||||
)
|
||||
(func $builtins/test (; 3 ;) (type $_)
|
||||
(func $builtins/test (; 3 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
(func $start (; 4 ;) (type $_)
|
||||
(func $start (; 4 ;) (type $FUNCSIG$v)
|
||||
call $start:builtins
|
||||
)
|
||||
)
|
||||
|
@ -1,7 +1,7 @@
|
||||
(module
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $ii_ (func (param i32 i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$vii (func (param i32 i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\0b\00\00\00b\00u\00i\00l\00t\00i\00n\00s\00.\00t\00s\00")
|
||||
@ -53,10 +53,10 @@
|
||||
(export "table" (table $0))
|
||||
(export "test" (func $builtins/test))
|
||||
(start $start)
|
||||
(func $start:builtins~anonymous|0 (; 1 ;) (type $ii_) (param $0 i32) (param $1 i32)
|
||||
(func $start:builtins~anonymous|0 (; 1 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
||||
nop
|
||||
)
|
||||
(func $start:builtins (; 2 ;) (type $_)
|
||||
(func $start:builtins (; 2 ;) (type $FUNCSIG$v)
|
||||
(local $0 i32)
|
||||
(local $1 i32)
|
||||
(local $2 i64)
|
||||
@ -1372,7 +1372,7 @@
|
||||
i32.const 1
|
||||
i32.const 2
|
||||
global.get $builtins/fn
|
||||
call_indirect (type $ii_)
|
||||
call_indirect (type $FUNCSIG$vii)
|
||||
i32.const 1
|
||||
i32.const 1
|
||||
i32.eq
|
||||
@ -2329,12 +2329,12 @@
|
||||
end
|
||||
drop
|
||||
)
|
||||
(func $builtins/test (; 3 ;) (type $_)
|
||||
(func $builtins/test (; 3 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
(func $start (; 4 ;) (type $_)
|
||||
(func $start (; 4 ;) (type $FUNCSIG$v)
|
||||
call $start:builtins
|
||||
)
|
||||
(func $null (; 5 ;) (type $_)
|
||||
(func $null (; 5 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,12 +1,12 @@
|
||||
(module
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$v (func))
|
||||
(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")
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $start)
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(func $start (; 0 ;) (type $_)
|
||||
(func $start (; 0 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,9 +1,9 @@
|
||||
(module
|
||||
(type $ii (func (param i32) (result i32)))
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $FF (func (param f64) (result f64)))
|
||||
(type $ff (func (param f32) (result f32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$ii (func (param i32) (result i32)))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$dd (func (param f64) (result f64)))
|
||||
(type $FUNCSIG$ff (func (param f32) (result f32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(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")
|
||||
@ -13,19 +13,19 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $call-inferred/foo<i32> (; 1 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $call-inferred/foo<i32> (; 1 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
)
|
||||
(func $call-inferred/foo<f64> (; 2 ;) (type $FF) (param $0 f64) (result f64)
|
||||
(func $call-inferred/foo<f64> (; 2 ;) (type $FUNCSIG$dd) (param $0 f64) (result f64)
|
||||
local.get $0
|
||||
)
|
||||
(func $call-inferred/foo<f32> (; 3 ;) (type $ff) (param $0 f32) (result f32)
|
||||
(func $call-inferred/foo<f32> (; 3 ;) (type $FUNCSIG$ff) (param $0 f32) (result f32)
|
||||
local.get $0
|
||||
)
|
||||
(func $call-inferred/bar<f32> (; 4 ;) (type $ff) (param $0 f32) (result f32)
|
||||
(func $call-inferred/bar<f32> (; 4 ;) (type $FUNCSIG$ff) (param $0 f32) (result f32)
|
||||
local.get $0
|
||||
)
|
||||
(func $start:call-inferred (; 5 ;) (type $_)
|
||||
(func $start:call-inferred (; 5 ;) (type $FUNCSIG$v)
|
||||
i32.const 42
|
||||
call $call-inferred/foo<i32>
|
||||
i32.const 42
|
||||
@ -79,9 +79,9 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $start (; 6 ;) (type $_)
|
||||
(func $start (; 6 ;) (type $FUNCSIG$v)
|
||||
call $start:call-inferred
|
||||
)
|
||||
(func $null (; 7 ;) (type $_)
|
||||
(func $null (; 7 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,7 +1,7 @@
|
||||
(module
|
||||
(type $iiii (func (param i32 i32 i32) (result i32)))
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(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")
|
||||
@ -12,7 +12,7 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $call-optional/opt|trampoline (; 1 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
||||
(func $call-optional/opt|trampoline (; 1 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
||||
block $2of2
|
||||
block $1of2
|
||||
block $0of2
|
||||
@ -36,7 +36,7 @@
|
||||
local.get $2
|
||||
i32.add
|
||||
)
|
||||
(func $start:call-optional (; 2 ;) (type $_)
|
||||
(func $start:call-optional (; 2 ;) (type $FUNCSIG$v)
|
||||
(local $0 i32)
|
||||
(local $1 i32)
|
||||
i32.const 1
|
||||
@ -115,7 +115,7 @@
|
||||
i32.const 0
|
||||
i32.const 0
|
||||
global.get $call-optional/optIndirect
|
||||
call_indirect (type $iiii)
|
||||
call_indirect (type $FUNCSIG$iiii)
|
||||
if
|
||||
i32.const 0
|
||||
i32.const 8
|
||||
@ -130,7 +130,7 @@
|
||||
i32.const 4
|
||||
i32.const 0
|
||||
global.get $call-optional/optIndirect
|
||||
call_indirect (type $iiii)
|
||||
call_indirect (type $FUNCSIG$iiii)
|
||||
i32.const 5
|
||||
i32.ne
|
||||
if
|
||||
@ -147,7 +147,7 @@
|
||||
i32.const 4
|
||||
i32.const 5
|
||||
global.get $call-optional/optIndirect
|
||||
call_indirect (type $iiii)
|
||||
call_indirect (type $FUNCSIG$iiii)
|
||||
i32.const 12
|
||||
i32.ne
|
||||
if
|
||||
@ -159,10 +159,10 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $start (; 3 ;) (type $_)
|
||||
(func $start (; 3 ;) (type $FUNCSIG$v)
|
||||
call $start:call-optional
|
||||
)
|
||||
(func $null (; 4 ;) (type $_)
|
||||
(func $null (; 4 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,7 +1,7 @@
|
||||
(module
|
||||
(type $iiii (func (param i32 i32 i32) (result i32)))
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(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")
|
||||
@ -13,14 +13,14 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $call-optional/opt (; 1 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
||||
(func $call-optional/opt (; 1 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
||||
local.get $0
|
||||
local.get $1
|
||||
i32.add
|
||||
local.get $2
|
||||
i32.add
|
||||
)
|
||||
(func $call-optional/opt|trampoline (; 2 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
||||
(func $call-optional/opt|trampoline (; 2 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
||||
block $2of2
|
||||
block $1of2
|
||||
block $0of2
|
||||
@ -43,7 +43,7 @@
|
||||
local.get $2
|
||||
call $call-optional/opt
|
||||
)
|
||||
(func $start:call-optional (; 3 ;) (type $_)
|
||||
(func $start:call-optional (; 3 ;) (type $FUNCSIG$v)
|
||||
block (result i32)
|
||||
i32.const 1
|
||||
global.set $~lib/argc
|
||||
@ -104,7 +104,7 @@
|
||||
i32.const 0
|
||||
i32.const 0
|
||||
global.get $call-optional/optIndirect
|
||||
call_indirect (type $iiii)
|
||||
call_indirect (type $FUNCSIG$iiii)
|
||||
end
|
||||
i32.const 0
|
||||
i32.eq
|
||||
@ -124,7 +124,7 @@
|
||||
i32.const 4
|
||||
i32.const 0
|
||||
global.get $call-optional/optIndirect
|
||||
call_indirect (type $iiii)
|
||||
call_indirect (type $FUNCSIG$iiii)
|
||||
end
|
||||
i32.const 5
|
||||
i32.eq
|
||||
@ -144,7 +144,7 @@
|
||||
i32.const 4
|
||||
i32.const 5
|
||||
global.get $call-optional/optIndirect
|
||||
call_indirect (type $iiii)
|
||||
call_indirect (type $FUNCSIG$iiii)
|
||||
end
|
||||
i32.const 12
|
||||
i32.eq
|
||||
@ -158,9 +158,9 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $start (; 4 ;) (type $_)
|
||||
(func $start (; 4 ;) (type $FUNCSIG$v)
|
||||
call $start:call-optional
|
||||
)
|
||||
(func $null (; 5 ;) (type $_)
|
||||
(func $null (; 5 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,7 +1,7 @@
|
||||
(module
|
||||
(type $_ (func))
|
||||
(type $ii (func (param i32) (result i32)))
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(type $FUNCSIG$ii (func (param i32) (result i32)))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$i (func (result i32)))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(memory $0 1)
|
||||
@ -13,7 +13,7 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $~lib/allocator/arena/__memory_allocate (; 1 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $~lib/allocator/arena/__memory_allocate (; 1 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(local $1 i32)
|
||||
(local $2 i32)
|
||||
(local $3 i32)
|
||||
@ -75,7 +75,7 @@
|
||||
global.set $~lib/allocator/arena/offset
|
||||
local.get $1
|
||||
)
|
||||
(func $call-super/A#constructor (; 2 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $call-super/A#constructor (; 2 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
i32.eqz
|
||||
if
|
||||
@ -134,7 +134,7 @@
|
||||
end
|
||||
local.get $0
|
||||
)
|
||||
(func $call-super/test1 (; 4 ;) (type $_)
|
||||
(func $call-super/test1 (; 4 ;) (type $FUNCSIG$v)
|
||||
(local $0 i32)
|
||||
call $call-super/B#constructor
|
||||
local.tee $0
|
||||
@ -162,7 +162,7 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $call-super/C#constructor (; 5 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $call-super/C#constructor (; 5 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
i32.eqz
|
||||
if
|
||||
@ -209,7 +209,7 @@
|
||||
end
|
||||
local.get $0
|
||||
)
|
||||
(func $call-super/test2 (; 7 ;) (type $_)
|
||||
(func $call-super/test2 (; 7 ;) (type $FUNCSIG$v)
|
||||
(local $0 i32)
|
||||
call $call-super/D#constructor
|
||||
local.tee $0
|
||||
@ -237,7 +237,7 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $call-super/E#constructor (; 8 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $call-super/E#constructor (; 8 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
i32.eqz
|
||||
if
|
||||
@ -262,7 +262,7 @@
|
||||
end
|
||||
local.get $0
|
||||
)
|
||||
(func $call-super/test3 (; 9 ;) (type $_)
|
||||
(func $call-super/test3 (; 9 ;) (type $FUNCSIG$v)
|
||||
(local $0 i32)
|
||||
i32.const 8
|
||||
call $~lib/allocator/arena/__memory_allocate
|
||||
@ -305,7 +305,7 @@
|
||||
i32.store offset=4
|
||||
local.get $0
|
||||
)
|
||||
(func $call-super/test4 (; 11 ;) (type $_)
|
||||
(func $call-super/test4 (; 11 ;) (type $FUNCSIG$v)
|
||||
(local $0 i32)
|
||||
call $call-super/H#constructor
|
||||
local.tee $0
|
||||
@ -333,7 +333,7 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $call-super/test5 (; 12 ;) (type $_)
|
||||
(func $call-super/test5 (; 12 ;) (type $FUNCSIG$v)
|
||||
(local $0 i32)
|
||||
call $call-super/H#constructor
|
||||
local.tee $0
|
||||
@ -361,7 +361,7 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $start (; 13 ;) (type $_)
|
||||
(func $start (; 13 ;) (type $FUNCSIG$v)
|
||||
i32.const 40
|
||||
global.set $~lib/allocator/arena/startOffset
|
||||
global.get $~lib/allocator/arena/startOffset
|
||||
@ -372,7 +372,7 @@
|
||||
call $call-super/test4
|
||||
call $call-super/test5
|
||||
)
|
||||
(func $null (; 14 ;) (type $_)
|
||||
(func $null (; 14 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,7 +1,7 @@
|
||||
(module
|
||||
(type $_ (func))
|
||||
(type $ii (func (param i32) (result i32)))
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(type $FUNCSIG$ii (func (param i32) (result i32)))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\0d\00\00\00c\00a\00l\00l\00-\00s\00u\00p\00e\00r\00.\00t\00s\00")
|
||||
@ -13,7 +13,7 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $start:~lib/allocator/arena (; 1 ;) (type $_)
|
||||
(func $start:~lib/allocator/arena (; 1 ;) (type $FUNCSIG$v)
|
||||
global.get $~lib/memory/HEAP_BASE
|
||||
i32.const 7
|
||||
i32.add
|
||||
@ -25,7 +25,7 @@
|
||||
global.get $~lib/allocator/arena/startOffset
|
||||
global.set $~lib/allocator/arena/offset
|
||||
)
|
||||
(func $~lib/allocator/arena/__memory_allocate (; 2 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $~lib/allocator/arena/__memory_allocate (; 2 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(local $1 i32)
|
||||
(local $2 i32)
|
||||
(local $3 i32)
|
||||
@ -104,12 +104,12 @@
|
||||
global.set $~lib/allocator/arena/offset
|
||||
local.get $1
|
||||
)
|
||||
(func $~lib/memory/memory.allocate (; 3 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $~lib/memory/memory.allocate (; 3 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
call $~lib/allocator/arena/__memory_allocate
|
||||
return
|
||||
)
|
||||
(func $call-super/A#constructor (; 4 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $call-super/A#constructor (; 4 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
block (result i32)
|
||||
local.get $0
|
||||
i32.eqz
|
||||
@ -137,7 +137,7 @@
|
||||
end
|
||||
local.get $0
|
||||
)
|
||||
(func $call-super/B#constructor (; 5 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $call-super/B#constructor (; 5 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
if (result i32)
|
||||
local.get $0
|
||||
@ -178,7 +178,7 @@
|
||||
end
|
||||
local.get $0
|
||||
)
|
||||
(func $call-super/test1 (; 6 ;) (type $_)
|
||||
(func $call-super/test1 (; 6 ;) (type $FUNCSIG$v)
|
||||
(local $0 i32)
|
||||
i32.const 0
|
||||
call $call-super/B#constructor
|
||||
@ -210,7 +210,7 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $call-super/C#constructor (; 7 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $call-super/C#constructor (; 7 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
i32.eqz
|
||||
if
|
||||
@ -223,7 +223,7 @@
|
||||
i32.store
|
||||
local.get $0
|
||||
)
|
||||
(func $call-super/D#constructor (; 8 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $call-super/D#constructor (; 8 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
if (result i32)
|
||||
local.get $0
|
||||
@ -264,7 +264,7 @@
|
||||
end
|
||||
local.get $0
|
||||
)
|
||||
(func $call-super/test2 (; 9 ;) (type $_)
|
||||
(func $call-super/test2 (; 9 ;) (type $FUNCSIG$v)
|
||||
(local $0 i32)
|
||||
i32.const 0
|
||||
call $call-super/D#constructor
|
||||
@ -296,7 +296,7 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $call-super/E#constructor (; 10 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $call-super/E#constructor (; 10 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
block (result i32)
|
||||
local.get $0
|
||||
i32.eqz
|
||||
@ -324,7 +324,7 @@
|
||||
end
|
||||
local.get $0
|
||||
)
|
||||
(func $call-super/F#constructor (; 11 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $call-super/F#constructor (; 11 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
i32.eqz
|
||||
if
|
||||
@ -340,7 +340,7 @@
|
||||
i32.store offset=4
|
||||
local.get $0
|
||||
)
|
||||
(func $call-super/test3 (; 12 ;) (type $_)
|
||||
(func $call-super/test3 (; 12 ;) (type $FUNCSIG$v)
|
||||
(local $0 i32)
|
||||
i32.const 0
|
||||
call $call-super/F#constructor
|
||||
@ -372,7 +372,7 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $call-super/G#constructor (; 13 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $call-super/G#constructor (; 13 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
i32.eqz
|
||||
if
|
||||
@ -385,7 +385,7 @@
|
||||
i32.store
|
||||
local.get $0
|
||||
)
|
||||
(func $call-super/H#constructor (; 14 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $call-super/H#constructor (; 14 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
i32.eqz
|
||||
if
|
||||
@ -401,7 +401,7 @@
|
||||
i32.store offset=4
|
||||
local.get $0
|
||||
)
|
||||
(func $call-super/test4 (; 15 ;) (type $_)
|
||||
(func $call-super/test4 (; 15 ;) (type $FUNCSIG$v)
|
||||
(local $0 i32)
|
||||
i32.const 0
|
||||
call $call-super/H#constructor
|
||||
@ -433,7 +433,7 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $call-super/I#constructor (; 16 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $call-super/I#constructor (; 16 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
i32.eqz
|
||||
if
|
||||
@ -446,7 +446,7 @@
|
||||
i32.store
|
||||
local.get $0
|
||||
)
|
||||
(func $call-super/J#constructor (; 17 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $call-super/J#constructor (; 17 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
i32.eqz
|
||||
if
|
||||
@ -462,7 +462,7 @@
|
||||
i32.store offset=4
|
||||
local.get $0
|
||||
)
|
||||
(func $call-super/test5 (; 18 ;) (type $_)
|
||||
(func $call-super/test5 (; 18 ;) (type $FUNCSIG$v)
|
||||
(local $0 i32)
|
||||
i32.const 0
|
||||
call $call-super/J#constructor
|
||||
@ -494,7 +494,7 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $start:call-super (; 19 ;) (type $_)
|
||||
(func $start:call-super (; 19 ;) (type $FUNCSIG$v)
|
||||
call $start:~lib/allocator/arena
|
||||
call $call-super/test1
|
||||
call $call-super/test2
|
||||
@ -502,9 +502,9 @@
|
||||
call $call-super/test4
|
||||
call $call-super/test5
|
||||
)
|
||||
(func $start (; 20 ;) (type $_)
|
||||
(func $start (; 20 ;) (type $FUNCSIG$v)
|
||||
call $start:call-super
|
||||
)
|
||||
(func $null (; 21 ;) (type $_)
|
||||
(func $null (; 21 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,13 +1,13 @@
|
||||
(module
|
||||
(type $i_ (func (param i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$vi (func (param i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(export "test" (func $class-extends/test))
|
||||
(func $class-extends/test (; 0 ;) (type $i_) (param $0 i32)
|
||||
(func $class-extends/test (; 0 ;) (type $FUNCSIG$vi) (param $0 i32)
|
||||
local.get $0
|
||||
i32.load
|
||||
drop
|
||||
@ -21,7 +21,7 @@
|
||||
i32.const 3
|
||||
i32.store16 offset=4
|
||||
)
|
||||
(func $null (; 1 ;) (type $_)
|
||||
(func $null (; 1 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
(module
|
||||
(type $i_ (func (param i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$vi (func (param i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
@ -8,7 +8,7 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(export "test" (func $class-extends/test))
|
||||
(func $class-extends/test (; 0 ;) (type $i_) (param $0 i32)
|
||||
(func $class-extends/test (; 0 ;) (type $FUNCSIG$vi) (param $0 i32)
|
||||
local.get $0
|
||||
i32.load
|
||||
drop
|
||||
@ -22,6 +22,6 @@
|
||||
i32.const 3
|
||||
i32.store16 offset=4
|
||||
)
|
||||
(func $null (; 1 ;) (type $_)
|
||||
(func $null (; 1 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,16 +1,16 @@
|
||||
(module
|
||||
(type $i_ (func (param i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$vi (func (param i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $start)
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(export "test" (func $class-overloading/test))
|
||||
(func $class-overloading/test (; 0 ;) (type $i_) (param $0 i32)
|
||||
(func $class-overloading/test (; 0 ;) (type $FUNCSIG$vi) (param $0 i32)
|
||||
nop
|
||||
)
|
||||
(func $start (; 1 ;) (type $_)
|
||||
(func $start (; 1 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
(module
|
||||
(type $i_ (func (param i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$vi (func (param i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
@ -9,20 +9,20 @@
|
||||
(export "table" (table $0))
|
||||
(export "test" (func $class-overloading/test))
|
||||
(start $start)
|
||||
(func $class-overloading/Foo#baz (; 0 ;) (type $i_) (param $0 i32)
|
||||
(func $class-overloading/Foo#baz (; 0 ;) (type $FUNCSIG$vi) (param $0 i32)
|
||||
nop
|
||||
)
|
||||
(func $class-overloading/test (; 1 ;) (type $i_) (param $0 i32)
|
||||
(func $class-overloading/test (; 1 ;) (type $FUNCSIG$vi) (param $0 i32)
|
||||
local.get $0
|
||||
call $class-overloading/Foo#baz
|
||||
)
|
||||
(func $start:class-overloading (; 2 ;) (type $_)
|
||||
(func $start:class-overloading (; 2 ;) (type $FUNCSIG$v)
|
||||
i32.const 0
|
||||
call $class-overloading/test
|
||||
)
|
||||
(func $start (; 3 ;) (type $_)
|
||||
(func $start (; 3 ;) (type $FUNCSIG$v)
|
||||
call $start:class-overloading
|
||||
)
|
||||
(func $null (; 4 ;) (type $_)
|
||||
(func $null (; 4 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
(module
|
||||
(type $_ (func))
|
||||
(type $ii (func (param i32) (result i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(type $FUNCSIG$ii (func (param i32) (result i32)))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\08\00\00\00c\00l\00a\00s\00s\00.\00t\00s")
|
||||
(table $0 1 funcref)
|
||||
@ -8,7 +8,7 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(export "test" (func $class/test))
|
||||
(func $class/test (; 0 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $class/test (; 0 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
i32.load
|
||||
drop
|
||||
@ -29,7 +29,7 @@
|
||||
i32.store8 offset=6
|
||||
local.get $0
|
||||
)
|
||||
(func $start (; 1 ;) (type $_)
|
||||
(func $start (; 1 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,11 +1,11 @@
|
||||
(module
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $iii (func (param i32 i32) (result i32)))
|
||||
(type $fff (func (param f32 f32) (result f32)))
|
||||
(type $_ (func))
|
||||
(type $ii (func (param i32) (result i32)))
|
||||
(type $iiii (func (param i32 i32 i32) (result i32)))
|
||||
(type $ifff (func (param i32 f32 f32) (result f32)))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
|
||||
(type $FUNCSIG$fff (func (param f32 f32) (result f32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(type $FUNCSIG$ii (func (param i32) (result i32)))
|
||||
(type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))
|
||||
(type $FUNCSIG$fiff (func (param i32 f32 f32) (result f32)))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\08\00\00\00c\00l\00a\00s\00s\00.\00t\00s\00")
|
||||
@ -17,14 +17,14 @@
|
||||
(export "table" (table $0))
|
||||
(export "test" (func $class/test))
|
||||
(start $start)
|
||||
(func $class/Animal.add (; 1 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $class/Animal.add (; 1 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
local.get $0
|
||||
local.get $1
|
||||
i32.add
|
||||
global.get $class/Animal.ONE
|
||||
i32.add
|
||||
)
|
||||
(func $class/Animal.sub<f32> (; 2 ;) (type $fff) (param $0 f32) (param $1 f32) (result f32)
|
||||
(func $class/Animal.sub<f32> (; 2 ;) (type $FUNCSIG$fff) (param $0 f32) (param $1 f32) (result f32)
|
||||
local.get $0
|
||||
local.get $1
|
||||
f32.sub
|
||||
@ -32,7 +32,7 @@
|
||||
f32.convert_i32_s
|
||||
f32.add
|
||||
)
|
||||
(func $start:class (; 3 ;) (type $_)
|
||||
(func $start:class (; 3 ;) (type $FUNCSIG$v)
|
||||
i32.const 4
|
||||
i32.const 4
|
||||
i32.eq
|
||||
@ -56,14 +56,14 @@
|
||||
call $class/Animal.sub<f32>
|
||||
drop
|
||||
)
|
||||
(func $class/Animal<f64>#instanceAdd (; 4 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
||||
(func $class/Animal<f64>#instanceAdd (; 4 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
||||
local.get $1
|
||||
local.get $2
|
||||
i32.add
|
||||
global.get $class/Animal.ONE
|
||||
i32.add
|
||||
)
|
||||
(func $class/Animal<f64>#instanceSub<f32> (; 5 ;) (type $ifff) (param $0 i32) (param $1 f32) (param $2 f32) (result f32)
|
||||
(func $class/Animal<f64>#instanceSub<f32> (; 5 ;) (type $FUNCSIG$fiff) (param $0 i32) (param $1 f32) (param $2 f32) (result f32)
|
||||
local.get $1
|
||||
local.get $2
|
||||
f32.sub
|
||||
@ -71,7 +71,7 @@
|
||||
f32.convert_i32_s
|
||||
f32.add
|
||||
)
|
||||
(func $class/test (; 6 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $class/test (; 6 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(local $1 i32)
|
||||
(local $2 i32)
|
||||
local.get $0
|
||||
@ -116,9 +116,9 @@
|
||||
local.set $2
|
||||
local.get $2
|
||||
)
|
||||
(func $start (; 7 ;) (type $_)
|
||||
(func $start (; 7 ;) (type $FUNCSIG$v)
|
||||
call $start:class
|
||||
)
|
||||
(func $null (; 8 ;) (type $_)
|
||||
(func $null (; 8 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,11 +1,11 @@
|
||||
(module
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(func $null (; 0 ;) (type $_)
|
||||
(func $null (; 0 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,11 +1,11 @@
|
||||
(module
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
(global $~lib/memory/HEAP_BASE i32 (i32.const 8))
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(func $null (; 0 ;) (type $_)
|
||||
(func $null (; 0 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
(module
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\08\00\00\00c\00o\00m\00m\00a\00.\00t\00s")
|
||||
@ -11,7 +11,7 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $start:comma (; 1 ;) (type $_)
|
||||
(func $start:comma (; 1 ;) (type $FUNCSIG$v)
|
||||
(local $0 i32)
|
||||
global.get $comma/a
|
||||
local.tee $0
|
||||
@ -163,10 +163,10 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $start (; 2 ;) (type $_)
|
||||
(func $start (; 2 ;) (type $FUNCSIG$v)
|
||||
call $start:comma
|
||||
)
|
||||
(func $null (; 3 ;) (type $_)
|
||||
(func $null (; 3 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
(module
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\08\00\00\00c\00o\00m\00m\00a\00.\00t\00s\00")
|
||||
@ -12,7 +12,7 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $start:comma (; 1 ;) (type $_)
|
||||
(func $start:comma (; 1 ;) (type $FUNCSIG$v)
|
||||
(local $0 i32)
|
||||
(local $1 i32)
|
||||
block
|
||||
@ -204,9 +204,9 @@
|
||||
drop
|
||||
end
|
||||
)
|
||||
(func $start (; 2 ;) (type $_)
|
||||
(func $start (; 2 ;) (type $FUNCSIG$v)
|
||||
call $start:comma
|
||||
)
|
||||
(func $null (; 3 ;) (type $_)
|
||||
(func $null (; 3 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
(module
|
||||
(type $_ (func))
|
||||
(type $ii (func (param i32) (result i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(type $FUNCSIG$ii (func (param i32) (result i32)))
|
||||
(type $FUNCSIG$i (func (result i32)))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
@ -21,7 +21,7 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $~lib/allocator/arena/__memory_allocate (; 0 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $~lib/allocator/arena/__memory_allocate (; 0 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(local $1 i32)
|
||||
(local $2 i32)
|
||||
(local $3 i32)
|
||||
@ -101,7 +101,7 @@
|
||||
i32.store
|
||||
local.get $0
|
||||
)
|
||||
(func $start:constructor (; 3 ;) (type $_)
|
||||
(func $start:constructor (; 3 ;) (type $FUNCSIG$v)
|
||||
(local $0 i32)
|
||||
i32.const 8
|
||||
global.set $~lib/allocator/arena/startOffset
|
||||
@ -156,10 +156,10 @@
|
||||
local.get $0
|
||||
global.set $constructor/ctorConditionallyAllocates
|
||||
)
|
||||
(func $start (; 4 ;) (type $_)
|
||||
(func $start (; 4 ;) (type $FUNCSIG$v)
|
||||
call $start:constructor
|
||||
)
|
||||
(func $null (; 5 ;) (type $_)
|
||||
(func $null (; 5 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
(module
|
||||
(type $_ (func))
|
||||
(type $ii (func (param i32) (result i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(type $FUNCSIG$ii (func (param i32) (result i32)))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
@ -21,7 +21,7 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $start:~lib/allocator/arena (; 0 ;) (type $_)
|
||||
(func $start:~lib/allocator/arena (; 0 ;) (type $FUNCSIG$v)
|
||||
global.get $~lib/memory/HEAP_BASE
|
||||
i32.const 7
|
||||
i32.add
|
||||
@ -33,7 +33,7 @@
|
||||
global.get $~lib/allocator/arena/startOffset
|
||||
global.set $~lib/allocator/arena/offset
|
||||
)
|
||||
(func $~lib/allocator/arena/__memory_allocate (; 1 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $~lib/allocator/arena/__memory_allocate (; 1 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(local $1 i32)
|
||||
(local $2 i32)
|
||||
(local $3 i32)
|
||||
@ -112,12 +112,12 @@
|
||||
global.set $~lib/allocator/arena/offset
|
||||
local.get $1
|
||||
)
|
||||
(func $~lib/memory/memory.allocate (; 2 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $~lib/memory/memory.allocate (; 2 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
call $~lib/allocator/arena/__memory_allocate
|
||||
return
|
||||
)
|
||||
(func $constructor/EmptyCtor#constructor (; 3 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $constructor/EmptyCtor#constructor (; 3 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
i32.eqz
|
||||
if
|
||||
@ -127,7 +127,7 @@
|
||||
end
|
||||
local.get $0
|
||||
)
|
||||
(func $constructor/EmptyCtorWithFieldInit#constructor (; 4 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $constructor/EmptyCtorWithFieldInit#constructor (; 4 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
i32.eqz
|
||||
if
|
||||
@ -140,7 +140,7 @@
|
||||
i32.store
|
||||
local.get $0
|
||||
)
|
||||
(func $constructor/EmptyCtorWithFieldNoInit#constructor (; 5 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $constructor/EmptyCtorWithFieldNoInit#constructor (; 5 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
i32.eqz
|
||||
if
|
||||
@ -153,7 +153,7 @@
|
||||
i32.store
|
||||
local.get $0
|
||||
)
|
||||
(func $constructor/None#constructor (; 6 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $constructor/None#constructor (; 6 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
i32.eqz
|
||||
if
|
||||
@ -163,7 +163,7 @@
|
||||
end
|
||||
local.get $0
|
||||
)
|
||||
(func $constructor/JustFieldInit#constructor (; 7 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $constructor/JustFieldInit#constructor (; 7 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
i32.eqz
|
||||
if
|
||||
@ -176,7 +176,7 @@
|
||||
i32.store
|
||||
local.get $0
|
||||
)
|
||||
(func $constructor/JustFieldNoInit#constructor (; 8 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $constructor/JustFieldNoInit#constructor (; 8 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
i32.eqz
|
||||
if
|
||||
@ -189,7 +189,7 @@
|
||||
i32.store
|
||||
local.get $0
|
||||
)
|
||||
(func $constructor/CtorReturns#constructor (; 9 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $constructor/CtorReturns#constructor (; 9 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(local $1 i32)
|
||||
block $~lib/memory/memory.allocate|inlined.0 (result i32)
|
||||
i32.const 0
|
||||
@ -199,7 +199,7 @@
|
||||
br $~lib/memory/memory.allocate|inlined.0
|
||||
end
|
||||
)
|
||||
(func $constructor/CtorConditionallyReturns#constructor (; 10 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $constructor/CtorConditionallyReturns#constructor (; 10 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(local $1 i32)
|
||||
global.get $constructor/b
|
||||
if
|
||||
@ -221,7 +221,7 @@
|
||||
end
|
||||
local.get $0
|
||||
)
|
||||
(func $constructor/CtorAllocates#constructor (; 11 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $constructor/CtorAllocates#constructor (; 11 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
block (result i32)
|
||||
local.get $0
|
||||
i32.eqz
|
||||
@ -235,7 +235,7 @@
|
||||
drop
|
||||
local.get $0
|
||||
)
|
||||
(func $constructor/CtorConditionallyAllocates#constructor (; 12 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $constructor/CtorConditionallyAllocates#constructor (; 12 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
global.get $constructor/b
|
||||
if
|
||||
block (result i32)
|
||||
@ -259,7 +259,7 @@
|
||||
end
|
||||
local.get $0
|
||||
)
|
||||
(func $start:constructor (; 13 ;) (type $_)
|
||||
(func $start:constructor (; 13 ;) (type $FUNCSIG$v)
|
||||
call $start:~lib/allocator/arena
|
||||
i32.const 0
|
||||
call $constructor/EmptyCtor#constructor
|
||||
@ -292,9 +292,9 @@
|
||||
call $constructor/CtorConditionallyAllocates#constructor
|
||||
global.set $constructor/ctorConditionallyAllocates
|
||||
)
|
||||
(func $start (; 14 ;) (type $_)
|
||||
(func $start (; 14 ;) (type $FUNCSIG$v)
|
||||
call $start:constructor
|
||||
)
|
||||
(func $null (; 15 ;) (type $_)
|
||||
(func $null (; 15 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
(module
|
||||
(type $_ (func))
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(import "declare" "externalConstant" (global $declare/externalConstant i32))
|
||||
(import "declare" "my.externalConstant" (global $declare/my.externalConstant i32))
|
||||
(import "declare" "externalFunction" (func $declare/externalFunction))
|
||||
@ -13,7 +13,7 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $start:declare (; 3 ;) (type $_)
|
||||
(func $start:declare (; 3 ;) (type $FUNCSIG$v)
|
||||
call $declare/externalFunction
|
||||
global.get $declare/externalConstant
|
||||
i32.const 1
|
||||
@ -39,10 +39,10 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $start (; 4 ;) (type $_)
|
||||
(func $start (; 4 ;) (type $FUNCSIG$v)
|
||||
call $start:declare
|
||||
)
|
||||
(func $null (; 5 ;) (type $_)
|
||||
(func $null (; 5 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
(module
|
||||
(type $_ (func))
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(import "declare" "externalConstant" (global $declare/externalConstant i32))
|
||||
(import "declare" "my.externalConstant" (global $declare/my.externalConstant i32))
|
||||
(import "declare" "externalFunction" (func $declare/externalFunction))
|
||||
@ -14,7 +14,7 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $start:declare (; 3 ;) (type $_)
|
||||
(func $start:declare (; 3 ;) (type $FUNCSIG$v)
|
||||
call $declare/externalFunction
|
||||
global.get $declare/externalConstant
|
||||
i32.const 1
|
||||
@ -42,9 +42,9 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $start (; 4 ;) (type $_)
|
||||
(func $start (; 4 ;) (type $FUNCSIG$v)
|
||||
call $start:declare
|
||||
)
|
||||
(func $null (; 5 ;) (type $_)
|
||||
(func $null (; 5 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
(module
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\05\00\00\00d\00o\00.\00t\00s")
|
||||
@ -12,7 +12,7 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $start:do (; 1 ;) (type $_)
|
||||
(func $start:do (; 1 ;) (type $FUNCSIG$v)
|
||||
(local $0 i32)
|
||||
loop $continue|0
|
||||
global.get $do/n
|
||||
@ -148,10 +148,10 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $start (; 2 ;) (type $_)
|
||||
(func $start (; 2 ;) (type $FUNCSIG$v)
|
||||
call $start:do
|
||||
)
|
||||
(func $null (; 3 ;) (type $_)
|
||||
(func $null (; 3 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
(module
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\05\00\00\00d\00o\00.\00t\00s\00")
|
||||
@ -13,7 +13,7 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $start:do (; 1 ;) (type $_)
|
||||
(func $start:do (; 1 ;) (type $FUNCSIG$v)
|
||||
(local $0 i32)
|
||||
block $break|0
|
||||
loop $continue|0
|
||||
@ -180,9 +180,9 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $start (; 2 ;) (type $_)
|
||||
(func $start (; 2 ;) (type $FUNCSIG$v)
|
||||
call $start:do
|
||||
)
|
||||
(func $null (; 3 ;) (type $_)
|
||||
(func $null (; 3 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,11 +1,11 @@
|
||||
(module
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(func $null (; 0 ;) (type $_)
|
||||
(func $null (; 0 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,11 +1,11 @@
|
||||
(module
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
(global $~lib/memory/HEAP_BASE i32 (i32.const 8))
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(func $null (; 0 ;) (type $_)
|
||||
(func $null (; 0 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,5 +1,5 @@
|
||||
(module
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
@ -36,13 +36,13 @@
|
||||
(export "SelfReference.ZERO" (global $enum/SelfReference.ZERO))
|
||||
(export "SelfReference.ONE" (global $enum/SelfReference.ONE))
|
||||
(start $start)
|
||||
(func $start (; 0 ;) (type $_)
|
||||
(func $start (; 0 ;) (type $FUNCSIG$v)
|
||||
i32.const 0
|
||||
global.set $enum/NonConstant.ZERO
|
||||
i32.const 1
|
||||
global.set $enum/NonConstant.ONE
|
||||
)
|
||||
(func $null (; 1 ;) (type $_)
|
||||
(func $null (; 1 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
(module
|
||||
(type $i (func (result i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$i (func (result i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
@ -39,10 +39,10 @@
|
||||
(export "SelfReference.ZERO" (global $enum/SelfReference.ZERO))
|
||||
(export "SelfReference.ONE" (global $enum/SelfReference.ONE))
|
||||
(start $start)
|
||||
(func $enum/getZero (; 0 ;) (type $i) (result i32)
|
||||
(func $enum/getZero (; 0 ;) (type $FUNCSIG$i) (result i32)
|
||||
i32.const 0
|
||||
)
|
||||
(func $start:enum (; 1 ;) (type $_)
|
||||
(func $start:enum (; 1 ;) (type $FUNCSIG$v)
|
||||
call $enum/getZero
|
||||
global.set $enum/NonConstant.ZERO
|
||||
call $enum/getZero
|
||||
@ -54,9 +54,9 @@
|
||||
global.get $enum/NonConstant.ONE
|
||||
drop
|
||||
)
|
||||
(func $start (; 2 ;) (type $_)
|
||||
(func $start (; 2 ;) (type $FUNCSIG$v)
|
||||
call $start:enum
|
||||
)
|
||||
(func $null (; 3 ;) (type $_)
|
||||
(func $null (; 3 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
(module
|
||||
(type $iii (func (param i32 i32) (result i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $export/ns.one)
|
||||
@ -16,22 +16,22 @@
|
||||
(export "b" (global $export/b))
|
||||
(export "renamed_c" (global $export/c))
|
||||
(export "ns.two" (func $export/ns.one))
|
||||
(func $export/add (; 0 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $export/add (; 0 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
local.get $0
|
||||
local.get $1
|
||||
i32.add
|
||||
)
|
||||
(func $export/sub (; 1 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $export/sub (; 1 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
local.get $0
|
||||
local.get $1
|
||||
i32.sub
|
||||
)
|
||||
(func $export/mul (; 2 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $export/mul (; 2 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
local.get $0
|
||||
local.get $1
|
||||
i32.mul
|
||||
)
|
||||
(func $export/ns.one (; 3 ;) (type $_)
|
||||
(func $export/ns.one (; 3 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
(module
|
||||
(type $iii (func (param i32 i32) (result i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
@ -17,27 +17,27 @@
|
||||
(export "b" (global $export/b))
|
||||
(export "renamed_c" (global $export/c))
|
||||
(export "ns.two" (func $export/ns.two))
|
||||
(func $export/add (; 0 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $export/add (; 0 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
local.get $0
|
||||
local.get $1
|
||||
i32.add
|
||||
)
|
||||
(func $export/sub (; 1 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $export/sub (; 1 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
local.get $0
|
||||
local.get $1
|
||||
i32.sub
|
||||
)
|
||||
(func $export/mul (; 2 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $export/mul (; 2 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
local.get $0
|
||||
local.get $1
|
||||
i32.mul
|
||||
)
|
||||
(func $export/ns.one (; 3 ;) (type $_)
|
||||
(func $export/ns.one (; 3 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
(func $export/ns.two (; 4 ;) (type $_)
|
||||
(func $export/ns.two (; 4 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
(func $null (; 5 ;) (type $_)
|
||||
(func $null (; 5 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,11 +1,10 @@
|
||||
(module
|
||||
(type $_ (func))
|
||||
(type $iii (func (param i32 i32) (result i32)))
|
||||
(type $i (func (result i32)))
|
||||
(type $ii (func (param i32) (result i32)))
|
||||
(type $ii_ (func (param i32 i32)))
|
||||
(type $i_ (func (param i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
|
||||
(type $FUNCSIG$i (func (result i32)))
|
||||
(type $FUNCSIG$ii (func (param i32) (result i32)))
|
||||
(type $FUNCSIG$vii (func (param i32 i32)))
|
||||
(type $FUNCSIG$vi (func (param i32)))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
@ -47,17 +46,17 @@
|
||||
(export "vehicles.Car.getNumTires" (func $exports/Car.getNumTires))
|
||||
(export "outer.inner.a" (global $exports/outer.inner.a))
|
||||
(start $start)
|
||||
(func $exports/add (; 0 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $exports/add (; 0 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
local.get $0
|
||||
local.get $1
|
||||
i32.add
|
||||
)
|
||||
(func $exports/subOpt (; 1 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $exports/subOpt (; 1 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
local.get $0
|
||||
local.get $1
|
||||
i32.sub
|
||||
)
|
||||
(func $exports/Car.getNumTires (; 2 ;) (type $i) (result i32)
|
||||
(func $exports/Car.getNumTires (; 2 ;) (type $FUNCSIG$i) (result i32)
|
||||
i32.const 4
|
||||
)
|
||||
(func $~lib/allocator/arena/__memory_allocate (; 3 ;) (type $FUNCSIG$i) (result i32)
|
||||
@ -110,28 +109,28 @@
|
||||
global.set $~lib/allocator/arena/offset
|
||||
local.get $0
|
||||
)
|
||||
(func $exports/Car#get:numDoors (; 4 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $exports/Car#get:numDoors (; 4 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
i32.load
|
||||
)
|
||||
(func $exports/Car#set:numDoors (; 5 ;) (type $ii_) (param $0 i32) (param $1 i32)
|
||||
(func $exports/Car#set:numDoors (; 5 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
||||
local.get $0
|
||||
local.get $1
|
||||
i32.store
|
||||
)
|
||||
(func $exports/Car#openDoors (; 6 ;) (type $i_) (param $0 i32)
|
||||
(func $exports/Car#openDoors (; 6 ;) (type $FUNCSIG$vi) (param $0 i32)
|
||||
nop
|
||||
)
|
||||
(func $start (; 7 ;) (type $_)
|
||||
(func $start (; 7 ;) (type $FUNCSIG$v)
|
||||
i32.const 8
|
||||
global.set $~lib/allocator/arena/startOffset
|
||||
global.get $~lib/allocator/arena/startOffset
|
||||
global.set $~lib/allocator/arena/offset
|
||||
)
|
||||
(func $null (; 8 ;) (type $_)
|
||||
(func $null (; 8 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
(func $exports/subOpt|trampoline (; 9 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $exports/subOpt|trampoline (; 9 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
block $1of1
|
||||
block $0of1
|
||||
block $outOfRange
|
||||
@ -149,11 +148,11 @@
|
||||
local.get $1
|
||||
i32.sub
|
||||
)
|
||||
(func $~lib/setargc (; 10 ;) (type $i_) (param $0 i32)
|
||||
(func $~lib/setargc (; 10 ;) (type $FUNCSIG$vi) (param $0 i32)
|
||||
local.get $0
|
||||
global.set $~lib/argc
|
||||
)
|
||||
(func $exports/Car#constructor|trampoline (; 11 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $exports/Car#constructor|trampoline (; 11 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
block $1of1
|
||||
block $0of1
|
||||
block $outOfRange
|
||||
|
@ -1,10 +1,10 @@
|
||||
(module
|
||||
(type $_ (func))
|
||||
(type $iii (func (param i32 i32) (result i32)))
|
||||
(type $i (func (result i32)))
|
||||
(type $ii (func (param i32) (result i32)))
|
||||
(type $ii_ (func (param i32 i32)))
|
||||
(type $i_ (func (param i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
|
||||
(type $FUNCSIG$i (func (result i32)))
|
||||
(type $FUNCSIG$ii (func (param i32) (result i32)))
|
||||
(type $FUNCSIG$vii (func (param i32 i32)))
|
||||
(type $FUNCSIG$vi (func (param i32)))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
@ -47,7 +47,7 @@
|
||||
(export "vehicles.Car.getNumTires" (func $exports/vehicles.Car.getNumTires))
|
||||
(export "outer.inner.a" (global $exports/outer.inner.a))
|
||||
(start $start)
|
||||
(func $start:~lib/allocator/arena (; 0 ;) (type $_)
|
||||
(func $start:~lib/allocator/arena (; 0 ;) (type $FUNCSIG$v)
|
||||
global.get $~lib/memory/HEAP_BASE
|
||||
i32.const 7
|
||||
i32.add
|
||||
@ -59,28 +59,28 @@
|
||||
global.get $~lib/allocator/arena/startOffset
|
||||
global.set $~lib/allocator/arena/offset
|
||||
)
|
||||
(func $start:exports (; 1 ;) (type $_)
|
||||
(func $start:exports (; 1 ;) (type $FUNCSIG$v)
|
||||
call $start:~lib/allocator/arena
|
||||
)
|
||||
(func $exports/add (; 2 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $exports/add (; 2 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
local.get $0
|
||||
local.get $1
|
||||
i32.add
|
||||
)
|
||||
(func $exports/subOpt (; 3 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $exports/subOpt (; 3 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
local.get $0
|
||||
local.get $1
|
||||
i32.sub
|
||||
)
|
||||
(func $exports/math.sub (; 4 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $exports/math.sub (; 4 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
local.get $0
|
||||
local.get $1
|
||||
i32.sub
|
||||
)
|
||||
(func $exports/Car.getNumTires (; 5 ;) (type $i) (result i32)
|
||||
(func $exports/Car.getNumTires (; 5 ;) (type $FUNCSIG$i) (result i32)
|
||||
global.get $exports/Car.TIRES
|
||||
)
|
||||
(func $~lib/allocator/arena/__memory_allocate (; 6 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $~lib/allocator/arena/__memory_allocate (; 6 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(local $1 i32)
|
||||
(local $2 i32)
|
||||
(local $3 i32)
|
||||
@ -159,12 +159,12 @@
|
||||
global.set $~lib/allocator/arena/offset
|
||||
local.get $1
|
||||
)
|
||||
(func $~lib/memory/memory.allocate (; 7 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $~lib/memory/memory.allocate (; 7 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
call $~lib/allocator/arena/__memory_allocate
|
||||
return
|
||||
)
|
||||
(func $exports/Car#constructor (; 8 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $exports/Car#constructor (; 8 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
block (result i32)
|
||||
local.get $0
|
||||
i32.eqz
|
||||
@ -182,22 +182,22 @@
|
||||
i32.store
|
||||
local.get $0
|
||||
)
|
||||
(func $exports/Car#get:numDoors (; 9 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $exports/Car#get:numDoors (; 9 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
i32.load
|
||||
)
|
||||
(func $exports/Car#set:numDoors (; 10 ;) (type $ii_) (param $0 i32) (param $1 i32)
|
||||
(func $exports/Car#set:numDoors (; 10 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
||||
local.get $0
|
||||
local.get $1
|
||||
i32.store
|
||||
)
|
||||
(func $exports/Car#openDoors (; 11 ;) (type $i_) (param $0 i32)
|
||||
(func $exports/Car#openDoors (; 11 ;) (type $FUNCSIG$vi) (param $0 i32)
|
||||
nop
|
||||
)
|
||||
(func $exports/vehicles.Car.getNumTires (; 12 ;) (type $i) (result i32)
|
||||
(func $exports/vehicles.Car.getNumTires (; 12 ;) (type $FUNCSIG$i) (result i32)
|
||||
global.get $exports/vehicles.Car.TIRES
|
||||
)
|
||||
(func $exports/vehicles.Car#constructor (; 13 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $exports/vehicles.Car#constructor (; 13 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
block (result i32)
|
||||
local.get $0
|
||||
i32.eqz
|
||||
@ -215,24 +215,24 @@
|
||||
i32.store
|
||||
local.get $0
|
||||
)
|
||||
(func $exports/vehicles.Car#get:numDoors (; 14 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $exports/vehicles.Car#get:numDoors (; 14 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
i32.load
|
||||
)
|
||||
(func $exports/vehicles.Car#set:numDoors (; 15 ;) (type $ii_) (param $0 i32) (param $1 i32)
|
||||
(func $exports/vehicles.Car#set:numDoors (; 15 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
||||
local.get $0
|
||||
local.get $1
|
||||
i32.store
|
||||
)
|
||||
(func $exports/vehicles.Car#openDoors (; 16 ;) (type $i_) (param $0 i32)
|
||||
(func $exports/vehicles.Car#openDoors (; 16 ;) (type $FUNCSIG$vi) (param $0 i32)
|
||||
nop
|
||||
)
|
||||
(func $start (; 17 ;) (type $_)
|
||||
(func $start (; 17 ;) (type $FUNCSIG$v)
|
||||
call $start:exports
|
||||
)
|
||||
(func $null (; 18 ;) (type $_)
|
||||
(func $null (; 18 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
(func $exports/subOpt|trampoline (; 19 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $exports/subOpt|trampoline (; 19 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
block $1of1
|
||||
block $0of1
|
||||
block $outOfRange
|
||||
@ -250,20 +250,20 @@
|
||||
local.get $1
|
||||
call $exports/subOpt
|
||||
)
|
||||
(func $~lib/setargc (; 20 ;) (type $i_) (param $0 i32)
|
||||
(func $~lib/setargc (; 20 ;) (type $FUNCSIG$vi) (param $0 i32)
|
||||
local.get $0
|
||||
global.set $~lib/argc
|
||||
)
|
||||
(func $Car#get:doors (; 21 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $Car#get:doors (; 21 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
i32.load
|
||||
)
|
||||
(func $Car#set:doors (; 22 ;) (type $ii_) (param $0 i32) (param $1 i32)
|
||||
(func $Car#set:doors (; 22 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
||||
local.get $0
|
||||
local.get $1
|
||||
i32.store
|
||||
)
|
||||
(func $exports/Car#constructor|trampoline (; 23 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $exports/Car#constructor|trampoline (; 23 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
block $1of1
|
||||
block $0of1
|
||||
block $outOfRange
|
||||
@ -279,16 +279,16 @@
|
||||
local.get $1
|
||||
call $exports/Car#constructor
|
||||
)
|
||||
(func $vehicles.Car#get:doors (; 24 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $vehicles.Car#get:doors (; 24 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
i32.load
|
||||
)
|
||||
(func $vehicles.Car#set:doors (; 25 ;) (type $ii_) (param $0 i32) (param $1 i32)
|
||||
(func $vehicles.Car#set:doors (; 25 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
||||
local.get $0
|
||||
local.get $1
|
||||
i32.store
|
||||
)
|
||||
(func $exports/vehicles.Car#constructor|trampoline (; 26 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $exports/vehicles.Car#constructor|trampoline (; 26 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
block $1of1
|
||||
block $0of1
|
||||
block $outOfRange
|
||||
|
@ -1,5 +1,5 @@
|
||||
(module
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$v (func))
|
||||
(import "foo" "var" (global $external/var_ i32))
|
||||
(import "external" "foo" (func $external/foo))
|
||||
(import "external" "foo.bar" (func $external/foo.bar))
|
||||
@ -15,7 +15,7 @@
|
||||
(export "two" (func $external/two))
|
||||
(export "three" (func $external/three))
|
||||
(export "var_" (global $external/var_))
|
||||
(func $null (; 4 ;) (type $_)
|
||||
(func $null (; 4 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,5 +1,5 @@
|
||||
(module
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$v (func))
|
||||
(import "foo" "var" (global $external/var_ i32))
|
||||
(import "external" "foo" (func $external/foo))
|
||||
(import "external" "foo.bar" (func $external/foo.bar))
|
||||
@ -16,6 +16,6 @@
|
||||
(export "two" (func $external/two))
|
||||
(export "three" (func $external/three))
|
||||
(export "var_" (global $external/var_))
|
||||
(func $null (; 4 ;) (type $_)
|
||||
(func $null (; 4 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
(module
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\06\00\00\00f\00o\00r\00.\00t\00s")
|
||||
@ -10,7 +10,7 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $start:for (; 1 ;) (type $_)
|
||||
(func $start:for (; 1 ;) (type $FUNCSIG$v)
|
||||
(local $0 i32)
|
||||
(local $1 i32)
|
||||
i32.const 0
|
||||
@ -158,10 +158,10 @@
|
||||
end
|
||||
end
|
||||
)
|
||||
(func $start (; 2 ;) (type $_)
|
||||
(func $start (; 2 ;) (type $FUNCSIG$v)
|
||||
call $start:for
|
||||
)
|
||||
(func $null (; 3 ;) (type $_)
|
||||
(func $null (; 3 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
(module
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\06\00\00\00f\00o\00r\00.\00t\00s\00")
|
||||
@ -11,7 +11,7 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $start:for (; 1 ;) (type $_)
|
||||
(func $start:for (; 1 ;) (type $FUNCSIG$v)
|
||||
(local $0 i32)
|
||||
(local $1 i32)
|
||||
(local $2 i32)
|
||||
@ -215,9 +215,9 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $start (; 2 ;) (type $_)
|
||||
(func $start (; 2 ;) (type $FUNCSIG$v)
|
||||
call $start:for
|
||||
)
|
||||
(func $null (; 3 ;) (type $_)
|
||||
(func $null (; 3 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,9 +1,9 @@
|
||||
(module
|
||||
(type $ii (func (param i32) (result i32)))
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $_ (func))
|
||||
(type $i (func (result i32)))
|
||||
(type $iii (func (param i32 i32) (result i32)))
|
||||
(type $FUNCSIG$ii (func (param i32) (result i32)))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(type $FUNCSIG$i (func (result i32)))
|
||||
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(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")
|
||||
@ -17,32 +17,32 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $start:function-expression~anonymous|0 (; 1 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $start:function-expression~anonymous|0 (; 1 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
)
|
||||
(func $start:function-expression~someName (; 2 ;) (type $_)
|
||||
(func $start:function-expression~someName (; 2 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
(func $start:function-expression~anonymous|2 (; 3 ;) (type $i) (result i32)
|
||||
(func $start:function-expression~anonymous|2 (; 3 ;) (type $FUNCSIG$i) (result i32)
|
||||
i32.const 1
|
||||
)
|
||||
(func $start:function-expression~anonymous|3 (; 4 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $start:function-expression~anonymous|3 (; 4 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
local.get $0
|
||||
local.get $1
|
||||
i32.add
|
||||
)
|
||||
(func $start:function-expression~anonymous|4 (; 5 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $start:function-expression~anonymous|4 (; 5 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
local.get $0
|
||||
)
|
||||
(func $start:function-expression~anonymous|5 (; 6 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $start:function-expression~anonymous|5 (; 6 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
i32.const 42
|
||||
)
|
||||
(func $start:function-expression (; 7 ;) (type $_)
|
||||
(func $start:function-expression (; 7 ;) (type $FUNCSIG$v)
|
||||
i32.const 1
|
||||
global.set $~lib/argc
|
||||
i32.const 1
|
||||
global.get $function-expression/f1
|
||||
call_indirect (type $ii)
|
||||
call_indirect (type $FUNCSIG$ii)
|
||||
i32.const 1
|
||||
i32.ne
|
||||
if
|
||||
@ -57,7 +57,7 @@
|
||||
global.set $~lib/argc
|
||||
i32.const 2
|
||||
global.get $function-expression/f2
|
||||
call_indirect (type $ii)
|
||||
call_indirect (type $FUNCSIG$ii)
|
||||
i32.const 2
|
||||
i32.ne
|
||||
if
|
||||
@ -71,11 +71,11 @@
|
||||
i32.const 0
|
||||
global.set $~lib/argc
|
||||
global.get $function-expression/f3
|
||||
call_indirect (type $_)
|
||||
call_indirect (type $FUNCSIG$v)
|
||||
i32.const 0
|
||||
global.set $~lib/argc
|
||||
global.get $function-expression/f4
|
||||
call_indirect (type $i)
|
||||
call_indirect (type $FUNCSIG$i)
|
||||
i32.const 1
|
||||
i32.ne
|
||||
if
|
||||
@ -91,7 +91,7 @@
|
||||
i32.const 1
|
||||
i32.const 2
|
||||
i32.const 5
|
||||
call_indirect (type $iii)
|
||||
call_indirect (type $FUNCSIG$iii)
|
||||
i32.const 3
|
||||
i32.ne
|
||||
if
|
||||
@ -107,7 +107,7 @@
|
||||
i32.const 1
|
||||
i32.const 2
|
||||
i32.const 6
|
||||
call_indirect (type $iii)
|
||||
call_indirect (type $FUNCSIG$iii)
|
||||
i32.const 1
|
||||
i32.ne
|
||||
if
|
||||
@ -123,7 +123,7 @@
|
||||
i32.const 1
|
||||
i32.const 2
|
||||
i32.const 7
|
||||
call_indirect (type $iii)
|
||||
call_indirect (type $FUNCSIG$iii)
|
||||
i32.const 42
|
||||
i32.ne
|
||||
if
|
||||
@ -139,7 +139,7 @@
|
||||
i32.const 1
|
||||
i32.const 2
|
||||
i32.const 8
|
||||
call_indirect (type $iii)
|
||||
call_indirect (type $FUNCSIG$iii)
|
||||
i32.const 3
|
||||
i32.ne
|
||||
if
|
||||
@ -155,7 +155,7 @@
|
||||
i32.const 1
|
||||
i32.const 2
|
||||
i32.const 9
|
||||
call_indirect (type $iii)
|
||||
call_indirect (type $FUNCSIG$iii)
|
||||
i32.const 1
|
||||
i32.ne
|
||||
if
|
||||
@ -171,7 +171,7 @@
|
||||
i32.const 1
|
||||
i32.const 2
|
||||
i32.const 10
|
||||
call_indirect (type $iii)
|
||||
call_indirect (type $FUNCSIG$iii)
|
||||
i32.const 42
|
||||
i32.ne
|
||||
if
|
||||
@ -183,7 +183,7 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $start (; 8 ;) (type $_)
|
||||
(func $start (; 8 ;) (type $FUNCSIG$v)
|
||||
call $start:function-expression
|
||||
)
|
||||
)
|
||||
|
@ -1,9 +1,9 @@
|
||||
(module
|
||||
(type $ii (func (param i32) (result i32)))
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $_ (func))
|
||||
(type $i (func (result i32)))
|
||||
(type $iii (func (param i32 i32) (result i32)))
|
||||
(type $FUNCSIG$ii (func (param i32) (result i32)))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(type $FUNCSIG$i (func (result i32)))
|
||||
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(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")
|
||||
@ -18,64 +18,64 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $start:function-expression~anonymous|0 (; 1 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $start:function-expression~anonymous|0 (; 1 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
)
|
||||
(func $start:function-expression~anonymous|1 (; 2 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $start:function-expression~anonymous|1 (; 2 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
)
|
||||
(func $start:function-expression~someName (; 3 ;) (type $_)
|
||||
(func $start:function-expression~someName (; 3 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
(func $start:function-expression~anonymous|2 (; 4 ;) (type $i) (result i32)
|
||||
(func $start:function-expression~anonymous|2 (; 4 ;) (type $FUNCSIG$i) (result i32)
|
||||
i32.const 1
|
||||
)
|
||||
(func $start:function-expression~anonymous|3 (; 5 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $start:function-expression~anonymous|3 (; 5 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
local.get $0
|
||||
local.get $1
|
||||
i32.add
|
||||
)
|
||||
(func $function-expression/testOmitted (; 6 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $function-expression/testOmitted (; 6 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
i32.const 2
|
||||
global.set $~lib/argc
|
||||
i32.const 1
|
||||
i32.const 2
|
||||
local.get $0
|
||||
call_indirect (type $iii)
|
||||
call_indirect (type $FUNCSIG$iii)
|
||||
)
|
||||
(func $start:function-expression~anonymous|4 (; 7 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $start:function-expression~anonymous|4 (; 7 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
local.get $0
|
||||
)
|
||||
(func $start:function-expression~anonymous|5 (; 8 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $start:function-expression~anonymous|5 (; 8 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
i32.const 42
|
||||
)
|
||||
(func $function-expression/testOmittedReturn1~anonymous|0 (; 9 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $function-expression/testOmittedReturn1~anonymous|0 (; 9 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
local.get $0
|
||||
local.get $1
|
||||
i32.add
|
||||
)
|
||||
(func $function-expression/testOmittedReturn1 (; 10 ;) (type $i) (result i32)
|
||||
(func $function-expression/testOmittedReturn1 (; 10 ;) (type $FUNCSIG$i) (result i32)
|
||||
i32.const 8
|
||||
)
|
||||
(func $function-expression/testOmittedReturn2~anonymous|0 (; 11 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $function-expression/testOmittedReturn2~anonymous|0 (; 11 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
local.get $0
|
||||
)
|
||||
(func $function-expression/testOmittedReturn2 (; 12 ;) (type $i) (result i32)
|
||||
(func $function-expression/testOmittedReturn2 (; 12 ;) (type $FUNCSIG$i) (result i32)
|
||||
i32.const 9
|
||||
)
|
||||
(func $function-expression/testOmittedReturn3~anonymous|0 (; 13 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $function-expression/testOmittedReturn3~anonymous|0 (; 13 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
i32.const 42
|
||||
)
|
||||
(func $function-expression/testOmittedReturn3 (; 14 ;) (type $i) (result i32)
|
||||
(func $function-expression/testOmittedReturn3 (; 14 ;) (type $FUNCSIG$i) (result i32)
|
||||
i32.const 10
|
||||
)
|
||||
(func $start:function-expression (; 15 ;) (type $_)
|
||||
(func $start:function-expression (; 15 ;) (type $FUNCSIG$v)
|
||||
block (result i32)
|
||||
i32.const 1
|
||||
global.set $~lib/argc
|
||||
i32.const 1
|
||||
global.get $function-expression/f1
|
||||
call_indirect (type $ii)
|
||||
call_indirect (type $FUNCSIG$ii)
|
||||
end
|
||||
i32.const 1
|
||||
i32.eq
|
||||
@ -93,7 +93,7 @@
|
||||
global.set $~lib/argc
|
||||
i32.const 2
|
||||
global.get $function-expression/f2
|
||||
call_indirect (type $ii)
|
||||
call_indirect (type $FUNCSIG$ii)
|
||||
end
|
||||
i32.const 2
|
||||
i32.eq
|
||||
@ -110,13 +110,13 @@
|
||||
i32.const 0
|
||||
global.set $~lib/argc
|
||||
global.get $function-expression/f3
|
||||
call_indirect (type $_)
|
||||
call_indirect (type $FUNCSIG$v)
|
||||
end
|
||||
block (result i32)
|
||||
i32.const 0
|
||||
global.set $~lib/argc
|
||||
global.get $function-expression/f4
|
||||
call_indirect (type $i)
|
||||
call_indirect (type $FUNCSIG$i)
|
||||
end
|
||||
i32.const 1
|
||||
i32.eq
|
||||
@ -174,7 +174,7 @@
|
||||
i32.const 1
|
||||
i32.const 2
|
||||
call $function-expression/testOmittedReturn1
|
||||
call_indirect (type $iii)
|
||||
call_indirect (type $FUNCSIG$iii)
|
||||
end
|
||||
i32.const 3
|
||||
i32.eq
|
||||
@ -193,7 +193,7 @@
|
||||
i32.const 1
|
||||
i32.const 2
|
||||
call $function-expression/testOmittedReturn2
|
||||
call_indirect (type $iii)
|
||||
call_indirect (type $FUNCSIG$iii)
|
||||
end
|
||||
i32.const 1
|
||||
i32.eq
|
||||
@ -212,7 +212,7 @@
|
||||
i32.const 1
|
||||
i32.const 2
|
||||
call $function-expression/testOmittedReturn3
|
||||
call_indirect (type $iii)
|
||||
call_indirect (type $FUNCSIG$iii)
|
||||
end
|
||||
i32.const 42
|
||||
i32.eq
|
||||
@ -226,9 +226,9 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $start (; 16 ;) (type $_)
|
||||
(func $start (; 16 ;) (type $FUNCSIG$v)
|
||||
call $start:function-expression
|
||||
)
|
||||
(func $null (; 17 ;) (type $_)
|
||||
(func $null (; 17 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,9 +1,9 @@
|
||||
(module
|
||||
(type $iii (func (param i32 i32) (result i32)))
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $III (func (param i64 i64) (result i64)))
|
||||
(type $FFF (func (param f64 f64) (result f64)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$jjj (func (param i64 i64) (result i64)))
|
||||
(type $FUNCSIG$ddd (func (param f64 f64) (result f64)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(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")
|
||||
@ -15,22 +15,22 @@
|
||||
(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|0 (; 1 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
local.get $0
|
||||
local.get $1
|
||||
i32.add
|
||||
)
|
||||
(func $function-types/makeAdder<i64>~anonymous|0 (; 2 ;) (type $III) (param $0 i64) (param $1 i64) (result i64)
|
||||
(func $function-types/makeAdder<i64>~anonymous|0 (; 2 ;) (type $FUNCSIG$jjj) (param $0 i64) (param $1 i64) (result i64)
|
||||
local.get $0
|
||||
local.get $1
|
||||
i64.add
|
||||
)
|
||||
(func $function-types/makeAdder<f64>~anonymous|0 (; 3 ;) (type $FFF) (param $0 f64) (param $1 f64) (result f64)
|
||||
(func $function-types/makeAdder<f64>~anonymous|0 (; 3 ;) (type $FUNCSIG$ddd) (param $0 f64) (param $1 f64) (result f64)
|
||||
local.get $0
|
||||
local.get $1
|
||||
f64.add
|
||||
)
|
||||
(func $start:function-types (; 4 ;) (type $_)
|
||||
(func $start:function-types (; 4 ;) (type $FUNCSIG$v)
|
||||
(local $0 i32)
|
||||
i32.const 1
|
||||
global.set $function-types/i32Adder
|
||||
@ -39,7 +39,7 @@
|
||||
i32.const 1
|
||||
i32.const 2
|
||||
global.get $function-types/i32Adder
|
||||
call_indirect (type $iii)
|
||||
call_indirect (type $FUNCSIG$iii)
|
||||
i32.const 3
|
||||
i32.ne
|
||||
if
|
||||
@ -57,7 +57,7 @@
|
||||
i64.const 10
|
||||
i64.const 20
|
||||
global.get $function-types/i64Adder
|
||||
call_indirect (type $III)
|
||||
call_indirect (type $FUNCSIG$jjj)
|
||||
i64.const 30
|
||||
i64.ne
|
||||
if
|
||||
@ -73,7 +73,7 @@
|
||||
f64.const 1.5
|
||||
f64.const 2.5
|
||||
i32.const 3
|
||||
call_indirect (type $FFF)
|
||||
call_indirect (type $FUNCSIG$ddd)
|
||||
f64.const 4
|
||||
f64.ne
|
||||
if
|
||||
@ -89,7 +89,7 @@
|
||||
i32.const 2
|
||||
i32.const 3
|
||||
global.get $function-types/i32Adder
|
||||
call_indirect (type $iii)
|
||||
call_indirect (type $FUNCSIG$iii)
|
||||
i32.const 5
|
||||
i32.ne
|
||||
if
|
||||
@ -105,7 +105,7 @@
|
||||
i32.const 3
|
||||
i32.const 4
|
||||
i32.const 1
|
||||
call_indirect (type $iii)
|
||||
call_indirect (type $FUNCSIG$iii)
|
||||
i32.const 7
|
||||
i32.ne
|
||||
if
|
||||
@ -121,7 +121,7 @@
|
||||
i32.const 4
|
||||
i32.const 5
|
||||
i32.const 4
|
||||
call_indirect (type $iii)
|
||||
call_indirect (type $FUNCSIG$iii)
|
||||
i32.const 9
|
||||
i32.ne
|
||||
if
|
||||
@ -152,7 +152,7 @@
|
||||
i32.const 1
|
||||
i32.const 2
|
||||
local.get $0
|
||||
call_indirect (type $iii)
|
||||
call_indirect (type $FUNCSIG$iii)
|
||||
i32.const 3
|
||||
i32.ne
|
||||
if
|
||||
@ -168,7 +168,7 @@
|
||||
i32.const 1
|
||||
i32.const 2
|
||||
i32.const 1
|
||||
call_indirect (type $iii)
|
||||
call_indirect (type $FUNCSIG$iii)
|
||||
i32.const 3
|
||||
i32.ne
|
||||
if
|
||||
@ -180,10 +180,10 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $start (; 5 ;) (type $_)
|
||||
(func $start (; 5 ;) (type $FUNCSIG$v)
|
||||
call $start:function-types
|
||||
)
|
||||
(func $null (; 6 ;) (type $_)
|
||||
(func $null (; 6 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,11 +1,11 @@
|
||||
(module
|
||||
(type $i (func (result i32)))
|
||||
(type $iii (func (param i32 i32) (result i32)))
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $III (func (param i64 i64) (result i64)))
|
||||
(type $FFF (func (param f64 f64) (result f64)))
|
||||
(type $iiii (func (param i32 i32 i32) (result i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$i (func (result i32)))
|
||||
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$jjj (func (param i64 i64) (result i64)))
|
||||
(type $FUNCSIG$ddd (func (param f64 f64) (result f64)))
|
||||
(type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(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")
|
||||
@ -18,60 +18,60 @@
|
||||
(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|0 (; 1 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
local.get $0
|
||||
local.get $1
|
||||
i32.add
|
||||
)
|
||||
(func $function-types/makeAdder<i32> (; 2 ;) (type $i) (result i32)
|
||||
(func $function-types/makeAdder<i32> (; 2 ;) (type $FUNCSIG$i) (result i32)
|
||||
i32.const 1
|
||||
)
|
||||
(func $function-types/makeAdder<i64>~anonymous|0 (; 3 ;) (type $III) (param $0 i64) (param $1 i64) (result i64)
|
||||
(func $function-types/makeAdder<i64>~anonymous|0 (; 3 ;) (type $FUNCSIG$jjj) (param $0 i64) (param $1 i64) (result i64)
|
||||
local.get $0
|
||||
local.get $1
|
||||
i64.add
|
||||
)
|
||||
(func $function-types/makeAdder<i64> (; 4 ;) (type $i) (result i32)
|
||||
(func $function-types/makeAdder<i64> (; 4 ;) (type $FUNCSIG$i) (result i32)
|
||||
i32.const 2
|
||||
)
|
||||
(func $function-types/makeAdder<f64>~anonymous|0 (; 5 ;) (type $FFF) (param $0 f64) (param $1 f64) (result f64)
|
||||
(func $function-types/makeAdder<f64>~anonymous|0 (; 5 ;) (type $FUNCSIG$ddd) (param $0 f64) (param $1 f64) (result f64)
|
||||
local.get $0
|
||||
local.get $1
|
||||
f64.add
|
||||
)
|
||||
(func $function-types/makeAdder<f64> (; 6 ;) (type $i) (result i32)
|
||||
(func $function-types/makeAdder<f64> (; 6 ;) (type $FUNCSIG$i) (result i32)
|
||||
i32.const 3
|
||||
)
|
||||
(func $function-types/doAddWithFn<i32> (; 7 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
||||
(func $function-types/doAddWithFn<i32> (; 7 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
||||
i32.const 2
|
||||
global.set $~lib/argc
|
||||
local.get $0
|
||||
local.get $1
|
||||
local.get $2
|
||||
call_indirect (type $iii)
|
||||
call_indirect (type $FUNCSIG$iii)
|
||||
)
|
||||
(func $function-types/doAdd<i32> (; 8 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $function-types/doAdd<i32> (; 8 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
i32.const 2
|
||||
global.set $~lib/argc
|
||||
local.get $0
|
||||
local.get $1
|
||||
call $function-types/makeAdder<i32>
|
||||
call_indirect (type $iii)
|
||||
call_indirect (type $FUNCSIG$iii)
|
||||
)
|
||||
(func $function-types/addI32 (; 9 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $function-types/addI32 (; 9 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
local.get $0
|
||||
local.get $1
|
||||
i32.add
|
||||
)
|
||||
(func $function-types/makeAndAdd<i32> (; 10 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
||||
(func $function-types/makeAndAdd<i32> (; 10 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
||||
i32.const 2
|
||||
global.set $~lib/argc
|
||||
local.get $0
|
||||
local.get $1
|
||||
local.get $2
|
||||
call_indirect (type $iii)
|
||||
call_indirect (type $FUNCSIG$iii)
|
||||
)
|
||||
(func $function-types/makeAndAdd<i32>|trampoline (; 11 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
||||
(func $function-types/makeAndAdd<i32>|trampoline (; 11 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
||||
block $1of1
|
||||
block $0of1
|
||||
block $outOfRange
|
||||
@ -90,7 +90,7 @@
|
||||
local.get $2
|
||||
call $function-types/makeAndAdd<i32>
|
||||
)
|
||||
(func $start:function-types (; 12 ;) (type $_)
|
||||
(func $start:function-types (; 12 ;) (type $FUNCSIG$v)
|
||||
call $function-types/makeAdder<i32>
|
||||
global.set $function-types/i32Adder
|
||||
block (result i32)
|
||||
@ -99,7 +99,7 @@
|
||||
i32.const 1
|
||||
i32.const 2
|
||||
global.get $function-types/i32Adder
|
||||
call_indirect (type $iii)
|
||||
call_indirect (type $FUNCSIG$iii)
|
||||
end
|
||||
i32.const 3
|
||||
i32.eq
|
||||
@ -120,7 +120,7 @@
|
||||
i64.const 10
|
||||
i64.const 20
|
||||
global.get $function-types/i64Adder
|
||||
call_indirect (type $III)
|
||||
call_indirect (type $FUNCSIG$jjj)
|
||||
end
|
||||
i64.const 30
|
||||
i64.eq
|
||||
@ -139,7 +139,7 @@
|
||||
f64.const 1.5
|
||||
f64.const 2.5
|
||||
call $function-types/makeAdder<f64>
|
||||
call_indirect (type $FFF)
|
||||
call_indirect (type $FUNCSIG$ddd)
|
||||
end
|
||||
f64.const 4
|
||||
f64.eq
|
||||
@ -231,9 +231,9 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $start (; 13 ;) (type $_)
|
||||
(func $start (; 13 ;) (type $FUNCSIG$v)
|
||||
call $start:function-types
|
||||
)
|
||||
(func $null (; 14 ;) (type $_)
|
||||
(func $null (; 14 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,11 +1,11 @@
|
||||
(module
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $start)
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(func $start (; 0 ;) (type $_)
|
||||
(func $start (; 0 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,19 +1,19 @@
|
||||
(module
|
||||
(type $_ (func))
|
||||
(type $i (func (result i32)))
|
||||
(type $I (func (result i64)))
|
||||
(type $f (func (result f32)))
|
||||
(type $F (func (result f64)))
|
||||
(type $i_ (func (param i32)))
|
||||
(type $ii (func (param i32) (result i32)))
|
||||
(type $II (func (param i64) (result i64)))
|
||||
(type $ff (func (param f32) (result f32)))
|
||||
(type $FF (func (param f64) (result f64)))
|
||||
(type $ii_ (func (param i32 i32)))
|
||||
(type $iii (func (param i32 i32) (result i32)))
|
||||
(type $IiI (func (param i64 i32) (result i64)))
|
||||
(type $fff (func (param f32 f32) (result f32)))
|
||||
(type $FFF (func (param f64 f64) (result f64)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(type $FUNCSIG$i (func (result i32)))
|
||||
(type $FUNCSIG$j (func (result i64)))
|
||||
(type $FUNCSIG$f (func (result f32)))
|
||||
(type $FUNCSIG$d (func (result f64)))
|
||||
(type $FUNCSIG$vi (func (param i32)))
|
||||
(type $FUNCSIG$ii (func (param i32) (result i32)))
|
||||
(type $FUNCSIG$jj (func (param i64) (result i64)))
|
||||
(type $FUNCSIG$ff (func (param f32) (result f32)))
|
||||
(type $FUNCSIG$dd (func (param f64) (result f64)))
|
||||
(type $FUNCSIG$vii (func (param i32 i32)))
|
||||
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
|
||||
(type $FUNCSIG$jji (func (param i64 i32) (result i64)))
|
||||
(type $FUNCSIG$fff (func (param f32 f32) (result f32)))
|
||||
(type $FUNCSIG$ddd (func (param f64 f64) (result f64)))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
@ -21,61 +21,61 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $function/v (; 0 ;) (type $_)
|
||||
(func $function/v (; 0 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
(func $function/i (; 1 ;) (type $i) (result i32)
|
||||
(func $function/i (; 1 ;) (type $FUNCSIG$i) (result i32)
|
||||
i32.const 0
|
||||
)
|
||||
(func $function/I (; 2 ;) (type $I) (result i64)
|
||||
(func $function/I (; 2 ;) (type $FUNCSIG$j) (result i64)
|
||||
i64.const 0
|
||||
)
|
||||
(func $function/f (; 3 ;) (type $f) (result f32)
|
||||
(func $function/f (; 3 ;) (type $FUNCSIG$f) (result f32)
|
||||
f32.const 0
|
||||
)
|
||||
(func $function/F (; 4 ;) (type $F) (result f64)
|
||||
(func $function/F (; 4 ;) (type $FUNCSIG$d) (result f64)
|
||||
f64.const 0
|
||||
)
|
||||
(func $function/iv (; 5 ;) (type $i_) (param $0 i32)
|
||||
(func $function/iv (; 5 ;) (type $FUNCSIG$vi) (param $0 i32)
|
||||
nop
|
||||
)
|
||||
(func $function/ii (; 6 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $function/ii (; 6 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
)
|
||||
(func $function/II (; 7 ;) (type $II) (param $0 i64) (result i64)
|
||||
(func $function/II (; 7 ;) (type $FUNCSIG$jj) (param $0 i64) (result i64)
|
||||
local.get $0
|
||||
)
|
||||
(func $function/ff (; 8 ;) (type $ff) (param $0 f32) (result f32)
|
||||
(func $function/ff (; 8 ;) (type $FUNCSIG$ff) (param $0 f32) (result f32)
|
||||
local.get $0
|
||||
)
|
||||
(func $function/FF (; 9 ;) (type $FF) (param $0 f64) (result f64)
|
||||
(func $function/FF (; 9 ;) (type $FUNCSIG$dd) (param $0 f64) (result f64)
|
||||
local.get $0
|
||||
)
|
||||
(func $function/iiv (; 10 ;) (type $ii_) (param $0 i32) (param $1 i32)
|
||||
(func $function/iiv (; 10 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
||||
nop
|
||||
)
|
||||
(func $function/iii (; 11 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $function/iii (; 11 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
local.get $0
|
||||
local.get $1
|
||||
i32.add
|
||||
)
|
||||
(func $function/III (; 12 ;) (type $IiI) (param $0 i64) (param $1 i32) (result i64)
|
||||
(func $function/III (; 12 ;) (type $FUNCSIG$jji) (param $0 i64) (param $1 i32) (result i64)
|
||||
local.get $0
|
||||
local.get $1
|
||||
i64.extend_i32_s
|
||||
i64.add
|
||||
)
|
||||
(func $function/fff (; 13 ;) (type $fff) (param $0 f32) (param $1 f32) (result f32)
|
||||
(func $function/fff (; 13 ;) (type $FUNCSIG$fff) (param $0 f32) (param $1 f32) (result f32)
|
||||
local.get $0
|
||||
local.get $1
|
||||
f32.add
|
||||
)
|
||||
(func $function/FFF (; 14 ;) (type $FFF) (param $0 f64) (param $1 f64) (result f64)
|
||||
(func $function/FFF (; 14 ;) (type $FUNCSIG$ddd) (param $0 f64) (param $1 f64) (result f64)
|
||||
local.get $0
|
||||
local.get $1
|
||||
f64.add
|
||||
)
|
||||
(func $start:function (; 15 ;) (type $_)
|
||||
(func $start:function (; 15 ;) (type $FUNCSIG$v)
|
||||
call $function/v
|
||||
call $function/i
|
||||
drop
|
||||
@ -119,9 +119,9 @@
|
||||
call $function/FFF
|
||||
drop
|
||||
)
|
||||
(func $start (; 16 ;) (type $_)
|
||||
(func $start (; 16 ;) (type $FUNCSIG$v)
|
||||
call $start:function
|
||||
)
|
||||
(func $null (; 17 ;) (type $_)
|
||||
(func $null (; 17 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,6 +1,5 @@
|
||||
(module
|
||||
(type $_ (func))
|
||||
(type $i (func (result i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(type $FUNCSIG$i (func (result i32)))
|
||||
(memory $0 0)
|
||||
(table $0 2 funcref)
|
||||
@ -62,24 +61,24 @@
|
||||
global.set $~lib/allocator/arena/offset
|
||||
local.get $0
|
||||
)
|
||||
(func $getter-call/C#get:x~anonymous|0 (; 1 ;) (type $i) (result i32)
|
||||
(func $getter-call/C#get:x~anonymous|0 (; 1 ;) (type $FUNCSIG$i) (result i32)
|
||||
i32.const 42
|
||||
)
|
||||
(func $getter-call/test (; 2 ;) (type $i) (result i32)
|
||||
(func $getter-call/test (; 2 ;) (type $FUNCSIG$i) (result i32)
|
||||
call $~lib/allocator/arena/__memory_allocate
|
||||
drop
|
||||
i32.const 0
|
||||
global.set $~lib/argc
|
||||
i32.const 1
|
||||
call_indirect (type $i)
|
||||
call_indirect (type $FUNCSIG$i)
|
||||
)
|
||||
(func $start (; 3 ;) (type $_)
|
||||
(func $start (; 3 ;) (type $FUNCSIG$v)
|
||||
i32.const 8
|
||||
global.set $~lib/allocator/arena/startOffset
|
||||
global.get $~lib/allocator/arena/startOffset
|
||||
global.set $~lib/allocator/arena/offset
|
||||
)
|
||||
(func $null (; 4 ;) (type $_)
|
||||
(func $null (; 4 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,7 +1,7 @@
|
||||
(module
|
||||
(type $_ (func))
|
||||
(type $i (func (result i32)))
|
||||
(type $ii (func (param i32) (result i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(type $FUNCSIG$i (func (result i32)))
|
||||
(type $FUNCSIG$ii (func (param i32) (result i32)))
|
||||
(memory $0 0)
|
||||
(table $0 2 funcref)
|
||||
(elem (i32.const 0) $null $getter-call/C#get:x~anonymous|0)
|
||||
@ -13,7 +13,7 @@
|
||||
(export "table" (table $0))
|
||||
(export "test" (func $getter-call/test))
|
||||
(start $start)
|
||||
(func $start:~lib/allocator/arena (; 0 ;) (type $_)
|
||||
(func $start:~lib/allocator/arena (; 0 ;) (type $FUNCSIG$v)
|
||||
global.get $~lib/memory/HEAP_BASE
|
||||
i32.const 7
|
||||
i32.add
|
||||
@ -25,10 +25,10 @@
|
||||
global.get $~lib/allocator/arena/startOffset
|
||||
global.set $~lib/allocator/arena/offset
|
||||
)
|
||||
(func $start:getter-call (; 1 ;) (type $_)
|
||||
(func $start:getter-call (; 1 ;) (type $FUNCSIG$v)
|
||||
call $start:~lib/allocator/arena
|
||||
)
|
||||
(func $~lib/allocator/arena/__memory_allocate (; 2 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $~lib/allocator/arena/__memory_allocate (; 2 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(local $1 i32)
|
||||
(local $2 i32)
|
||||
(local $3 i32)
|
||||
@ -107,12 +107,12 @@
|
||||
global.set $~lib/allocator/arena/offset
|
||||
local.get $1
|
||||
)
|
||||
(func $~lib/memory/memory.allocate (; 3 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $~lib/memory/memory.allocate (; 3 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
call $~lib/allocator/arena/__memory_allocate
|
||||
return
|
||||
)
|
||||
(func $getter-call/C#constructor (; 4 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $getter-call/C#constructor (; 4 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
i32.eqz
|
||||
if
|
||||
@ -122,13 +122,13 @@
|
||||
end
|
||||
local.get $0
|
||||
)
|
||||
(func $getter-call/C#get:x~anonymous|0 (; 5 ;) (type $i) (result i32)
|
||||
(func $getter-call/C#get:x~anonymous|0 (; 5 ;) (type $FUNCSIG$i) (result i32)
|
||||
i32.const 42
|
||||
)
|
||||
(func $getter-call/C#get:x (; 6 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $getter-call/C#get:x (; 6 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
i32.const 1
|
||||
)
|
||||
(func $getter-call/test (; 7 ;) (type $i) (result i32)
|
||||
(func $getter-call/test (; 7 ;) (type $FUNCSIG$i) (result i32)
|
||||
(local $0 i32)
|
||||
i32.const 0
|
||||
call $getter-call/C#constructor
|
||||
@ -137,11 +137,11 @@
|
||||
global.set $~lib/argc
|
||||
local.get $0
|
||||
call $getter-call/C#get:x
|
||||
call_indirect (type $i)
|
||||
call_indirect (type $FUNCSIG$i)
|
||||
)
|
||||
(func $start (; 8 ;) (type $_)
|
||||
(func $start (; 8 ;) (type $FUNCSIG$v)
|
||||
call $start:getter-call
|
||||
)
|
||||
(func $null (; 9 ;) (type $_)
|
||||
(func $null (; 9 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
(module
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(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")
|
||||
@ -10,7 +10,7 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $start:getter-setter (; 1 ;) (type $_)
|
||||
(func $start:getter-setter (; 1 ;) (type $FUNCSIG$v)
|
||||
global.get $getter-setter/Foo._bar
|
||||
if
|
||||
i32.const 0
|
||||
@ -47,10 +47,10 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $start (; 2 ;) (type $_)
|
||||
(func $start (; 2 ;) (type $FUNCSIG$v)
|
||||
call $start:getter-setter
|
||||
)
|
||||
(func $null (; 3 ;) (type $_)
|
||||
(func $null (; 3 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,8 +1,8 @@
|
||||
(module
|
||||
(type $i (func (result i32)))
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $i_ (func (param i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$i (func (result i32)))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$vi (func (param i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(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")
|
||||
@ -13,14 +13,14 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $getter-setter/Foo.bar.get:bar (; 1 ;) (type $i) (result i32)
|
||||
(func $getter-setter/Foo.bar.get:bar (; 1 ;) (type $FUNCSIG$i) (result i32)
|
||||
global.get $getter-setter/Foo._bar
|
||||
)
|
||||
(func $getter-setter/Foo.bar.set:bar (; 2 ;) (type $i_) (param $0 i32)
|
||||
(func $getter-setter/Foo.bar.set:bar (; 2 ;) (type $FUNCSIG$vi) (param $0 i32)
|
||||
local.get $0
|
||||
global.set $getter-setter/Foo._bar
|
||||
)
|
||||
(func $start:getter-setter (; 3 ;) (type $_)
|
||||
(func $start:getter-setter (; 3 ;) (type $FUNCSIG$v)
|
||||
call $getter-setter/Foo.bar.get:bar
|
||||
i32.const 0
|
||||
i32.eq
|
||||
@ -64,9 +64,9 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $start (; 4 ;) (type $_)
|
||||
(func $start (; 4 ;) (type $FUNCSIG$v)
|
||||
call $start:getter-setter
|
||||
)
|
||||
(func $null (; 5 ;) (type $_)
|
||||
(func $null (; 5 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,8 +1,8 @@
|
||||
(module
|
||||
(type $i (func (result i32)))
|
||||
(type $ii_ (func (param i32 i32)))
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$i (func (result i32)))
|
||||
(type $FUNCSIG$vii (func (param i32 i32)))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
@ -41,13 +41,13 @@
|
||||
(export "gt_u" (func $../../examples/i64-polyfill/assembly/i64/gt_u))
|
||||
(export "ge_s" (func $../../examples/i64-polyfill/assembly/i64/ge_s))
|
||||
(export "ge_u" (func $../../examples/i64-polyfill/assembly/i64/ge_u))
|
||||
(func $../../examples/i64-polyfill/assembly/i64/getHi (; 0 ;) (type $i) (result i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/getHi (; 0 ;) (type $FUNCSIG$i) (result i32)
|
||||
global.get $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/getLo (; 1 ;) (type $i) (result i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/getLo (; 1 ;) (type $FUNCSIG$i) (result i32)
|
||||
global.get $../../examples/i64-polyfill/assembly/i64/lo
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/clz (; 2 ;) (type $ii_) (param $0 i32) (param $1 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/clz (; 2 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
local.get $1
|
||||
@ -61,7 +61,7 @@
|
||||
i32.const 0
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/ctz (; 3 ;) (type $ii_) (param $0 i32) (param $1 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/ctz (; 3 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
local.get $1
|
||||
@ -75,7 +75,7 @@
|
||||
i32.const 0
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/popcnt (; 4 ;) (type $ii_) (param $0 i32) (param $1 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/popcnt (; 4 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
local.get $1
|
||||
@ -89,7 +89,7 @@
|
||||
i32.const 0
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/eqz (; 5 ;) (type $ii_) (param $0 i32) (param $1 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/eqz (; 5 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
local.get $1
|
||||
@ -102,7 +102,7 @@
|
||||
i32.const 0
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/add (; 6 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/add (; 6 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 i64)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -128,7 +128,7 @@
|
||||
i32.wrap_i64
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/sub (; 7 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/sub (; 7 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 i64)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -154,7 +154,7 @@
|
||||
i32.wrap_i64
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/mul (; 8 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/mul (; 8 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 i64)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -180,7 +180,7 @@
|
||||
i32.wrap_i64
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/div_s (; 9 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/div_s (; 9 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 i64)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -206,7 +206,7 @@
|
||||
i32.wrap_i64
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/div_u (; 10 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/div_u (; 10 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 i64)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -232,7 +232,7 @@
|
||||
i32.wrap_i64
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/rem_s (; 11 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/rem_s (; 11 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 i64)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -258,7 +258,7 @@
|
||||
i32.wrap_i64
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/rem_u (; 12 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/rem_u (; 12 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 i64)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -284,7 +284,7 @@
|
||||
i32.wrap_i64
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/and (; 13 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/and (; 13 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 i64)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -310,7 +310,7 @@
|
||||
i32.wrap_i64
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/or (; 14 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/or (; 14 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 i64)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -336,7 +336,7 @@
|
||||
i32.wrap_i64
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/xor (; 15 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/xor (; 15 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 i64)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -362,7 +362,7 @@
|
||||
i32.wrap_i64
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/shl (; 16 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/shl (; 16 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 i64)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -388,7 +388,7 @@
|
||||
i32.wrap_i64
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/shr_s (; 17 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/shr_s (; 17 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 i64)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -414,7 +414,7 @@
|
||||
i32.wrap_i64
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/shr_u (; 18 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/shr_u (; 18 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 i64)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -440,7 +440,7 @@
|
||||
i32.wrap_i64
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/rotl (; 19 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/rotl (; 19 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 i64)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -466,7 +466,7 @@
|
||||
i32.wrap_i64
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/rotr (; 20 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/rotr (; 20 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 i64)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -492,7 +492,7 @@
|
||||
i32.wrap_i64
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/eq (; 21 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/eq (; 21 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
local.get $1
|
||||
@ -512,7 +512,7 @@
|
||||
i32.const 0
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/ne (; 22 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/ne (; 22 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
local.get $1
|
||||
@ -532,7 +532,7 @@
|
||||
i32.const 0
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/lt_s (; 23 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/lt_s (; 23 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
local.get $1
|
||||
@ -552,7 +552,7 @@
|
||||
i32.const 0
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/lt_u (; 24 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/lt_u (; 24 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
local.get $1
|
||||
@ -572,7 +572,7 @@
|
||||
i32.const 0
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/le_s (; 25 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/le_s (; 25 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
local.get $1
|
||||
@ -592,7 +592,7 @@
|
||||
i32.const 0
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/le_u (; 26 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/le_u (; 26 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
local.get $1
|
||||
@ -612,7 +612,7 @@
|
||||
i32.const 0
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/gt_s (; 27 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/gt_s (; 27 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
local.get $1
|
||||
@ -632,7 +632,7 @@
|
||||
i32.const 0
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/gt_u (; 28 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/gt_u (; 28 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
local.get $1
|
||||
@ -652,7 +652,7 @@
|
||||
i32.const 0
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/ge_s (; 29 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/ge_s (; 29 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
local.get $1
|
||||
@ -672,7 +672,7 @@
|
||||
i32.const 0
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/ge_u (; 30 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/ge_u (; 30 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
local.get $1
|
||||
@ -692,7 +692,7 @@
|
||||
i32.const 0
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $null (; 31 ;) (type $_)
|
||||
(func $null (; 31 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,8 +1,8 @@
|
||||
(module
|
||||
(type $i (func (result i32)))
|
||||
(type $ii_ (func (param i32 i32)))
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$i (func (result i32)))
|
||||
(type $FUNCSIG$vii (func (param i32 i32)))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
@ -42,13 +42,13 @@
|
||||
(export "gt_u" (func $../../examples/i64-polyfill/assembly/i64/gt_u))
|
||||
(export "ge_s" (func $../../examples/i64-polyfill/assembly/i64/ge_s))
|
||||
(export "ge_u" (func $../../examples/i64-polyfill/assembly/i64/ge_u))
|
||||
(func $../../examples/i64-polyfill/assembly/i64/getHi (; 0 ;) (type $i) (result i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/getHi (; 0 ;) (type $FUNCSIG$i) (result i32)
|
||||
global.get $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/getLo (; 1 ;) (type $i) (result i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/getLo (; 1 ;) (type $FUNCSIG$i) (result i32)
|
||||
global.get $../../examples/i64-polyfill/assembly/i64/lo
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/clz (; 2 ;) (type $ii_) (param $0 i32) (param $1 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/clz (; 2 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
||||
(local $2 i64)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -65,7 +65,7 @@
|
||||
i32.const 0
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/ctz (; 3 ;) (type $ii_) (param $0 i32) (param $1 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/ctz (; 3 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
||||
(local $2 i64)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -82,7 +82,7 @@
|
||||
i32.const 0
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/popcnt (; 4 ;) (type $ii_) (param $0 i32) (param $1 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/popcnt (; 4 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
||||
(local $2 i64)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -99,7 +99,7 @@
|
||||
i32.const 0
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/eqz (; 5 ;) (type $ii_) (param $0 i32) (param $1 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/eqz (; 5 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
||||
(local $2 i32)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -115,7 +115,7 @@
|
||||
i32.const 0
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/add (; 6 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/add (; 6 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 i64)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -142,7 +142,7 @@
|
||||
i32.wrap_i64
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/sub (; 7 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/sub (; 7 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 i64)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -169,7 +169,7 @@
|
||||
i32.wrap_i64
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/mul (; 8 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/mul (; 8 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 i64)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -196,7 +196,7 @@
|
||||
i32.wrap_i64
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/div_s (; 9 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/div_s (; 9 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 i64)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -223,7 +223,7 @@
|
||||
i32.wrap_i64
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/div_u (; 10 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/div_u (; 10 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 i64)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -250,7 +250,7 @@
|
||||
i32.wrap_i64
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/rem_s (; 11 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/rem_s (; 11 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 i64)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -277,7 +277,7 @@
|
||||
i32.wrap_i64
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/rem_u (; 12 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/rem_u (; 12 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 i64)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -304,7 +304,7 @@
|
||||
i32.wrap_i64
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/and (; 13 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/and (; 13 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 i64)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -331,7 +331,7 @@
|
||||
i32.wrap_i64
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/or (; 14 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/or (; 14 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 i64)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -358,7 +358,7 @@
|
||||
i32.wrap_i64
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/xor (; 15 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/xor (; 15 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 i64)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -385,7 +385,7 @@
|
||||
i32.wrap_i64
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/shl (; 16 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/shl (; 16 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 i64)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -412,7 +412,7 @@
|
||||
i32.wrap_i64
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/shr_s (; 17 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/shr_s (; 17 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 i64)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -439,7 +439,7 @@
|
||||
i32.wrap_i64
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/shr_u (; 18 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/shr_u (; 18 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 i64)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -466,7 +466,7 @@
|
||||
i32.wrap_i64
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/rotl (; 19 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/rotl (; 19 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 i64)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -493,7 +493,7 @@
|
||||
i32.wrap_i64
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/rotr (; 20 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/rotr (; 20 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 i64)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -520,7 +520,7 @@
|
||||
i32.wrap_i64
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/eq (; 21 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/eq (; 21 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 i32)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -543,7 +543,7 @@
|
||||
i32.const 0
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/ne (; 22 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/ne (; 22 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 i32)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -566,7 +566,7 @@
|
||||
i32.const 0
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/lt_s (; 23 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/lt_s (; 23 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 i32)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -589,7 +589,7 @@
|
||||
i32.const 0
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/lt_u (; 24 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/lt_u (; 24 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 i32)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -612,7 +612,7 @@
|
||||
i32.const 0
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/le_s (; 25 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/le_s (; 25 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 i32)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -635,7 +635,7 @@
|
||||
i32.const 0
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/le_u (; 26 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/le_u (; 26 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 i32)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -658,7 +658,7 @@
|
||||
i32.const 0
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/gt_s (; 27 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/gt_s (; 27 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 i32)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -681,7 +681,7 @@
|
||||
i32.const 0
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/gt_u (; 28 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/gt_u (; 28 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 i32)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -704,7 +704,7 @@
|
||||
i32.const 0
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/ge_s (; 29 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/ge_s (; 29 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 i32)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -727,7 +727,7 @@
|
||||
i32.const 0
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/ge_u (; 30 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/i64-polyfill/assembly/i64/ge_u (; 30 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 i32)
|
||||
local.get $0
|
||||
i64.extend_i32_u
|
||||
@ -750,6 +750,6 @@
|
||||
i32.const 0
|
||||
global.set $../../examples/i64-polyfill/assembly/i64/hi
|
||||
)
|
||||
(func $null (; 31 ;) (type $_)
|
||||
(func $null (; 31 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,7 +1,7 @@
|
||||
(module
|
||||
(type $ii (func (param i32) (result i32)))
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$ii (func (param i32) (result i32)))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\05\00\00\00i\00f\00.\00t\00s")
|
||||
@ -13,13 +13,13 @@
|
||||
(export "ifThen" (func $if/ifThen))
|
||||
(export "ifThenElseBlock" (func $if/ifThenElse))
|
||||
(export "ifAlwaysReturns" (func $if/ifAlwaysReturns))
|
||||
(func $if/ifThenElse (; 1 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $if/ifThenElse (; 1 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
i32.const 1
|
||||
i32.const 0
|
||||
local.get $0
|
||||
select
|
||||
)
|
||||
(func $if/ifThen (; 2 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $if/ifThen (; 2 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
if
|
||||
i32.const 1
|
||||
@ -27,7 +27,7 @@
|
||||
end
|
||||
i32.const 0
|
||||
)
|
||||
(func $if/ifAlwaysReturns (; 3 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $if/ifAlwaysReturns (; 3 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
if (result i32)
|
||||
i32.const 1
|
||||
@ -40,7 +40,7 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $start (; 4 ;) (type $_)
|
||||
(func $start (; 4 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,7 +1,7 @@
|
||||
(module
|
||||
(type $ii (func (param i32) (result i32)))
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$ii (func (param i32) (result i32)))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\05\00\00\00i\00f\00.\00t\00s\00")
|
||||
@ -15,7 +15,7 @@
|
||||
(export "ifThenElseBlock" (func $if/ifThenElseBlock))
|
||||
(export "ifAlwaysReturns" (func $if/ifAlwaysReturns))
|
||||
(start $start)
|
||||
(func $if/ifThenElse (; 1 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $if/ifThenElse (; 1 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
if
|
||||
i32.const 1
|
||||
@ -27,7 +27,7 @@
|
||||
unreachable
|
||||
unreachable
|
||||
)
|
||||
(func $if/ifThen (; 2 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $if/ifThen (; 2 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
if
|
||||
i32.const 1
|
||||
@ -35,7 +35,7 @@
|
||||
end
|
||||
i32.const 0
|
||||
)
|
||||
(func $if/ifThenElseBlock (; 3 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $if/ifThenElseBlock (; 3 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
if
|
||||
i32.const 1
|
||||
@ -47,7 +47,7 @@
|
||||
unreachable
|
||||
unreachable
|
||||
)
|
||||
(func $start:if (; 4 ;) (type $_)
|
||||
(func $start:if (; 4 ;) (type $FUNCSIG$v)
|
||||
i32.const 0
|
||||
call $if/ifThenElse
|
||||
i32.const 0
|
||||
@ -127,7 +127,7 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $if/ifAlwaysReturns (; 5 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $if/ifAlwaysReturns (; 5 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
if
|
||||
i32.const 1
|
||||
@ -143,9 +143,9 @@
|
||||
unreachable
|
||||
unreachable
|
||||
)
|
||||
(func $start (; 6 ;) (type $_)
|
||||
(func $start (; 6 ;) (type $FUNCSIG$v)
|
||||
call $start:if
|
||||
)
|
||||
(func $null (; 7 ;) (type $_)
|
||||
(func $null (; 7 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,11 +1,11 @@
|
||||
(module
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $start)
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(func $start (; 0 ;) (type $_)
|
||||
(func $start (; 0 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
(module
|
||||
(type $iii (func (param i32 i32) (result i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
@ -11,25 +11,25 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $export/add (; 0 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $export/add (; 0 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
local.get $0
|
||||
local.get $1
|
||||
i32.add
|
||||
)
|
||||
(func $export/sub (; 1 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $export/sub (; 1 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
local.get $0
|
||||
local.get $1
|
||||
i32.sub
|
||||
)
|
||||
(func $export/mul (; 2 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $export/mul (; 2 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
local.get $0
|
||||
local.get $1
|
||||
i32.mul
|
||||
)
|
||||
(func $export/ns.two (; 3 ;) (type $_)
|
||||
(func $export/ns.two (; 3 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
(func $start:import (; 4 ;) (type $_)
|
||||
(func $start:import (; 4 ;) (type $FUNCSIG$v)
|
||||
global.get $export/a
|
||||
global.get $export/b
|
||||
call $export/add
|
||||
@ -57,9 +57,9 @@
|
||||
drop
|
||||
call $export/ns.two
|
||||
)
|
||||
(func $start (; 5 ;) (type $_)
|
||||
(func $start (; 5 ;) (type $FUNCSIG$v)
|
||||
call $start:import
|
||||
)
|
||||
(func $null (; 6 ;) (type $_)
|
||||
(func $null (; 6 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,5 +1,5 @@
|
||||
(module
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\0d\00\00\00i\00n\00f\00e\00r\00-\00t\00y\00p\00e\00.\00t\00s")
|
||||
(table $0 1 funcref)
|
||||
@ -11,7 +11,7 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $start:infer-type (; 0 ;) (type $_)
|
||||
(func $start:infer-type (; 0 ;) (type $FUNCSIG$v)
|
||||
(local $0 i32)
|
||||
i32.const 0
|
||||
global.set $infer-type/ri
|
||||
@ -34,10 +34,10 @@
|
||||
end
|
||||
end
|
||||
)
|
||||
(func $start (; 1 ;) (type $_)
|
||||
(func $start (; 1 ;) (type $FUNCSIG$v)
|
||||
call $start:infer-type
|
||||
)
|
||||
(func $null (; 2 ;) (type $_)
|
||||
(func $null (; 2 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,10 +1,10 @@
|
||||
(module
|
||||
(type $_ (func))
|
||||
(type $i (func (result i32)))
|
||||
(type $I (func (result i64)))
|
||||
(type $f (func (result f32)))
|
||||
(type $F (func (result f64)))
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(type $FUNCSIG$i (func (result i32)))
|
||||
(type $FUNCSIG$j (func (result i64)))
|
||||
(type $FUNCSIG$f (func (result f32)))
|
||||
(type $FUNCSIG$d (func (result f64)))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\0d\00\00\00i\00n\00f\00e\00r\00-\00t\00y\00p\00e\00.\00t\00s\00")
|
||||
@ -23,7 +23,7 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $infer-type/locals (; 1 ;) (type $_)
|
||||
(func $infer-type/locals (; 1 ;) (type $FUNCSIG$v)
|
||||
(local $0 i32)
|
||||
(local $1 i64)
|
||||
(local $2 f64)
|
||||
@ -43,19 +43,19 @@
|
||||
global.get $infer-type/F
|
||||
local.set $5
|
||||
)
|
||||
(func $infer-type/reti (; 2 ;) (type $i) (result i32)
|
||||
(func $infer-type/reti (; 2 ;) (type $FUNCSIG$i) (result i32)
|
||||
i32.const 0
|
||||
)
|
||||
(func $infer-type/retI (; 3 ;) (type $I) (result i64)
|
||||
(func $infer-type/retI (; 3 ;) (type $FUNCSIG$j) (result i64)
|
||||
i64.const 0
|
||||
)
|
||||
(func $infer-type/retf (; 4 ;) (type $f) (result f32)
|
||||
(func $infer-type/retf (; 4 ;) (type $FUNCSIG$f) (result f32)
|
||||
f32.const 0
|
||||
)
|
||||
(func $infer-type/refF (; 5 ;) (type $F) (result f64)
|
||||
(func $infer-type/refF (; 5 ;) (type $FUNCSIG$d) (result f64)
|
||||
f64.const 0
|
||||
)
|
||||
(func $start:infer-type (; 6 ;) (type $_)
|
||||
(func $start:infer-type (; 6 ;) (type $FUNCSIG$v)
|
||||
(local $0 i32)
|
||||
(local $1 i32)
|
||||
global.get $infer-type/i
|
||||
@ -126,9 +126,9 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $start (; 7 ;) (type $_)
|
||||
(func $start (; 7 ;) (type $FUNCSIG$v)
|
||||
call $start:infer-type
|
||||
)
|
||||
(func $null (; 8 ;) (type $_)
|
||||
(func $null (; 8 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,5 +1,5 @@
|
||||
(module
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
@ -8,13 +8,13 @@
|
||||
(export "foo" (func $inlining-recursive/foo))
|
||||
(export "bar" (func $inlining-recursive/baz))
|
||||
(export "baz" (func $inlining-recursive/baz))
|
||||
(func $inlining-recursive/foo (; 0 ;) (type $_)
|
||||
(func $inlining-recursive/foo (; 0 ;) (type $FUNCSIG$v)
|
||||
call $inlining-recursive/foo
|
||||
)
|
||||
(func $inlining-recursive/baz (; 1 ;) (type $_)
|
||||
(func $inlining-recursive/baz (; 1 ;) (type $FUNCSIG$v)
|
||||
call $inlining-recursive/baz
|
||||
)
|
||||
(func $null (; 2 ;) (type $_)
|
||||
(func $null (; 2 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,5 +1,5 @@
|
||||
(module
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
@ -9,17 +9,17 @@
|
||||
(export "foo" (func $inlining-recursive/foo))
|
||||
(export "bar" (func $inlining-recursive/bar))
|
||||
(export "baz" (func $inlining-recursive/baz))
|
||||
(func $inlining-recursive/foo (; 0 ;) (type $_)
|
||||
(func $inlining-recursive/foo (; 0 ;) (type $FUNCSIG$v)
|
||||
call $inlining-recursive/foo
|
||||
)
|
||||
(func $inlining-recursive/baz (; 1 ;) (type $_)
|
||||
(func $inlining-recursive/baz (; 1 ;) (type $FUNCSIG$v)
|
||||
call $inlining-recursive/bar
|
||||
)
|
||||
(func $inlining-recursive/bar (; 2 ;) (type $_)
|
||||
(func $inlining-recursive/bar (; 2 ;) (type $FUNCSIG$v)
|
||||
block $inlining-recursive/bar|inlined.0
|
||||
call $inlining-recursive/baz
|
||||
end
|
||||
)
|
||||
(func $null (; 3 ;) (type $_)
|
||||
(func $null (; 3 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,8 +1,8 @@
|
||||
(module
|
||||
(type $i (func (result i32)))
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $_ (func))
|
||||
(type $ii (func (param i32) (result i32)))
|
||||
(type $FUNCSIG$i (func (result i32)))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(type $FUNCSIG$ii (func (param i32) (result i32)))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\0b\00\00\00i\00n\00l\00i\00n\00i\00n\00g\00.\00t\00s")
|
||||
@ -15,18 +15,18 @@
|
||||
(export "table" (table $0))
|
||||
(export "test" (func $inlining/test))
|
||||
(start $start)
|
||||
(func $inlining/test (; 1 ;) (type $i) (result i32)
|
||||
(func $inlining/test (; 1 ;) (type $FUNCSIG$i) (result i32)
|
||||
i32.const 3
|
||||
)
|
||||
(func $inlining/func_fe~anonymous|0 (; 2 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $inlining/func_fe~anonymous|0 (; 2 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
)
|
||||
(func $inlining/test_funcs (; 3 ;) (type $_)
|
||||
(func $inlining/test_funcs (; 3 ;) (type $FUNCSIG$v)
|
||||
i32.const 1
|
||||
global.set $~lib/argc
|
||||
i32.const 2
|
||||
i32.const 1
|
||||
call_indirect (type $ii)
|
||||
call_indirect (type $FUNCSIG$ii)
|
||||
i32.const 2
|
||||
i32.ne
|
||||
if
|
||||
@ -38,7 +38,7 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $~lib/allocator/arena/__memory_allocate (; 4 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $~lib/allocator/arena/__memory_allocate (; 4 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(local $1 i32)
|
||||
(local $2 i32)
|
||||
(local $3 i32)
|
||||
@ -100,7 +100,7 @@
|
||||
global.set $~lib/allocator/arena/offset
|
||||
local.get $1
|
||||
)
|
||||
(func $inlining/test_ctor (; 5 ;) (type $_)
|
||||
(func $inlining/test_ctor (; 5 ;) (type $FUNCSIG$v)
|
||||
(local $0 i32)
|
||||
i32.const 16
|
||||
call $~lib/allocator/arena/__memory_allocate
|
||||
@ -178,7 +178,7 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $start (; 6 ;) (type $_)
|
||||
(func $start (; 6 ;) (type $FUNCSIG$v)
|
||||
call $inlining/test_funcs
|
||||
i32.const 40
|
||||
global.set $~lib/allocator/arena/startOffset
|
||||
@ -186,7 +186,7 @@
|
||||
global.set $~lib/allocator/arena/offset
|
||||
call $inlining/test_ctor
|
||||
)
|
||||
(func $null (; 7 ;) (type $_)
|
||||
(func $null (; 7 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,8 +1,8 @@
|
||||
(module
|
||||
(type $i (func (result i32)))
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $_ (func))
|
||||
(type $ii (func (param i32) (result i32)))
|
||||
(type $FUNCSIG$i (func (result i32)))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(type $FUNCSIG$ii (func (param i32) (result i32)))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\0b\00\00\00i\00n\00l\00i\00n\00i\00n\00g\00.\00t\00s\00")
|
||||
@ -17,15 +17,15 @@
|
||||
(export "table" (table $0))
|
||||
(export "test" (func $inlining/test))
|
||||
(start $start)
|
||||
(func $inlining/test (; 1 ;) (type $i) (result i32)
|
||||
(func $inlining/test (; 1 ;) (type $FUNCSIG$i) (result i32)
|
||||
global.get $inlining/constantGlobal
|
||||
i32.const 2
|
||||
i32.add
|
||||
)
|
||||
(func $inlining/func_fe~anonymous|0 (; 2 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $inlining/func_fe~anonymous|0 (; 2 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
)
|
||||
(func $inlining/test_funcs (; 3 ;) (type $_)
|
||||
(func $inlining/test_funcs (; 3 ;) (type $FUNCSIG$v)
|
||||
(local $0 f32)
|
||||
(local $1 f64)
|
||||
(local $2 i32)
|
||||
@ -223,7 +223,7 @@
|
||||
block $inlining/func_fe|inlined.0 (result i32)
|
||||
i32.const 1
|
||||
end
|
||||
call_indirect (type $ii)
|
||||
call_indirect (type $FUNCSIG$ii)
|
||||
end
|
||||
i32.const 2
|
||||
i32.eq
|
||||
@ -279,7 +279,7 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $start:~lib/allocator/arena (; 4 ;) (type $_)
|
||||
(func $start:~lib/allocator/arena (; 4 ;) (type $FUNCSIG$v)
|
||||
global.get $~lib/memory/HEAP_BASE
|
||||
i32.const 7
|
||||
i32.add
|
||||
@ -291,7 +291,7 @@
|
||||
global.get $~lib/allocator/arena/startOffset
|
||||
global.set $~lib/allocator/arena/offset
|
||||
)
|
||||
(func $~lib/allocator/arena/__memory_allocate (; 5 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $~lib/allocator/arena/__memory_allocate (; 5 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(local $1 i32)
|
||||
(local $2 i32)
|
||||
(local $3 i32)
|
||||
@ -370,12 +370,12 @@
|
||||
global.set $~lib/allocator/arena/offset
|
||||
local.get $1
|
||||
)
|
||||
(func $~lib/memory/memory.allocate (; 6 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $~lib/memory/memory.allocate (; 6 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
call $~lib/allocator/arena/__memory_allocate
|
||||
return
|
||||
)
|
||||
(func $inlining/test_ctor (; 7 ;) (type $_)
|
||||
(func $inlining/test_ctor (; 7 ;) (type $FUNCSIG$v)
|
||||
(local $0 i32)
|
||||
(local $1 i32)
|
||||
(local $2 i32)
|
||||
@ -483,7 +483,7 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $start:inlining (; 8 ;) (type $_)
|
||||
(func $start:inlining (; 8 ;) (type $FUNCSIG$v)
|
||||
call $inlining/test
|
||||
i32.const 3
|
||||
i32.eq
|
||||
@ -500,9 +500,9 @@
|
||||
call $start:~lib/allocator/arena
|
||||
call $inlining/test_ctor
|
||||
)
|
||||
(func $start (; 9 ;) (type $_)
|
||||
(func $start (; 9 ;) (type $FUNCSIG$v)
|
||||
call $start:inlining
|
||||
)
|
||||
(func $null (; 10 ;) (type $_)
|
||||
(func $null (; 10 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
(module
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\0d\00\00\00i\00n\00s\00t\00a\00n\00c\00e\00o\00f\00.\00t\00s")
|
||||
@ -10,7 +10,7 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $start:instanceof (; 1 ;) (type $_)
|
||||
(func $start:instanceof (; 1 ;) (type $FUNCSIG$v)
|
||||
global.get $instanceof/an
|
||||
if
|
||||
i32.const 0
|
||||
@ -33,10 +33,10 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $start (; 2 ;) (type $_)
|
||||
(func $start (; 2 ;) (type $FUNCSIG$v)
|
||||
call $start:instanceof
|
||||
)
|
||||
(func $null (; 3 ;) (type $_)
|
||||
(func $null (; 3 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,8 +1,8 @@
|
||||
(module
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $ii (func (param i32) (result i32)))
|
||||
(type $Fi (func (param f64) (result i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$ii (func (param i32) (result i32)))
|
||||
(type $FUNCSIG$id (func (param f64) (result i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\0d\00\00\00i\00n\00s\00t\00a\00n\00c\00e\00o\00f\00.\00t\00s\00")
|
||||
@ -19,23 +19,23 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $instanceof/isI32<i32> (; 1 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $instanceof/isI32<i32> (; 1 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
i32.const 1
|
||||
return
|
||||
)
|
||||
(func $instanceof/isI32<f64> (; 2 ;) (type $Fi) (param $0 f64) (result i32)
|
||||
(func $instanceof/isI32<f64> (; 2 ;) (type $FUNCSIG$id) (param $0 f64) (result i32)
|
||||
i32.const 0
|
||||
return
|
||||
)
|
||||
(func $instanceof/isI32<u32> (; 3 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $instanceof/isI32<u32> (; 3 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
i32.const 0
|
||||
return
|
||||
)
|
||||
(func $instanceof/isI32<u16> (; 4 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $instanceof/isI32<u16> (; 4 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
i32.const 0
|
||||
return
|
||||
)
|
||||
(func $start:instanceof (; 5 ;) (type $_)
|
||||
(func $start:instanceof (; 5 ;) (type $FUNCSIG$v)
|
||||
i32.const 1
|
||||
i32.eqz
|
||||
if
|
||||
@ -520,9 +520,9 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $start (; 6 ;) (type $_)
|
||||
(func $start (; 6 ;) (type $FUNCSIG$v)
|
||||
call $start:instanceof
|
||||
)
|
||||
(func $null (; 7 ;) (type $_)
|
||||
(func $null (; 7 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,11 +1,11 @@
|
||||
(module
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $start)
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(func $start (; 0 ;) (type $_)
|
||||
(func $start (; 0 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,5 +1,5 @@
|
||||
(module
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
@ -33,7 +33,7 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $start:limits (; 0 ;) (type $_)
|
||||
(func $start:limits (; 0 ;) (type $FUNCSIG$v)
|
||||
global.get $~lib/builtins/i8.MIN_VALUE
|
||||
drop
|
||||
global.get $~lib/builtins/i8.MAX_VALUE
|
||||
@ -87,9 +87,9 @@
|
||||
global.get $~lib/builtins/f64.MAX_SAFE_INTEGER
|
||||
drop
|
||||
)
|
||||
(func $start (; 1 ;) (type $_)
|
||||
(func $start (; 1 ;) (type $FUNCSIG$v)
|
||||
call $start:limits
|
||||
)
|
||||
(func $null (; 2 ;) (type $_)
|
||||
(func $null (; 2 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,11 +1,11 @@
|
||||
(module
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $start)
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(func $start (; 0 ;) (type $_)
|
||||
(func $start (; 0 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,5 +1,5 @@
|
||||
(module
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
@ -7,7 +7,7 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $start:literals (; 0 ;) (type $_)
|
||||
(func $start:literals (; 0 ;) (type $FUNCSIG$v)
|
||||
i32.const 0
|
||||
drop
|
||||
i32.const 1
|
||||
@ -97,9 +97,9 @@
|
||||
i32.const 0
|
||||
drop
|
||||
)
|
||||
(func $start (; 1 ;) (type $_)
|
||||
(func $start (; 1 ;) (type $FUNCSIG$v)
|
||||
call $start:literals
|
||||
)
|
||||
(func $null (; 2 ;) (type $_)
|
||||
(func $null (; 2 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
(module
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\n\00\00\00l\00o\00g\00i\00c\00a\00l\00.\00t\00s")
|
||||
@ -13,7 +13,7 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $start:logical (; 1 ;) (type $_)
|
||||
(func $start:logical (; 1 ;) (type $FUNCSIG$v)
|
||||
i32.const 2
|
||||
global.set $logical/i
|
||||
global.get $logical/i
|
||||
@ -119,10 +119,10 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $start (; 2 ;) (type $_)
|
||||
(func $start (; 2 ;) (type $FUNCSIG$v)
|
||||
call $start:logical
|
||||
)
|
||||
(func $null (; 3 ;) (type $_)
|
||||
(func $null (; 3 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
(module
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\n\00\00\00l\00o\00g\00i\00c\00a\00l\00.\00t\00s\00")
|
||||
@ -14,7 +14,7 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $start:logical (; 1 ;) (type $_)
|
||||
(func $start:logical (; 1 ;) (type $FUNCSIG$v)
|
||||
(local $0 i32)
|
||||
(local $1 f64)
|
||||
i32.const 0
|
||||
@ -244,9 +244,9 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $start (; 2 ;) (type $_)
|
||||
(func $start (; 2 ;) (type $FUNCSIG$v)
|
||||
call $start:logical
|
||||
)
|
||||
(func $null (; 3 ;) (type $_)
|
||||
(func $null (; 3 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
(module
|
||||
(type $_ (func))
|
||||
(type $iii (func (param i32 i32) (result i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
@ -9,7 +9,7 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(export "main" (func $main/main))
|
||||
(func $main/main (; 0 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $main/main (; 0 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
global.get $~lib/started
|
||||
i32.eqz
|
||||
if
|
||||
@ -20,7 +20,7 @@
|
||||
end
|
||||
global.get $main/code
|
||||
)
|
||||
(func $null (; 1 ;) (type $_)
|
||||
(func $null (; 1 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
(module
|
||||
(type $_ (func))
|
||||
(type $iii (func (param i32 i32) (result i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
@ -10,11 +10,11 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(export "main" (func $main/main))
|
||||
(func $start:main (; 0 ;) (type $_)
|
||||
(func $start:main (; 0 ;) (type $FUNCSIG$v)
|
||||
i32.const 1
|
||||
global.set $main/code
|
||||
)
|
||||
(func $main/main (; 1 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $main/main (; 1 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
global.get $~lib/started
|
||||
i32.eqz
|
||||
if
|
||||
@ -24,9 +24,9 @@
|
||||
end
|
||||
global.get $main/code
|
||||
)
|
||||
(func $start (; 2 ;) (type $_)
|
||||
(func $start (; 2 ;) (type $FUNCSIG$v)
|
||||
call $start:main
|
||||
)
|
||||
(func $null (; 3 ;) (type $_)
|
||||
(func $null (; 3 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,14 +1,14 @@
|
||||
(module
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $FF (func (param f64) (result f64)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$dd (func (param f64) (result f64)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(export "computeLine" (func $../../examples/mandelbrot/assembly/index/computeLine))
|
||||
(func $~lib/math/NativeMath.log (; 0 ;) (type $FF) (param $0 f64) (result f64)
|
||||
(func $~lib/math/NativeMath.log (; 0 ;) (type $FUNCSIG$dd) (param $0 f64) (result f64)
|
||||
(local $1 i32)
|
||||
(local $2 i32)
|
||||
(local $3 i32)
|
||||
@ -186,7 +186,7 @@
|
||||
f64.mul
|
||||
f64.add
|
||||
)
|
||||
(func $~lib/math/NativeMath.log2 (; 1 ;) (type $FF) (param $0 f64) (result f64)
|
||||
(func $~lib/math/NativeMath.log2 (; 1 ;) (type $FUNCSIG$dd) (param $0 f64) (result f64)
|
||||
(local $1 f64)
|
||||
(local $2 i32)
|
||||
(local $3 i32)
|
||||
@ -392,7 +392,7 @@
|
||||
local.get $0
|
||||
f64.add
|
||||
)
|
||||
(func $../../examples/mandelbrot/assembly/index/computeLine (; 2 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/mandelbrot/assembly/index/computeLine (; 2 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 f64)
|
||||
(local $5 f64)
|
||||
(local $6 f64)
|
||||
@ -587,7 +587,7 @@
|
||||
end
|
||||
end
|
||||
)
|
||||
(func $null (; 3 ;) (type $_)
|
||||
(func $null (; 3 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,8 +1,8 @@
|
||||
(module
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $FF (func (param f64) (result f64)))
|
||||
(type $FFFF (func (param f64 f64 f64) (result f64)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$dd (func (param f64) (result f64)))
|
||||
(type $FUNCSIG$dddd (func (param f64 f64 f64) (result f64)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
@ -11,7 +11,7 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(export "computeLine" (func $../../examples/mandelbrot/assembly/index/computeLine))
|
||||
(func $~lib/math/NativeMath.log (; 0 ;) (type $FF) (param $0 f64) (result f64)
|
||||
(func $~lib/math/NativeMath.log (; 0 ;) (type $FUNCSIG$dd) (param $0 f64) (result f64)
|
||||
(local $1 i64)
|
||||
(local $2 i32)
|
||||
(local $3 i32)
|
||||
@ -224,7 +224,7 @@
|
||||
f64.mul
|
||||
f64.add
|
||||
)
|
||||
(func $~lib/math/NativeMath.log2 (; 1 ;) (type $FF) (param $0 f64) (result f64)
|
||||
(func $~lib/math/NativeMath.log2 (; 1 ;) (type $FUNCSIG$dd) (param $0 f64) (result f64)
|
||||
(local $1 i64)
|
||||
(local $2 i32)
|
||||
(local $3 i32)
|
||||
@ -480,14 +480,14 @@
|
||||
local.get $15
|
||||
f64.add
|
||||
)
|
||||
(func $../../examples/mandelbrot/assembly/index/clamp<f64> (; 2 ;) (type $FFFF) (param $0 f64) (param $1 f64) (param $2 f64) (result f64)
|
||||
(func $../../examples/mandelbrot/assembly/index/clamp<f64> (; 2 ;) (type $FUNCSIG$dddd) (param $0 f64) (param $1 f64) (param $2 f64) (result f64)
|
||||
local.get $0
|
||||
local.get $1
|
||||
f64.max
|
||||
local.get $2
|
||||
f64.min
|
||||
)
|
||||
(func $../../examples/mandelbrot/assembly/index/computeLine (; 3 ;) (type $iiii_) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(func $../../examples/mandelbrot/assembly/index/computeLine (; 3 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
|
||||
(local $4 f64)
|
||||
(local $5 f64)
|
||||
(local $6 f64)
|
||||
@ -722,6 +722,6 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $null (; 4 ;) (type $_)
|
||||
(func $null (; 4 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
(module
|
||||
(type $ii (func (param i32) (result i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$ii (func (param i32) (result i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\0e\00\00\00m\00a\00n\00y\00-\00l\00o\00c\00a\00l\00s\00.\00t\00s")
|
||||
(table $0 1 funcref)
|
||||
@ -9,17 +9,17 @@
|
||||
(export "table" (table $0))
|
||||
(export "testI32" (func $many-locals/testI32))
|
||||
(export "testI8" (func $many-locals/testI8))
|
||||
(func $many-locals/testI32 (; 0 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $many-locals/testI32 (; 0 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
)
|
||||
(func $many-locals/testI8 (; 1 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $many-locals/testI8 (; 1 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
i32.const 24
|
||||
i32.shl
|
||||
i32.const 24
|
||||
i32.shr_s
|
||||
)
|
||||
(func $start (; 2 ;) (type $_)
|
||||
(func $start (; 2 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,7 +1,7 @@
|
||||
(module
|
||||
(type $ii (func (param i32) (result i32)))
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$ii (func (param i32) (result i32)))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(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")
|
||||
@ -13,7 +13,7 @@
|
||||
(export "testI32" (func $many-locals/testI32))
|
||||
(export "testI8" (func $many-locals/testI8))
|
||||
(start $start)
|
||||
(func $many-locals/testI32 (; 1 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $many-locals/testI32 (; 1 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(local $1 i32)
|
||||
(local $2 i32)
|
||||
(local $3 i32)
|
||||
@ -400,7 +400,7 @@
|
||||
local.set $128
|
||||
local.get $128
|
||||
)
|
||||
(func $many-locals/testI8 (; 2 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $many-locals/testI8 (; 2 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
(local $1 i32)
|
||||
(local $2 i32)
|
||||
(local $3 i32)
|
||||
@ -791,7 +791,7 @@
|
||||
i32.const 24
|
||||
i32.shr_s
|
||||
)
|
||||
(func $start:many-locals (; 3 ;) (type $_)
|
||||
(func $start:many-locals (; 3 ;) (type $FUNCSIG$v)
|
||||
i32.const 42
|
||||
call $many-locals/testI32
|
||||
i32.const 42
|
||||
@ -819,9 +819,9 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $start (; 4 ;) (type $_)
|
||||
(func $start (; 4 ;) (type $FUNCSIG$v)
|
||||
call $start:many-locals
|
||||
)
|
||||
(func $null (; 5 ;) (type $_)
|
||||
(func $null (; 5 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,7 +1,7 @@
|
||||
(module
|
||||
(type $iiii (func (param i32 i32 i32) (result i32)))
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\t\00\00\00m\00e\00m\00c\00p\00y\00.\00t\00s")
|
||||
@ -12,7 +12,7 @@
|
||||
(export "table" (table $0))
|
||||
(export "memcpy" (func $memcpy/memcpy))
|
||||
(start $start)
|
||||
(func $memcpy/memcpy (; 1 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
||||
(func $memcpy/memcpy (; 1 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
||||
(local $3 i32)
|
||||
(local $4 i32)
|
||||
(local $5 i32)
|
||||
@ -914,7 +914,7 @@
|
||||
end
|
||||
local.get $6
|
||||
)
|
||||
(func $start:memcpy (; 2 ;) (type $_)
|
||||
(func $start:memcpy (; 2 ;) (type $FUNCSIG$v)
|
||||
i32.const 8
|
||||
i64.const 1229782938247303441
|
||||
i64.store
|
||||
@ -1090,10 +1090,10 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $start (; 3 ;) (type $_)
|
||||
(func $start (; 3 ;) (type $FUNCSIG$v)
|
||||
call $start:memcpy
|
||||
)
|
||||
(func $null (; 4 ;) (type $_)
|
||||
(func $null (; 4 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,7 +1,7 @@
|
||||
(module
|
||||
(type $iiii (func (param i32 i32 i32) (result i32)))
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\t\00\00\00m\00e\00m\00c\00p\00y\00.\00t\00s\00")
|
||||
@ -14,7 +14,7 @@
|
||||
(export "table" (table $0))
|
||||
(export "memcpy" (func $memcpy/memcpy))
|
||||
(start $start)
|
||||
(func $memcpy/memcpy (; 1 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
||||
(func $memcpy/memcpy (; 1 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
||||
(local $3 i32)
|
||||
(local $4 i32)
|
||||
(local $5 i32)
|
||||
@ -1208,7 +1208,7 @@
|
||||
end
|
||||
local.get $3
|
||||
)
|
||||
(func $start:memcpy (; 2 ;) (type $_)
|
||||
(func $start:memcpy (; 2 ;) (type $FUNCSIG$v)
|
||||
global.get $memcpy/base
|
||||
i64.const 1229782938247303441
|
||||
i64.store
|
||||
@ -1428,9 +1428,9 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $start (; 3 ;) (type $_)
|
||||
(func $start (; 3 ;) (type $FUNCSIG$v)
|
||||
call $start:memcpy
|
||||
)
|
||||
(func $null (; 4 ;) (type $_)
|
||||
(func $null (; 4 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,7 +1,7 @@
|
||||
(module
|
||||
(type $iiii (func (param i32 i32 i32) (result i32)))
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\n\00\00\00m\00e\00m\00m\00o\00v\00e\00.\00t\00s")
|
||||
@ -11,7 +11,7 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $memmove/memmove (; 1 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
||||
(func $memmove/memmove (; 1 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
||||
(local $3 i32)
|
||||
(local $4 i32)
|
||||
(local $5 i32)
|
||||
@ -193,7 +193,7 @@
|
||||
end
|
||||
local.get $3
|
||||
)
|
||||
(func $start:memmove (; 2 ;) (type $_)
|
||||
(func $start:memmove (; 2 ;) (type $FUNCSIG$v)
|
||||
i32.const 8
|
||||
i64.const 1229782938247303441
|
||||
i64.store
|
||||
@ -369,10 +369,10 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $start (; 3 ;) (type $_)
|
||||
(func $start (; 3 ;) (type $FUNCSIG$v)
|
||||
call $start:memmove
|
||||
)
|
||||
(func $null (; 4 ;) (type $_)
|
||||
(func $null (; 4 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,7 +1,7 @@
|
||||
(module
|
||||
(type $iiii (func (param i32 i32 i32) (result i32)))
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\n\00\00\00m\00e\00m\00m\00o\00v\00e\00.\00t\00s\00")
|
||||
@ -13,7 +13,7 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $memmove/memmove (; 1 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
||||
(func $memmove/memmove (; 1 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
||||
(local $3 i32)
|
||||
(local $4 i32)
|
||||
local.get $0
|
||||
@ -225,7 +225,7 @@
|
||||
end
|
||||
local.get $3
|
||||
)
|
||||
(func $start:memmove (; 2 ;) (type $_)
|
||||
(func $start:memmove (; 2 ;) (type $FUNCSIG$v)
|
||||
global.get $memmove/base
|
||||
i64.const 1229782938247303441
|
||||
i64.store
|
||||
@ -445,9 +445,9 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $start (; 3 ;) (type $_)
|
||||
(func $start (; 3 ;) (type $FUNCSIG$v)
|
||||
call $start:memmove
|
||||
)
|
||||
(func $null (; 4 ;) (type $_)
|
||||
(func $null (; 4 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
(module
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(type $FUNCSIG$viii (func (param i32 i32 i32)))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(memory $0 1)
|
||||
@ -239,7 +239,7 @@
|
||||
end
|
||||
end
|
||||
)
|
||||
(func $start:memset (; 2 ;) (type $_)
|
||||
(func $start:memset (; 2 ;) (type $FUNCSIG$v)
|
||||
i32.const 32
|
||||
global.set $memset/dest
|
||||
global.get $memset/dest
|
||||
@ -333,10 +333,10 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $start (; 3 ;) (type $_)
|
||||
(func $start (; 3 ;) (type $FUNCSIG$v)
|
||||
call $start:memset
|
||||
)
|
||||
(func $null (; 4 ;) (type $_)
|
||||
(func $null (; 4 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,7 +1,7 @@
|
||||
(module
|
||||
(type $iiii (func (param i32 i32 i32) (result i32)))
|
||||
(type $iiii_ (func (param i32 i32 i32 i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))
|
||||
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\t\00\00\00m\00e\00m\00s\00e\00t\00.\00t\00s\00")
|
||||
@ -12,7 +12,7 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $memset/memset (; 1 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
||||
(func $memset/memset (; 1 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
||||
(local $3 i32)
|
||||
(local $4 i32)
|
||||
(local $5 i32)
|
||||
@ -276,7 +276,7 @@
|
||||
end
|
||||
local.get $3
|
||||
)
|
||||
(func $start:memset (; 2 ;) (type $_)
|
||||
(func $start:memset (; 2 ;) (type $FUNCSIG$v)
|
||||
global.get $~lib/memory/HEAP_BASE
|
||||
global.set $memset/dest
|
||||
global.get $memset/dest
|
||||
@ -378,9 +378,9 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $start (; 3 ;) (type $_)
|
||||
(func $start (; 3 ;) (type $FUNCSIG$v)
|
||||
call $start:memset
|
||||
)
|
||||
(func $null (; 4 ;) (type $_)
|
||||
(func $null (; 4 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,11 +1,11 @@
|
||||
(module
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $start)
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(func $start (; 0 ;) (type $_)
|
||||
(func $start (; 0 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,5 +1,5 @@
|
||||
(module
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
@ -17,55 +17,55 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $merge/namespaceType.test (; 0 ;) (type $_)
|
||||
(func $merge/namespaceType.test (; 0 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
(func $merge/typeNamespace.test (; 1 ;) (type $_)
|
||||
(func $merge/typeNamespace.test (; 1 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
(func $merge/functionType (; 2 ;) (type $_)
|
||||
(func $merge/functionType (; 2 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
(func $merge/typeFunction (; 3 ;) (type $_)
|
||||
(func $merge/typeFunction (; 3 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
(func $merge/classNamespace.test1 (; 4 ;) (type $_)
|
||||
(func $merge/classNamespace.test1 (; 4 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
(func $merge/classNamespace.test2 (; 5 ;) (type $_)
|
||||
(func $merge/classNamespace.test2 (; 5 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
(func $merge/namespaceClass.test1 (; 6 ;) (type $_)
|
||||
(func $merge/namespaceClass.test1 (; 6 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
(func $merge/namespaceClass.test2 (; 7 ;) (type $_)
|
||||
(func $merge/namespaceClass.test2 (; 7 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
(func $merge/functionNamespace (; 8 ;) (type $_)
|
||||
(func $merge/functionNamespace (; 8 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
(func $merge/functionNamespace.test (; 9 ;) (type $_)
|
||||
(func $merge/functionNamespace.test (; 9 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
(func $merge/namespaceFunction.test (; 10 ;) (type $_)
|
||||
(func $merge/namespaceFunction.test (; 10 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
(func $merge/namespaceFunction (; 11 ;) (type $_)
|
||||
(func $merge/namespaceFunction (; 11 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
(func $merge/enumNamespace.test (; 12 ;) (type $_)
|
||||
(func $merge/enumNamespace.test (; 12 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
(func $merge/namespaceEnum.test (; 13 ;) (type $_)
|
||||
(func $merge/namespaceEnum.test (; 13 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
(func $merge/namespaceNamespace.test1 (; 14 ;) (type $_)
|
||||
(func $merge/namespaceNamespace.test1 (; 14 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
(func $merge/namespaceNamespace.test2 (; 15 ;) (type $_)
|
||||
(func $merge/namespaceNamespace.test2 (; 15 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
(func $start:merge (; 16 ;) (type $_)
|
||||
(func $start:merge (; 16 ;) (type $FUNCSIG$v)
|
||||
global.get $merge/globalType
|
||||
drop
|
||||
global.get $merge/typeGlobal
|
||||
@ -91,9 +91,9 @@
|
||||
call $merge/namespaceNamespace.test1
|
||||
call $merge/namespaceNamespace.test2
|
||||
)
|
||||
(func $start (; 17 ;) (type $_)
|
||||
(func $start (; 17 ;) (type $FUNCSIG$v)
|
||||
call $start:merge
|
||||
)
|
||||
(func $null (; 18 ;) (type $_)
|
||||
(func $null (; 18 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,16 +1,16 @@
|
||||
(module
|
||||
(type $i (func (result i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$i (func (result i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(export "default" (func $named-export-default/get3))
|
||||
(func $named-export-default/get3 (; 0 ;) (type $i) (result i32)
|
||||
(func $named-export-default/get3 (; 0 ;) (type $FUNCSIG$i) (result i32)
|
||||
i32.const 3
|
||||
)
|
||||
(func $null (; 1 ;) (type $_)
|
||||
(func $null (; 1 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
(module
|
||||
(type $i (func (result i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$i (func (result i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
@ -8,9 +8,9 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(export "default" (func $named-export-default/get3))
|
||||
(func $named-export-default/get3 (; 0 ;) (type $i) (result i32)
|
||||
(func $named-export-default/get3 (; 0 ;) (type $FUNCSIG$i) (result i32)
|
||||
i32.const 3
|
||||
)
|
||||
(func $null (; 1 ;) (type $_)
|
||||
(func $null (; 1 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,16 +1,16 @@
|
||||
(module
|
||||
(type $i (func (result i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$i (func (result i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(export "getValue" (func $named-import-default/getValue))
|
||||
(func $named-import-default/getValue (; 0 ;) (type $i) (result i32)
|
||||
(func $named-import-default/getValue (; 0 ;) (type $FUNCSIG$i) (result i32)
|
||||
i32.const 3
|
||||
)
|
||||
(func $null (; 1 ;) (type $_)
|
||||
(func $null (; 1 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
(module
|
||||
(type $i (func (result i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$i (func (result i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
@ -8,12 +8,12 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(export "getValue" (func $named-import-default/getValue))
|
||||
(func $named-export-default/get3 (; 0 ;) (type $i) (result i32)
|
||||
(func $named-export-default/get3 (; 0 ;) (type $FUNCSIG$i) (result i32)
|
||||
i32.const 3
|
||||
)
|
||||
(func $named-import-default/getValue (; 1 ;) (type $i) (result i32)
|
||||
(func $named-import-default/getValue (; 1 ;) (type $FUNCSIG$i) (result i32)
|
||||
call $named-export-default/get3
|
||||
)
|
||||
(func $null (; 2 ;) (type $_)
|
||||
(func $null (; 2 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,11 +1,11 @@
|
||||
(module
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $start)
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(func $start (; 0 ;) (type $_)
|
||||
(func $start (; 0 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
(module
|
||||
(type $i (func (result i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$i (func (result i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
@ -11,13 +11,13 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $namespace/Outer.Inner.aFunc (; 0 ;) (type $i) (result i32)
|
||||
(func $namespace/Outer.Inner.aFunc (; 0 ;) (type $FUNCSIG$i) (result i32)
|
||||
global.get $namespace/Outer.Inner.aVar
|
||||
)
|
||||
(func $namespace/Joined.anotherFunc (; 1 ;) (type $i) (result i32)
|
||||
(func $namespace/Joined.anotherFunc (; 1 ;) (type $FUNCSIG$i) (result i32)
|
||||
i32.const 3
|
||||
)
|
||||
(func $start:namespace (; 2 ;) (type $_)
|
||||
(func $start:namespace (; 2 ;) (type $FUNCSIG$v)
|
||||
global.get $namespace/Outer.Inner.aVar
|
||||
drop
|
||||
call $namespace/Outer.Inner.aFunc
|
||||
@ -29,9 +29,9 @@
|
||||
call $namespace/Joined.anotherFunc
|
||||
drop
|
||||
)
|
||||
(func $start (; 3 ;) (type $_)
|
||||
(func $start (; 3 ;) (type $FUNCSIG$v)
|
||||
call $start:namespace
|
||||
)
|
||||
(func $null (; 4 ;) (type $_)
|
||||
(func $null (; 4 ;) (type $FUNCSIG$v)
|
||||
)
|
||||
)
|
||||
|
@ -1,16 +1,16 @@
|
||||
(module
|
||||
(type $i (func (result i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$i (func (result i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(export "test" (func $new-without-allocator/test))
|
||||
(func $new-without-allocator/test (; 0 ;) (type $i) (result i32)
|
||||
(func $new-without-allocator/test (; 0 ;) (type $FUNCSIG$i) (result i32)
|
||||
unreachable
|
||||
)
|
||||
(func $null (; 1 ;) (type $_)
|
||||
(func $null (; 1 ;) (type $FUNCSIG$v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
@ -1,7 +1,7 @@
|
||||
(module
|
||||
(type $i (func (result i32)))
|
||||
(type $ii (func (param i32) (result i32)))
|
||||
(type $_ (func))
|
||||
(type $FUNCSIG$i (func (result i32)))
|
||||
(type $FUNCSIG$ii (func (param i32) (result i32)))
|
||||
(type $FUNCSIG$v (func))
|
||||
(memory $0 0)
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
@ -9,10 +9,10 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(export "test" (func $new-without-allocator/test))
|
||||
(func $~lib/memory/memory.allocate (; 0 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $~lib/memory/memory.allocate (; 0 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
unreachable
|
||||
)
|
||||
(func $new-without-allocator/A#constructor (; 1 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $new-without-allocator/A#constructor (; 1 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
|
||||
local.get $0
|
||||
i32.eqz
|
||||
if
|
||||
@ -22,13 +22,13 @@
|
||||
end
|
||||
local.get $0
|
||||
)
|
||||
(func $new-without-allocator/test (; 2 ;) (type $i) (result i32)
|
||||
(func $new-without-allocator/test (; 2 ;) (type $FUNCSIG$i) (result i32)
|
||||
(local $0 i32)
|
||||
i32.const 0
|
||||
call $new-without-allocator/A#constructor
|
||||
local.set $0
|
||||
i32.const 3
|
||||
)
|
||||
(func $null (; 3 ;) (type $_)
|
||||
(func $null (; 3 ;) (type $FUNCSIG$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