Created
June 17, 2019 15:27
-
-
Save jtenner/645c8edc7f0795d8ca6e225841e8114a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(module | |
(type $FUNCSIG$iii (func (param i32 i32) (result i32))) | |
(type $FUNCSIG$v (func)) | |
(type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32))) | |
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32))) | |
(type $FUNCSIG$vii (func (param i32 i32))) | |
(type $FUNCSIG$ii (func (param i32) (result i32))) | |
(type $FUNCSIG$viii (func (param i32 i32 i32))) | |
(type $FUNCSIG$vi (func (param i32))) | |
(type $FUNCSIG$vdii (func (param f64 i32 i32))) | |
(type $FUNCSIG$vdiii (func (param f64 i32 i32 i32))) | |
(type $FUNCSIG$i (func (result i32))) | |
(import "env" "abort" (func $~lib/builtins/abort (param i32 i32 i32 i32))) | |
(import "rtrace" "onalloc" (func $~lib/rt/rtrace/onalloc (param i32))) | |
(import "rtrace" "onincrement" (func $~lib/rt/rtrace/onincrement (param i32))) | |
(import "rtrace" "ondecrement" (func $~lib/rt/rtrace/ondecrement (param i32))) | |
(import "rtrace" "onfree" (func $~lib/rt/rtrace/onfree (param i32))) | |
(import "__aspect" "reportTest" (func $node_modules/as-pect/assembly/internal/Test/reportTest (param i32 i32))) | |
(import "__aspect" "reportDescribe" (func $node_modules/as-pect/assembly/internal/Describe/reportDescribe (param i32))) | |
(import "__aspect" "reportEndDescribe" (func $node_modules/as-pect/assembly/internal/Describe/reportEndDescribe)) | |
(import "__aspect" "reportActualArray" (func $node_modules/as-pect/assembly/internal/report/reportActual/reportActualArray (param i32 i32))) | |
(import "__aspect" "reportActualValue" (func $node_modules/as-pect/assembly/internal/report/reportActual/reportActualFloat (param f64 i32 i32))) | |
(import "__aspect" "reportActualValue" (func $node_modules/as-pect/assembly/internal/report/reportActual/reportActualInteger (param i32 i32 i32))) | |
(import "__aspect" "reportActualNull" (func $node_modules/as-pect/assembly/internal/report/reportActual/reportActualNull (param i32))) | |
(import "__aspect" "reportActualReference" (func $node_modules/as-pect/assembly/internal/report/reportActual/reportActualReferenceExternal (param i32 i32 i32))) | |
(import "__aspect" "reportActualString" (func $node_modules/as-pect/assembly/internal/report/reportActual/reportActualString (param i32 i32))) | |
(import "__aspect" "reportActualLong" (func $node_modules/as-pect/assembly/internal/report/reportActual/reportActualLong (param i32 i32 i32))) | |
(import "__aspect" "reportExpectedArray" (func $node_modules/as-pect/assembly/internal/report/reportExpected/reportExpectedArray (param i32 i32 i32))) | |
(import "__aspect" "reportExpectedValue" (func $node_modules/as-pect/assembly/internal/report/reportExpected/reportExpectedFloat (param f64 i32 i32 i32))) | |
(import "__aspect" "reportExpectedValue" (func $node_modules/as-pect/assembly/internal/report/reportExpected/reportExpectedInteger (param i32 i32 i32 i32))) | |
(import "__aspect" "reportExpectedNull" (func $node_modules/as-pect/assembly/internal/report/reportExpected/reportExpectedNull (param i32 i32))) | |
(import "__aspect" "reportExpectedReference" (func $node_modules/as-pect/assembly/internal/report/reportExpected/reportExpectedReferenceExternal (param i32 i32 i32 i32))) | |
(import "__aspect" "reportExpectedString" (func $node_modules/as-pect/assembly/internal/report/reportExpected/reportExpectedString (param i32 i32 i32))) | |
(import "__aspect" "reportExpectedFalsy" (func $node_modules/as-pect/assembly/internal/report/reportExpected/reportExpectedFalsy (param i32 i32))) | |
(import "__aspect" "reportExpectedFinite" (func $node_modules/as-pect/assembly/internal/report/reportExpected/reportExpectedFinite (param i32 i32))) | |
(import "__aspect" "reportExpectedTruthy" (func $node_modules/as-pect/assembly/internal/report/reportExpected/reportExpectedTruthy (param i32 i32))) | |
(import "__aspect" "reportExpectedLong" (func $node_modules/as-pect/assembly/internal/report/reportExpected/reportExpectedLong (param i32 i32 i32 i32))) | |
(memory $0 1) | |
(data (i32.const 8) "\1e\00\00\00\01\00\00\00\01\00\00\00\1e\00\00\00~\00l\00i\00b\00/\00r\00t\00/\00t\00l\00s\00f\00.\00t\00s") | |
(data (i32.const 56) "(\00\00\00\01\00\00\00\01\00\00\00(\00\00\00a\00l\00l\00o\00c\00a\00t\00i\00o\00n\00 \00t\00o\00o\00 \00l\00a\00r\00g\00e") | |
(data (i32.const 112) "\1e\00\00\00\01\00\00\00\01\00\00\00\1e\00\00\00~\00l\00i\00b\00/\00r\00t\00/\00p\00u\00r\00e\00.\00t\00s") | |
(data (i32.const 160) "$\00\00\00\01\00\00\00\01\00\00\00$\00\00\00I\00n\00d\00e\00x\00 \00o\00u\00t\00 \00o\00f\00 \00r\00a\00n\00g\00e") | |
(data (i32.const 216) "\14\00\00\00\01\00\00\00\01\00\00\00\14\00\00\00~\00l\00i\00b\00/\00r\00t\00.\00t\00s") | |
(data (i32.const 256) "\10\00\00\00\01\00\00\00\01\00\00\00\10\00\00\00a\00n\00 \00e\00r\00r\00o\00r") | |
(data (i32.const 288) "F\00\00\00\01\00\00\00\01\00\00\00F\00\00\00s\00h\00o\00u\00l\00d\00 \00c\00a\00u\00s\00e\00 \00a\00 \00d\00u\00p\00l\00i\00c\00a\00t\00e\00 \00a\00l\00l\00o\00c\00a\00t\00i\00o\00n") | |
(data (i32.const 376) "\1c\00\00\00\01\00\00\00\01\00\00\00\1c\00\00\00I\00n\00v\00a\00l\00i\00d\00 \00l\00e\00n\00g\00t\00h") | |
(data (i32.const 424) "&\00\00\00\01\00\00\00\01\00\00\00&\00\00\00~\00l\00i\00b\00/\00a\00r\00r\00a\00y\00b\00u\00f\00f\00e\00r\00.\00t\00s") | |
(data (i32.const 480) "^\00\00\00\01\00\00\00\01\00\00\00^\00\00\00E\00l\00e\00m\00e\00n\00t\00 \00t\00y\00p\00e\00 \00m\00u\00s\00t\00 \00b\00e\00 \00n\00u\00l\00l\00a\00b\00l\00e\00 \00i\00f\00 \00a\00r\00r\00a\00y\00 \00i\00s\00 \00h\00o\00l\00e\00y") | |
(data (i32.const 592) "\1a\00\00\00\01\00\00\00\01\00\00\00\1a\00\00\00~\00l\00i\00b\00/\00a\00r\00r\00a\00y\00.\00t\00s") | |
(data (i32.const 640) "\14\00\00\00\01\00\00\00\01\00\00\00\14\00\00\001\002\003\004\005\006\007\008\009\000") | |
(data (i32.const 680) "\05\00\00\00\10\00\00\00\00\00\00\00\10\00\00\00\00\00\00\00\10\00\00\00\00\00\00\00\93 \00\00\02\00\00\00\93\00\00\00\02") | |
(table $0 4 funcref) | |
(elem (i32.const 0) $start:node_modules/as-pect/assembly/internal/noOp~anonymous|0 $start:assembly/__tests__/reproduce.spec~anonymous|0~anonymous|0 $start:assembly/__tests__/reproduce.spec~anonymous|0 $start:node_modules/as-pect/assembly/internal/noOp~anonymous|0) | |
(global $~lib/rt/tlsf/ROOT (mut i32) (i32.const 0)) | |
(global $~lib/rt/pure/CUR (mut i32) (i32.const 0)) | |
(global $~lib/rt/pure/END (mut i32) (i32.const 0)) | |
(global $~lib/rt/pure/ROOTS (mut i32) (i32.const 0)) | |
(global $~lib/argc (mut i32) (i32.const 0)) | |
(global $node_modules/as-pect/assembly/internal/report/reportActual/Actual.type (mut i32) (i32.const 0)) | |
(global $node_modules/as-pect/assembly/internal/report/reportActual/Actual.signed i32 (i32.const 0)) | |
(global $node_modules/as-pect/assembly/internal/report/reportActual/Actual.float f64 (f64.const 0)) | |
(global $node_modules/as-pect/assembly/internal/report/reportActual/Actual.integer i32 (i32.const 0)) | |
(global $node_modules/as-pect/assembly/internal/report/reportActual/Actual.reference (mut i32) (i32.const 0)) | |
(global $node_modules/as-pect/assembly/internal/report/reportActual/Actual.offset i32 (i32.const 0)) | |
(global $node_modules/as-pect/assembly/internal/report/reportActual/Actual.stackTrace (mut i32) (i32.const -1)) | |
(global $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.ready (mut i32) (i32.const 0)) | |
(global $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.type (mut i32) (i32.const 0)) | |
(global $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.signed i32 (i32.const 0)) | |
(global $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.float f64 (f64.const 0)) | |
(global $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.integer i32 (i32.const 0)) | |
(global $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.reference (mut i32) (i32.const 0)) | |
(global $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.offset i32 (i32.const 0)) | |
(global $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.negated i32 (i32.const 0)) | |
(global $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.stackTrace i32 (i32.const 0)) | |
(global $node_modules/as-pect/assembly/internal/log/ignoreLogs (mut i32) (i32.const 0)) | |
(global $node_modules/as-pect/assembly/internal/RTrace/RTrace.enabled (mut i32) (i32.const 1)) | |
(global $~lib/started (mut i32) (i32.const 0)) | |
(global $~lib/rt/__rtti_base i32 (i32.const 680)) | |
(export "__start" (func $start)) | |
(export "memory" (memory $0)) | |
(export "__alloc" (func $~lib/rt/tlsf/__alloc)) | |
(export "__retain" (func $~lib/rt/pure/__retain)) | |
(export "__release" (func $~lib/rt/pure/__release)) | |
(export "__collect" (func $~lib/rt/pure/__collect)) | |
(export "__rtti_base" (global $~lib/rt/__rtti_base)) | |
(export "__ready" (func $node_modules/as-pect/assembly/index/__ready)) | |
(export "__call" (func $node_modules/as-pect/assembly/internal/call/__call)) | |
(export "__sendActual" (func $node_modules/as-pect/assembly/internal/report/reportActual/__sendActual)) | |
(export "__sendExpected" (func $node_modules/as-pect/assembly/internal/report/reportExpected/__sendExpected)) | |
(export "__ignoreLogs" (func $node_modules/as-pect/assembly/internal/log/__ignoreLogs)) | |
(export "__disableRTrace" (func $node_modules/as-pect/assembly/internal/RTrace/__disableRTrace)) | |
(export "__getUsizeArrayId" (func $node_modules/as-pect/assembly/internal/RTrace/__getUsizeArrayId)) | |
(export "__cleanup" (func $node_modules/as-pect/assembly/internal/Expectation/__cleanup)) | |
(func $~lib/rt/tlsf/removeBlock (; 25 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32) | |
(local $2 i32) | |
(local $3 i32) | |
(local $4 i32) | |
(local $5 i32) | |
local.get $1 | |
i32.load | |
local.tee $3 | |
i32.const 1 | |
i32.and | |
i32.eqz | |
if | |
i32.const 0 | |
i32.const 24 | |
i32.const 276 | |
i32.const 13 | |
call $~lib/builtins/abort | |
unreachable | |
end | |
local.get $3 | |
i32.const -4 | |
i32.and | |
local.tee $2 | |
i32.const 16 | |
i32.ge_u | |
if (result i32) | |
local.get $2 | |
i32.const 1073741808 | |
i32.lt_u | |
else | |
i32.const 0 | |
end | |
i32.eqz | |
if | |
i32.const 0 | |
i32.const 24 | |
i32.const 278 | |
i32.const 13 | |
call $~lib/builtins/abort | |
unreachable | |
end | |
local.get $2 | |
i32.const 256 | |
i32.lt_u | |
if (result i32) | |
local.get $2 | |
i32.const 4 | |
i32.shr_u | |
local.set $2 | |
i32.const 0 | |
else | |
local.get $2 | |
i32.const 31 | |
local.get $2 | |
i32.clz | |
i32.sub | |
local.tee $3 | |
i32.const 4 | |
i32.sub | |
i32.shr_u | |
i32.const 16 | |
i32.xor | |
local.set $2 | |
local.get $3 | |
i32.const 7 | |
i32.sub | |
end | |
local.tee $3 | |
i32.const 23 | |
i32.lt_u | |
if (result i32) | |
local.get $2 | |
i32.const 16 | |
i32.lt_u | |
else | |
i32.const 0 | |
end | |
i32.eqz | |
if | |
i32.const 0 | |
i32.const 24 | |
i32.const 291 | |
i32.const 13 | |
call $~lib/builtins/abort | |
unreachable | |
end | |
local.get $1 | |
i32.load offset=20 | |
local.set $4 | |
local.get $1 | |
i32.load offset=16 | |
local.tee $5 | |
if | |
local.get $5 | |
local.get $4 | |
i32.store offset=20 | |
end | |
local.get $4 | |
if | |
local.get $4 | |
local.get $5 | |
i32.store offset=16 | |
end | |
local.get $3 | |
i32.const 4 | |
i32.shl | |
local.get $2 | |
i32.add | |
i32.const 2 | |
i32.shl | |
local.get $0 | |
i32.add | |
i32.load offset=96 | |
local.get $1 | |
i32.eq | |
if | |
local.get $3 | |
i32.const 4 | |
i32.shl | |
local.get $2 | |
i32.add | |
i32.const 2 | |
i32.shl | |
local.get $0 | |
i32.add | |
local.get $4 | |
i32.store offset=96 | |
local.get $4 | |
i32.eqz | |
if | |
local.get $3 | |
i32.const 2 | |
i32.shl | |
local.get $0 | |
i32.add | |
local.get $3 | |
i32.const 2 | |
i32.shl | |
local.get $0 | |
i32.add | |
i32.load offset=4 | |
i32.const 1 | |
local.get $2 | |
i32.shl | |
i32.const -1 | |
i32.xor | |
i32.and | |
local.tee $1 | |
i32.store offset=4 | |
local.get $1 | |
i32.eqz | |
if | |
local.get $0 | |
local.get $0 | |
i32.load | |
i32.const 1 | |
local.get $3 | |
i32.shl | |
i32.const -1 | |
i32.xor | |
i32.and | |
i32.store | |
end | |
end | |
end | |
) | |
(func $~lib/rt/tlsf/insertBlock (; 26 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32) | |
(local $2 i32) | |
(local $3 i32) | |
(local $4 i32) | |
(local $5 i32) | |
(local $6 i32) | |
(local $7 i32) | |
local.get $1 | |
i32.eqz | |
if | |
i32.const 0 | |
i32.const 24 | |
i32.const 204 | |
i32.const 13 | |
call $~lib/builtins/abort | |
unreachable | |
end | |
local.get $1 | |
i32.load | |
local.tee $3 | |
i32.const 1 | |
i32.and | |
i32.eqz | |
if | |
i32.const 0 | |
i32.const 24 | |
i32.const 206 | |
i32.const 13 | |
call $~lib/builtins/abort | |
unreachable | |
end | |
local.get $1 | |
i32.const 16 | |
i32.add | |
local.get $1 | |
i32.load | |
i32.const -4 | |
i32.and | |
i32.add | |
local.tee $4 | |
i32.load | |
local.tee $5 | |
i32.const 1 | |
i32.and | |
if | |
local.get $3 | |
i32.const -4 | |
i32.and | |
i32.const 16 | |
i32.add | |
local.get $5 | |
i32.const -4 | |
i32.and | |
i32.add | |
local.tee $2 | |
i32.const 1073741808 | |
i32.lt_u | |
if | |
local.get $0 | |
local.get $4 | |
call $~lib/rt/tlsf/removeBlock | |
local.get $1 | |
local.get $3 | |
i32.const 3 | |
i32.and | |
local.get $2 | |
i32.or | |
local.tee $3 | |
i32.store | |
local.get $1 | |
i32.const 16 | |
i32.add | |
local.get $1 | |
i32.load | |
i32.const -4 | |
i32.and | |
i32.add | |
local.tee $4 | |
i32.load | |
local.set $5 | |
end | |
end | |
local.get $3 | |
i32.const 2 | |
i32.and | |
if | |
local.get $1 | |
i32.const 4 | |
i32.sub | |
i32.load | |
local.tee $2 | |
i32.load | |
local.tee $6 | |
i32.const 1 | |
i32.and | |
i32.eqz | |
if | |
i32.const 0 | |
i32.const 24 | |
i32.const 227 | |
i32.const 15 | |
call $~lib/builtins/abort | |
unreachable | |
end | |
local.get $6 | |
i32.const -4 | |
i32.and | |
i32.const 16 | |
i32.add | |
local.get $3 | |
i32.const -4 | |
i32.and | |
i32.add | |
local.tee $7 | |
i32.const 1073741808 | |
i32.lt_u | |
if (result i32) | |
local.get $0 | |
local.get $2 | |
call $~lib/rt/tlsf/removeBlock | |
local.get $2 | |
local.get $6 | |
i32.const 3 | |
i32.and | |
local.get $7 | |
i32.or | |
local.tee $3 | |
i32.store | |
local.get $2 | |
else | |
local.get $1 | |
end | |
local.set $1 | |
end | |
local.get $4 | |
local.get $5 | |
i32.const 2 | |
i32.or | |
i32.store | |
local.get $3 | |
i32.const -4 | |
i32.and | |
local.tee $2 | |
i32.const 16 | |
i32.ge_u | |
if (result i32) | |
local.get $2 | |
i32.const 1073741808 | |
i32.lt_u | |
else | |
i32.const 0 | |
end | |
i32.eqz | |
if | |
i32.const 0 | |
i32.const 24 | |
i32.const 242 | |
i32.const 13 | |
call $~lib/builtins/abort | |
unreachable | |
end | |
local.get $4 | |
local.get $1 | |
i32.const 16 | |
i32.add | |
local.get $2 | |
i32.add | |
i32.ne | |
if | |
i32.const 0 | |
i32.const 24 | |
i32.const 243 | |
i32.const 13 | |
call $~lib/builtins/abort | |
unreachable | |
end | |
local.get $4 | |
i32.const 4 | |
i32.sub | |
local.get $1 | |
i32.store | |
local.get $2 | |
i32.const 256 | |
i32.lt_u | |
if (result i32) | |
local.get $2 | |
i32.const 4 | |
i32.shr_u | |
local.set $4 | |
i32.const 0 | |
else | |
local.get $2 | |
i32.const 31 | |
local.get $2 | |
i32.clz | |
i32.sub | |
local.tee $2 | |
i32.const 4 | |
i32.sub | |
i32.shr_u | |
i32.const 16 | |
i32.xor | |
local.set $4 | |
local.get $2 | |
i32.const 7 | |
i32.sub | |
end | |
local.tee $3 | |
i32.const 23 | |
i32.lt_u | |
if (result i32) | |
local.get $4 | |
i32.const 16 | |
i32.lt_u | |
else | |
i32.const 0 | |
end | |
i32.eqz | |
if | |
i32.const 0 | |
i32.const 24 | |
i32.const 259 | |
i32.const 13 | |
call $~lib/builtins/abort | |
unreachable | |
end | |
local.get $3 | |
i32.const 4 | |
i32.shl | |
local.get $4 | |
i32.add | |
i32.const 2 | |
i32.shl | |
local.get $0 | |
i32.add | |
i32.load offset=96 | |
local.set $2 | |
local.get $1 | |
i32.const 0 | |
i32.store offset=16 | |
local.get $1 | |
local.get $2 | |
i32.store offset=20 | |
local.get $2 | |
if | |
local.get $2 | |
local.get $1 | |
i32.store offset=16 | |
end | |
local.get $3 | |
i32.const 4 | |
i32.shl | |
local.get $4 | |
i32.add | |
i32.const 2 | |
i32.shl | |
local.get $0 | |
i32.add | |
local.get $1 | |
i32.store offset=96 | |
local.get $0 | |
local.get $0 | |
i32.load | |
i32.const 1 | |
local.get $3 | |
i32.shl | |
i32.or | |
i32.store | |
local.get $3 | |
i32.const 2 | |
i32.shl | |
local.get $0 | |
i32.add | |
local.get $3 | |
i32.const 2 | |
i32.shl | |
local.get $0 | |
i32.add | |
i32.load offset=4 | |
i32.const 1 | |
local.get $4 | |
i32.shl | |
i32.or | |
i32.store offset=4 | |
) | |
(func $~lib/rt/tlsf/addMemory (; 27 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32) | |
(local $3 i32) | |
(local $4 i32) | |
local.get $2 | |
i32.const 15 | |
i32.and | |
i32.eqz | |
i32.const 0 | |
local.get $1 | |
i32.const 15 | |
i32.and | |
i32.eqz | |
i32.const 0 | |
local.get $1 | |
local.get $2 | |
i32.le_u | |
select | |
select | |
i32.eqz | |
if | |
i32.const 0 | |
i32.const 24 | |
i32.const 385 | |
i32.const 4 | |
call $~lib/builtins/abort | |
unreachable | |
end | |
local.get $0 | |
i32.load offset=1568 | |
local.tee $3 | |
if | |
local.get $1 | |
local.get $3 | |
i32.const 16 | |
i32.add | |
i32.lt_u | |
if | |
i32.const 0 | |
i32.const 24 | |
i32.const 395 | |
i32.const 15 | |
call $~lib/builtins/abort | |
unreachable | |
end | |
local.get $1 | |
i32.const 16 | |
i32.sub | |
local.get $3 | |
i32.eq | |
if | |
local.get $3 | |
i32.load | |
local.set $4 | |
local.get $1 | |
i32.const 16 | |
i32.sub | |
local.set $1 | |
end | |
else | |
local.get $1 | |
local.get $0 | |
i32.const 1572 | |
i32.add | |
i32.lt_u | |
if | |
i32.const 0 | |
i32.const 24 | |
i32.const 407 | |
i32.const 4 | |
call $~lib/builtins/abort | |
unreachable | |
end | |
end | |
local.get $2 | |
local.get $1 | |
i32.sub | |
local.tee $2 | |
i32.const 48 | |
i32.lt_u | |
if | |
return | |
end | |
local.get $1 | |
local.get $4 | |
i32.const 2 | |
i32.and | |
local.get $2 | |
i32.const 32 | |
i32.sub | |
i32.const 1 | |
i32.or | |
i32.or | |
i32.store | |
local.get $1 | |
i32.const 0 | |
i32.store offset=16 | |
local.get $1 | |
i32.const 0 | |
i32.store offset=20 | |
local.get $1 | |
local.get $2 | |
i32.add | |
i32.const 16 | |
i32.sub | |
local.tee $2 | |
i32.const 2 | |
i32.store | |
local.get $0 | |
local.get $2 | |
i32.store offset=1568 | |
local.get $0 | |
local.get $1 | |
call $~lib/rt/tlsf/insertBlock | |
) | |
(func $~lib/rt/tlsf/initializeRoot (; 28 ;) (type $FUNCSIG$v) | |
(local $0 i32) | |
(local $1 i32) | |
i32.const 1 | |
memory.size | |
local.tee $0 | |
i32.gt_s | |
if (result i32) | |
i32.const 1 | |
local.get $0 | |
i32.sub | |
memory.grow | |
i32.const 0 | |
i32.lt_s | |
else | |
i32.const 0 | |
end | |
if | |
unreachable | |
end | |
i32.const 736 | |
i32.const 0 | |
i32.store | |
i32.const 2304 | |
i32.const 0 | |
i32.store | |
i32.const 0 | |
local.set $0 | |
loop $loop|0 | |
block $break|0 | |
local.get $0 | |
i32.const 23 | |
i32.ge_u | |
br_if $break|0 | |
local.get $0 | |
i32.const 2 | |
i32.shl | |
i32.const 736 | |
i32.add | |
i32.const 0 | |
i32.store offset=4 | |
i32.const 0 | |
local.set $1 | |
loop $loop|1 | |
block $break|1 | |
local.get $1 | |
i32.const 16 | |
i32.ge_u | |
br_if $break|1 | |
local.get $0 | |
i32.const 4 | |
i32.shl | |
local.get $1 | |
i32.add | |
i32.const 2 | |
i32.shl | |
i32.const 736 | |
i32.add | |
i32.const 0 | |
i32.store offset=96 | |
local.get $1 | |
i32.const 1 | |
i32.add | |
local.set $1 | |
br $loop|1 | |
end | |
end | |
local.get $0 | |
i32.const 1 | |
i32.add | |
local.set $0 | |
br $loop|0 | |
end | |
end | |
i32.const 736 | |
i32.const 2320 | |
memory.size | |
i32.const 16 | |
i32.shl | |
call $~lib/rt/tlsf/addMemory | |
i32.const 736 | |
global.set $~lib/rt/tlsf/ROOT | |
) | |
(func $~lib/rt/tlsf/prepareSize (; 29 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32) | |
local.get $0 | |
i32.const 1073741808 | |
i32.ge_u | |
if | |
i32.const 72 | |
i32.const 24 | |
i32.const 447 | |
i32.const 29 | |
call $~lib/builtins/abort | |
unreachable | |
end | |
local.get $0 | |
i32.const 15 | |
i32.add | |
i32.const -16 | |
i32.and | |
local.tee $0 | |
i32.const 16 | |
local.get $0 | |
i32.const 16 | |
i32.gt_u | |
select | |
) | |
(func $~lib/rt/tlsf/searchBlock (; 30 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32) | |
(local $2 i32) | |
local.get $1 | |
i32.const 256 | |
i32.lt_u | |
if (result i32) | |
local.get $1 | |
i32.const 4 | |
i32.shr_u | |
local.set $1 | |
i32.const 0 | |
else | |
local.get $1 | |
i32.const 536870904 | |
i32.lt_u | |
if | |
i32.const 1 | |
i32.const 27 | |
local.get $1 | |
i32.clz | |
i32.sub | |
i32.shl | |
local.get $1 | |
i32.add | |
i32.const 1 | |
i32.sub | |
local.set $1 | |
end | |
local.get $1 | |
i32.const 31 | |
local.get $1 | |
i32.clz | |
i32.sub | |
local.tee $2 | |
i32.const 4 | |
i32.sub | |
i32.shr_u | |
i32.const 16 | |
i32.xor | |
local.set $1 | |
local.get $2 | |
i32.const 7 | |
i32.sub | |
end | |
local.tee $2 | |
i32.const 23 | |
i32.lt_u | |
if (result i32) | |
local.get $1 | |
i32.const 16 | |
i32.lt_u | |
else | |
i32.const 0 | |
end | |
i32.eqz | |
if | |
i32.const 0 | |
i32.const 24 | |
i32.const 337 | |
i32.const 13 | |
call $~lib/builtins/abort | |
unreachable | |
end | |
local.get $2 | |
i32.const 2 | |
i32.shl | |
local.get $0 | |
i32.add | |
i32.load offset=4 | |
i32.const -1 | |
local.get $1 | |
i32.shl | |
i32.and | |
local.tee $1 | |
if (result i32) | |
local.get $1 | |
i32.ctz | |
local.get $2 | |
i32.const 4 | |
i32.shl | |
i32.add | |
i32.const 2 | |
i32.shl | |
local.get $0 | |
i32.add | |
i32.load offset=96 | |
else | |
local.get $0 | |
i32.load | |
i32.const -1 | |
local.get $2 | |
i32.const 1 | |
i32.add | |
i32.shl | |
i32.and | |
local.tee $1 | |
if (result i32) | |
local.get $1 | |
i32.ctz | |
local.tee $1 | |
i32.const 2 | |
i32.shl | |
local.get $0 | |
i32.add | |
i32.load offset=4 | |
local.tee $2 | |
i32.eqz | |
if | |
i32.const 0 | |
i32.const 24 | |
i32.const 350 | |
i32.const 17 | |
call $~lib/builtins/abort | |
unreachable | |
end | |
local.get $2 | |
i32.ctz | |
local.get $1 | |
i32.const 4 | |
i32.shl | |
i32.add | |
i32.const 2 | |
i32.shl | |
local.get $0 | |
i32.add | |
i32.load offset=96 | |
else | |
i32.const 0 | |
end | |
end | |
) | |
(func $~lib/rt/tlsf/growMemory (; 31 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32) | |
(local $2 i32) | |
memory.size | |
local.tee $2 | |
local.get $1 | |
i32.const 65535 | |
i32.add | |
i32.const -65536 | |
i32.and | |
i32.const 16 | |
i32.shr_u | |
local.tee $1 | |
local.get $2 | |
local.get $1 | |
i32.gt_s | |
select | |
memory.grow | |
i32.const 0 | |
i32.lt_s | |
if | |
local.get $1 | |
memory.grow | |
i32.const 0 | |
i32.lt_s | |
if | |
unreachable | |
end | |
end | |
local.get $0 | |
local.get $2 | |
i32.const 16 | |
i32.shl | |
memory.size | |
i32.const 16 | |
i32.shl | |
call $~lib/rt/tlsf/addMemory | |
) | |
(func $~lib/rt/tlsf/prepareBlock (; 32 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32) | |
(local $3 i32) | |
(local $4 i32) | |
local.get $1 | |
i32.load | |
local.set $3 | |
local.get $2 | |
i32.const 15 | |
i32.and | |
if | |
i32.const 0 | |
i32.const 24 | |
i32.const 364 | |
i32.const 13 | |
call $~lib/builtins/abort | |
unreachable | |
end | |
local.get $3 | |
i32.const -4 | |
i32.and | |
local.get $2 | |
i32.sub | |
local.tee $4 | |
i32.const 32 | |
i32.ge_u | |
if | |
local.get $1 | |
local.get $3 | |
i32.const 2 | |
i32.and | |
local.get $2 | |
i32.or | |
i32.store | |
local.get $1 | |
i32.const 16 | |
i32.add | |
local.get $2 | |
i32.add | |
local.tee $1 | |
local.get $4 | |
i32.const 16 | |
i32.sub | |
i32.const 1 | |
i32.or | |
i32.store | |
local.get $0 | |
local.get $1 | |
call $~lib/rt/tlsf/insertBlock | |
else | |
local.get $1 | |
local.get $3 | |
i32.const -2 | |
i32.and | |
i32.store | |
local.get $1 | |
i32.const 16 | |
i32.add | |
local.get $1 | |
i32.load | |
i32.const -4 | |
i32.and | |
i32.add | |
local.get $1 | |
i32.const 16 | |
i32.add | |
local.get $1 | |
i32.load | |
i32.const -4 | |
i32.and | |
i32.add | |
i32.load | |
i32.const -3 | |
i32.and | |
i32.store | |
end | |
) | |
(func $~lib/rt/tlsf/allocateBlock (; 33 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32) | |
(local $2 i32) | |
(local $3 i32) | |
local.get $0 | |
local.get $1 | |
call $~lib/rt/tlsf/prepareSize | |
local.tee $3 | |
call $~lib/rt/tlsf/searchBlock | |
local.tee $2 | |
i32.eqz | |
if | |
local.get $0 | |
local.get $3 | |
call $~lib/rt/tlsf/growMemory | |
local.get $0 | |
local.get $3 | |
call $~lib/rt/tlsf/searchBlock | |
local.tee $2 | |
i32.eqz | |
if | |
i32.const 0 | |
i32.const 24 | |
i32.const 477 | |
i32.const 15 | |
call $~lib/builtins/abort | |
unreachable | |
end | |
end | |
local.get $2 | |
i32.load | |
i32.const -4 | |
i32.and | |
local.get $3 | |
i32.lt_u | |
if | |
i32.const 0 | |
i32.const 24 | |
i32.const 479 | |
i32.const 13 | |
call $~lib/builtins/abort | |
unreachable | |
end | |
local.get $2 | |
i32.const 0 | |
i32.store offset=4 | |
local.get $2 | |
local.get $1 | |
i32.store offset=12 | |
local.get $0 | |
local.get $2 | |
call $~lib/rt/tlsf/removeBlock | |
local.get $0 | |
local.get $2 | |
local.get $3 | |
call $~lib/rt/tlsf/prepareBlock | |
local.get $2 | |
call $~lib/rt/rtrace/onalloc | |
local.get $2 | |
) | |
(func $~lib/rt/tlsf/__alloc (; 34 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32) | |
(local $2 i32) | |
global.get $~lib/rt/tlsf/ROOT | |
local.tee $2 | |
if (result i32) | |
local.get $2 | |
else | |
call $~lib/rt/tlsf/initializeRoot | |
global.get $~lib/rt/tlsf/ROOT | |
end | |
local.get $0 | |
call $~lib/rt/tlsf/allocateBlock | |
local.tee $0 | |
local.get $1 | |
i32.store offset=8 | |
local.get $0 | |
i32.const 16 | |
i32.add | |
) | |
(func $~lib/rt/pure/increment (; 35 ;) (type $FUNCSIG$vi) (param $0 i32) | |
(local $1 i32) | |
local.get $0 | |
i32.load offset=4 | |
local.tee $1 | |
i32.const -268435456 | |
i32.and | |
local.get $1 | |
i32.const 1 | |
i32.add | |
i32.const -268435456 | |
i32.and | |
i32.ne | |
if | |
i32.const 0 | |
i32.const 128 | |
i32.const 104 | |
i32.const 2 | |
call $~lib/builtins/abort | |
unreachable | |
end | |
local.get $0 | |
local.get $1 | |
i32.const 1 | |
i32.add | |
i32.store offset=4 | |
local.get $0 | |
call $~lib/rt/rtrace/onincrement | |
local.get $0 | |
i32.load | |
i32.const 1 | |
i32.and | |
if | |
i32.const 0 | |
i32.const 128 | |
i32.const 107 | |
i32.const 13 | |
call $~lib/builtins/abort | |
unreachable | |
end | |
) | |
(func $~lib/rt/pure/__retain (; 36 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32) | |
local.get $0 | |
i32.const 724 | |
i32.gt_u | |
if | |
local.get $0 | |
i32.const 16 | |
i32.sub | |
call $~lib/rt/pure/increment | |
end | |
local.get $0 | |
) | |
(func $~lib/rt/tlsf/freeBlock (; 37 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32) | |
(local $2 i32) | |
local.get $1 | |
i32.load | |
local.tee $2 | |
i32.const 1 | |
i32.and | |
if | |
i32.const 0 | |
i32.const 24 | |
i32.const 531 | |
i32.const 2 | |
call $~lib/builtins/abort | |
unreachable | |
end | |
local.get $1 | |
local.get $2 | |
i32.const 1 | |
i32.or | |
i32.store | |
local.get $0 | |
local.get $1 | |
call $~lib/rt/tlsf/insertBlock | |
local.get $1 | |
call $~lib/rt/rtrace/onfree | |
) | |
(func $~lib/rt/__typeinfo (; 38 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32) | |
local.get $0 | |
i32.const 680 | |
i32.load | |
i32.gt_u | |
if | |
i32.const 176 | |
i32.const 232 | |
i32.const 22 | |
i32.const 27 | |
call $~lib/builtins/abort | |
unreachable | |
end | |
local.get $0 | |
i32.const 3 | |
i32.shl | |
i32.const 684 | |
i32.add | |
i32.load | |
) | |
(func $~lib/util/memory/memcpy (; 39 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32) | |
(local $3 i32) | |
(local $4 i32) | |
(local $5 i32) | |
loop $continue|0 | |
local.get $1 | |
i32.const 3 | |
i32.and | |
i32.const 0 | |
local.get $2 | |
select | |
if | |
local.get $0 | |
local.tee $3 | |
i32.const 1 | |
i32.add | |
local.set $0 | |
local.get $1 | |
local.tee $4 | |
i32.const 1 | |
i32.add | |
local.set $1 | |
local.get $3 | |
local.get $4 | |
i32.load8_u | |
i32.store8 | |
local.get $2 | |
i32.const 1 | |
i32.sub | |
local.set $2 | |
br $continue|0 | |
end | |
end | |
local.get $0 | |
i32.const 3 | |
i32.and | |
i32.eqz | |
if | |
loop $continue|1 | |
local.get $2 | |
i32.const 16 | |
i32.lt_u | |
i32.eqz | |
if | |
local.get $0 | |
local.get $1 | |
i32.load | |
i32.store | |
local.get $0 | |
i32.const 4 | |
i32.add | |
local.get $1 | |
i32.const 4 | |
i32.add | |
i32.load | |
i32.store | |
local.get $0 | |
i32.const 8 | |
i32.add | |
local.get $1 | |
i32.const 8 | |
i32.add | |
i32.load | |
i32.store | |
local.get $0 | |
i32.const 12 | |
i32.add | |
local.get $1 | |
i32.const 12 | |
i32.add | |
i32.load | |
i32.store | |
local.get $1 | |
i32.const 16 | |
i32.add | |
local.set $1 | |
local.get $0 | |
i32.const 16 | |
i32.add | |
local.set $0 | |
local.get $2 | |
i32.const 16 | |
i32.sub | |
local.set $2 | |
br $continue|1 | |
end | |
end | |
local.get $2 | |
i32.const 8 | |
i32.and | |
if | |
local.get $0 | |
local.get $1 | |
i32.load | |
i32.store | |
local.get $0 | |
i32.const 4 | |
i32.add | |
local.get $1 | |
i32.const 4 | |
i32.add | |
i32.load | |
i32.store | |
local.get $1 | |
i32.const 8 | |
i32.add | |
local.set $1 | |
local.get $0 | |
i32.const 8 | |
i32.add | |
local.set $0 | |
end | |
local.get $2 | |
i32.const 4 | |
i32.and | |
if | |
local.get $0 | |
local.get $1 | |
i32.load | |
i32.store | |
local.get $1 | |
i32.const 4 | |
i32.add | |
local.set $1 | |
local.get $0 | |
i32.const 4 | |
i32.add | |
local.set $0 | |
end | |
local.get $2 | |
i32.const 2 | |
i32.and | |
if | |
local.get $0 | |
local.get $1 | |
i32.load16_u | |
i32.store16 | |
local.get $1 | |
i32.const 2 | |
i32.add | |
local.set $1 | |
local.get $0 | |
i32.const 2 | |
i32.add | |
local.set $0 | |
end | |
local.get $2 | |
i32.const 1 | |
i32.and | |
if | |
local.get $0 | |
local.get $1 | |
i32.load8_u | |
i32.store8 | |
end | |
return | |
end | |
local.get $2 | |
i32.const 32 | |
i32.ge_u | |
if | |
block $break|2 | |
block $case2|2 | |
block $case1|2 | |
local.get $0 | |
i32.const 3 | |
i32.and | |
local.tee $3 | |
i32.const 1 | |
i32.ne | |
if | |
local.get $3 | |
i32.const 2 | |
i32.eq | |
br_if $case1|2 | |
local.get $3 | |
i32.const 3 | |
i32.eq | |
br_if $case2|2 | |
br $break|2 | |
end | |
local.get $1 | |
i32.load | |
local.set $5 | |
local.get $0 | |
local.get $1 | |
i32.load8_u | |
i32.store8 | |
local.get $0 | |
i32.const 1 | |
i32.add | |
local.tee $0 | |
local.get $1 | |
i32.const 1 | |
i32.add | |
local.tee $1 | |
i32.load8_u | |
i32.store8 | |
local.get $0 | |
i32.const 1 | |
i32.add | |
local.tee $3 | |
i32.const 1 | |
i32.add | |
local.set $0 | |
local.get $1 | |
i32.const 1 | |
i32.add | |
local.tee $4 | |
i32.const 1 | |
i32.add | |
local.set $1 | |
local.get $3 | |
local.get $4 | |
i32.load8_u | |
i32.store8 | |
local.get $2 | |
i32.const 3 | |
i32.sub | |
local.set $2 | |
loop $continue|3 | |
local.get $2 | |
i32.const 17 | |
i32.lt_u | |
i32.eqz | |
if | |
local.get $0 | |
local.get $1 | |
i32.const 1 | |
i32.add | |
i32.load | |
local.tee $3 | |
i32.const 8 | |
i32.shl | |
local.get $5 | |
i32.const 24 | |
i32.shr_u | |
i32.or | |
i32.store | |
local.get $0 | |
i32.const 4 | |
i32.add | |
local.get $3 | |
i32.const 24 | |
i32.shr_u | |
local.get $1 | |
i32.const 5 | |
i32.add | |
i32.load | |
local.tee $3 | |
i32.const 8 | |
i32.shl | |
i32.or | |
i32.store | |
local.get $0 | |
i32.const 8 | |
i32.add | |
local.get $3 | |
i32.const 24 | |
i32.shr_u | |
local.get $1 | |
i32.const 9 | |
i32.add | |
i32.load | |
local.tee $3 | |
i32.const 8 | |
i32.shl | |
i32.or | |
i32.store | |
local.get $0 | |
i32.const 12 | |
i32.add | |
local.get $1 | |
i32.const 13 | |
i32.add | |
i32.load | |
local.tee $5 | |
i32.const 8 | |
i32.shl | |
local.get $3 | |
i32.const 24 | |
i32.shr_u | |
i32.or | |
i32.store | |
local.get $1 | |
i32.const 16 | |
i32.add | |
local.set $1 | |
local.get $0 | |
i32.const 16 | |
i32.add | |
local.set $0 | |
local.get $2 | |
i32.const 16 | |
i32.sub | |
local.set $2 | |
br $continue|3 | |
end | |
end | |
br $break|2 | |
end | |
local.get $1 | |
i32.load | |
local.set $5 | |
local.get $0 | |
local.get $1 | |
i32.load8_u | |
i32.store8 | |
local.get $0 | |
i32.const 1 | |
i32.add | |
local.tee $3 | |
i32.const 1 | |
i32.add | |
local.set $0 | |
local.get $1 | |
i32.const 1 | |
i32.add | |
local.tee $4 | |
i32.const 1 | |
i32.add | |
local.set $1 | |
local.get $3 | |
local.get $4 | |
i32.load8_u | |
i32.store8 | |
local.get $2 | |
i32.const 2 | |
i32.sub | |
local.set $2 | |
loop $continue|4 | |
local.get $2 | |
i32.const 18 | |
i32.lt_u | |
i32.eqz | |
if | |
local.get $0 | |
local.get $1 | |
i32.const 2 | |
i32.add | |
i32.load | |
local.tee $3 | |
i32.const 16 | |
i32.shl | |
local.get $5 | |
i32.const 16 | |
i32.shr_u | |
i32.or | |
i32.store | |
local.get $0 | |
i32.const 4 | |
i32.add | |
local.get $3 | |
i32.const 16 | |
i32.shr_u | |
local.get $1 | |
i32.const 6 | |
i32.add | |
i32.load | |
local.tee $3 | |
i32.const 16 | |
i32.shl | |
i32.or | |
i32.store | |
local.get $0 | |
i32.const 8 | |
i32.add | |
local.get $3 | |
i32.const 16 | |
i32.shr_u | |
local.get $1 | |
i32.const 10 | |
i32.add | |
i32.load | |
local.tee $3 | |
i32.const 16 | |
i32.shl | |
i32.or | |
i32.store | |
local.get $0 | |
i32.const 12 | |
i32.add | |
local.get $1 | |
i32.const 14 | |
i32.add | |
i32.load | |
local.tee $5 | |
i32.const 16 | |
i32.shl | |
local.get $3 | |
i32.const 16 | |
i32.shr_u | |
i32.or | |
i32.store | |
local.get $1 | |
i32.const 16 | |
i32.add | |
local.set $1 | |
local.get $0 | |
i32.const 16 | |
i32.add | |
local.set $0 | |
local.get $2 | |
i32.const 16 | |
i32.sub | |
local.set $2 | |
br $continue|4 | |
end | |
end | |
br $break|2 | |
end | |
local.get $1 | |
i32.load | |
local.set $5 | |
local.get $0 | |
local.tee $3 | |
i32.const 1 | |
i32.add | |
local.set $0 | |
local.get $1 | |
local.tee $4 | |
i32.const 1 | |
i32.add | |
local.set $1 | |
local.get $3 | |
local.get $4 | |
i32.load8_u | |
i32.store8 | |
local.get $2 | |
i32.const 1 | |
i32.sub | |
local.set $2 | |
loop $continue|5 | |
local.get $2 | |
i32.const 19 | |
i32.lt_u | |
i32.eqz | |
if | |
local.get $0 | |
local.get $1 | |
i32.const 3 | |
i32.add | |
i32.load | |
local.tee $3 | |
i32.const 24 | |
i32.shl | |
local.get $5 | |
i32.const 8 | |
i32.shr_u | |
i32.or | |
i32.store | |
local.get $0 | |
i32.const 4 | |
i32.add | |
local.get $3 | |
i32.const 8 | |
i32.shr_u | |
local.get $1 | |
i32.const 7 | |
i32.add | |
i32.load | |
local.tee $3 | |
i32.const 24 | |
i32.shl | |
i32.or | |
i32.store | |
local.get $0 | |
i32.const 8 | |
i32.add | |
local.get $3 | |
i32.const 8 | |
i32.shr_u | |
local.get $1 | |
i32.const 11 | |
i32.add | |
i32.load | |
local.tee $3 | |
i32.const 24 | |
i32.shl | |
i32.or | |
i32.store | |
local.get $0 | |
i32.const 12 | |
i32.add | |
local.get $1 | |
i32.const 15 | |
i32.add | |
i32.load | |
local.tee $5 | |
i32.const 24 | |
i32.shl | |
local.get $3 | |
i32.const 8 | |
i32.shr_u | |
i32.or | |
i32.store | |
local.get $1 | |
i32.const 16 | |
i32.add | |
local.set $1 | |
local.get $0 | |
i32.const 16 | |
i32.add | |
local.set $0 | |
local.get $2 | |
i32.const 16 | |
i32.sub | |
local.set $2 | |
br $continue|5 | |
end | |
end | |
end | |
end | |
local.get $2 | |
i32.const 16 | |
i32.and | |
if | |
local.get $0 | |
local.get $1 | |
i32.load8_u | |
i32.store8 | |
local.get $0 | |
i32.const 1 | |
i32.add | |
local.tee $0 | |
local.get $1 | |
i32.const 1 | |
i32.add | |
local.tee $1 | |
i32.load8_u | |
i32.store8 | |
local.get $0 | |
i32.const 1 | |
i32.add | |
local.tee $0 | |
local.get $1 | |
i32.const 1 | |
i32.add | |
local.tee $1 | |
i32.load8_u | |
i32.store8 | |
local.get $0 | |
i32.const 1 | |
i32.add | |
local.tee $0 | |
local.get $1 | |
i32.const 1 | |
i32.add | |
local.tee $1 | |
i32.load8_u | |
i32.store8 | |
local.get $0 | |
i32.const 1 | |
i32.add | |
local.tee $0 | |
local.get $1 | |
i32.const 1 | |
i32.add | |
local.tee $1 | |
i32.load8_u | |
i32.store8 | |
local.get $0 | |
i32.const 1 | |
i32.add | |
local.tee $0 | |
local.get $1 | |
i32.const 1 | |
i32.add | |
local.tee $1 | |
i32.load8_u | |
i32.store8 | |
local.get $0 | |
i32.const 1 | |
i32.add | |
local.tee $0 | |
local.get $1 | |
i32.const 1 | |
i32.add | |
local.tee $1 | |
i32.load8_u | |
i32.store8 | |
local.get $0 | |
i32.const 1 | |
i32.add | |
local.tee $0 | |
local.get $1 | |
i32.const 1 | |
i32.add | |
local.tee $1 | |
i32.load8_u | |
i32.store8 | |
local.get $0 | |
i32.const 1 | |
i32.add | |
local.tee $0 | |
local.get $1 | |
i32.const 1 | |
i32.add | |
local.tee $1 | |
i32.load8_u | |
i32.store8 | |
local.get $0 | |
i32.const 1 | |
i32.add | |
local.tee $0 | |
local.get $1 | |
i32.const 1 | |
i32.add | |
local.tee $1 | |
i32.load8_u | |
i32.store8 | |
local.get $0 | |
i32.const 1 | |
i32.add | |
local.tee $0 | |
local.get $1 | |
i32.const 1 | |
i32.add | |
local.tee $1 | |
i32.load8_u | |
i32.store8 | |
local.get $0 | |
i32.const 1 | |
i32.add | |
local.tee $0 | |
local.get $1 | |
i32.const 1 | |
i32.add | |
local.tee $1 | |
i32.load8_u | |
i32.store8 | |
local.get $0 | |
i32.const 1 | |
i32.add | |
local.tee $0 | |
local.get $1 | |
i32.const 1 | |
i32.add | |
local.tee $1 | |
i32.load8_u | |
i32.store8 | |
local.get $0 | |
i32.const 1 | |
i32.add | |
local.tee $0 | |
local.get $1 | |
i32.const 1 | |
i32.add | |
local.tee $1 | |
i32.load8_u | |
i32.store8 | |
local.get $0 | |
i32.const 1 | |
i32.add | |
local.tee $0 | |
local.get $1 | |
i32.const 1 | |
i32.add | |
local.tee $1 | |
i32.load8_u | |
i32.store8 | |
local.get $0 | |
i32.const 1 | |
i32.add | |
local.tee $3 | |
i32.const 1 | |
i32.add | |
local.set $0 | |
local.get $1 | |
i32.const 1 | |
i32.add | |
local.tee $4 | |
i32.const 1 | |
i32.add | |
local.set $1 | |
local.get $3 | |
local.get $4 | |
i32.load8_u | |
i32.store8 | |
end | |
local.get $2 | |
i32.const 8 | |
i32.and | |
if | |
local.get $0 | |
local.get $1 | |
i32.load8_u | |
i32.store8 | |
local.get $0 | |
i32.const 1 | |
i32.add | |
local.tee $0 | |
local.get $1 | |
i32.const 1 | |
i32.add | |
local.tee $1 | |
i32.load8_u | |
i32.store8 | |
local.get $0 | |
i32.const 1 | |
i32.add | |
local.tee $0 | |
local.get $1 | |
i32.const 1 | |
i32.add | |
local.tee $1 | |
i32.load8_u | |
i32.store8 | |
local.get $0 | |
i32.const 1 | |
i32.add | |
local.tee $0 | |
local.get $1 | |
i32.const 1 | |
i32.add | |
local.tee $1 | |
i32.load8_u | |
i32.store8 | |
local.get $0 | |
i32.const 1 | |
i32.add | |
local.tee $0 | |
local.get $1 | |
i32.const 1 | |
i32.add | |
local.tee $1 | |
i32.load8_u | |
i32.store8 | |
local.get $0 | |
i32.const 1 | |
i32.add | |
local.tee $0 | |
local.get $1 | |
i32.const 1 | |
i32.add | |
local.tee $1 | |
i32.load8_u | |
i32.store8 | |
local.get $0 | |
i32.const 1 | |
i32.add | |
local.tee $0 | |
local.get $1 | |
i32.const 1 | |
i32.add | |
local.tee $1 | |
i32.load8_u | |
i32.store8 | |
local.get $0 | |
i32.const 1 | |
i32.add | |
local.tee $3 | |
i32.const 1 | |
i32.add | |
local.set $0 | |
local.get $1 | |
i32.const 1 | |
i32.add | |
local.tee $4 | |
i32.const 1 | |
i32.add | |
local.set $1 | |
local.get $3 | |
local.get $4 | |
i32.load8_u | |
i32.store8 | |
end | |
local.get $2 | |
i32.const 4 | |
i32.and | |
if | |
local.get $0 | |
local.get $1 | |
i32.load8_u | |
i32.store8 | |
local.get $0 | |
i32.const 1 | |
i32.add | |
local.tee $0 | |
local.get $1 | |
i32.const 1 | |
i32.add | |
local.tee $1 | |
i32.load8_u | |
i32.store8 | |
local.get $0 | |
i32.const 1 | |
i32.add | |
local.tee $0 | |
local.get $1 | |
i32.const 1 | |
i32.add | |
local.tee $1 | |
i32.load8_u | |
i32.store8 | |
local.get $0 | |
i32.const 1 | |
i32.add | |
local.tee $3 | |
i32.const 1 | |
i32.add | |
local.set $0 | |
local.get $1 | |
i32.const 1 | |
i32.add | |
local.tee $4 | |
i32.const 1 | |
i32.add | |
local.set $1 | |
local.get $3 | |
local.get $4 | |
i32.load8_u | |
i32.store8 | |
end | |
local.get $2 | |
i32.const 2 | |
i32.and | |
if | |
local.get $0 | |
local.get $1 | |
i32.load8_u | |
i32.store8 | |
local.get $0 | |
i32.const 1 | |
i32.add | |
local.tee $3 | |
i32.const 1 | |
i32.add | |
local.set $0 | |
local.get $1 | |
i32.const 1 | |
i32.add | |
local.tee $4 | |
i32.const 1 | |
i32.add | |
local.set $1 | |
local.get $3 | |
local.get $4 | |
i32.load8_u | |
i32.store8 | |
end | |
local.get $2 | |
i32.const 1 | |
i32.and | |
if | |
local.get $0 | |
local.get $1 | |
i32.load8_u | |
i32.store8 | |
end | |
) | |
(func $~lib/memory/memory.copy (; 40 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32) | |
(local $3 i32) | |
(local $4 i32) | |
block $~lib/util/memory/memmove|inlined.0 | |
local.get $2 | |
local.set $3 | |
local.get $0 | |
local.get $1 | |
i32.eq | |
br_if $~lib/util/memory/memmove|inlined.0 | |
i32.const 1 | |
local.get $0 | |
local.get $3 | |
i32.add | |
local.get $1 | |
i32.le_u | |
local.get $1 | |
local.get $3 | |
i32.add | |
local.get $0 | |
i32.le_u | |
select | |
if | |
local.get $0 | |
local.get $1 | |
local.get $3 | |
call $~lib/util/memory/memcpy | |
br $~lib/util/memory/memmove|inlined.0 | |
end | |
local.get $0 | |
local.get $1 | |
i32.lt_u | |
if | |
local.get $1 | |
i32.const 7 | |
i32.and | |
local.get $0 | |
i32.const 7 | |
i32.and | |
i32.eq | |
if | |
loop $continue|0 | |
local.get $0 | |
i32.const 7 | |
i32.and | |
if | |
local.get $3 | |
i32.eqz | |
br_if $~lib/util/memory/memmove|inlined.0 | |
local.get $3 | |
i32.const 1 | |
i32.sub | |
local.set $3 | |
local.get $0 | |
local.tee $2 | |
i32.const 1 | |
i32.add | |
local.set $0 | |
local.get $1 | |
local.tee $4 | |
i32.const 1 | |
i32.add | |
local.set $1 | |
local.get $2 | |
local.get $4 | |
i32.load8_u | |
i32.store8 | |
br $continue|0 | |
end | |
end | |
loop $continue|1 | |
local.get $3 | |
i32.const 8 | |
i32.lt_u | |
i32.eqz | |
if | |
local.get $0 | |
local.get $1 | |
i64.load | |
i64.store | |
local.get $3 | |
i32.const 8 | |
i32.sub | |
local.set $3 | |
local.get $0 | |
i32.const 8 | |
i32.add | |
local.set $0 | |
local.get $1 | |
i32.const 8 | |
i32.add | |
local.set $1 | |
br $continue|1 | |
end | |
end | |
end | |
loop $continue|2 | |
local.get $3 | |
if | |
local.get $0 | |
local.tee $2 | |
i32.const 1 | |
i32.add | |
local.set $0 | |
local.get $1 | |
local.tee $4 | |
i32.const 1 | |
i32.add | |
local.set $1 | |
local.get $2 | |
local.get $4 | |
i32.load8_u | |
i32.store8 | |
local.get $3 | |
i32.const 1 | |
i32.sub | |
local.set $3 | |
br $continue|2 | |
end | |
end | |
else | |
local.get $1 | |
i32.const 7 | |
i32.and | |
local.get $0 | |
i32.const 7 | |
i32.and | |
i32.eq | |
if | |
loop $continue|3 | |
local.get $0 | |
local.get $3 | |
i32.add | |
i32.const 7 | |
i32.and | |
if | |
local.get $3 | |
i32.eqz | |
br_if $~lib/util/memory/memmove|inlined.0 | |
local.get $0 | |
local.get $3 | |
i32.const 1 | |
i32.sub | |
local.tee $3 | |
i32.add | |
local.get $1 | |
local.get $3 | |
i32.add | |
i32.load8_u | |
i32.store8 | |
br $continue|3 | |
end | |
end | |
loop $continue|4 | |
local.get $3 | |
i32.const 8 | |
i32.lt_u | |
i32.eqz | |
if | |
local.get $0 | |
local.get $3 | |
i32.const 8 | |
i32.sub | |
local.tee $3 | |
i32.add | |
local.get $1 | |
local.get $3 | |
i32.add | |
i64.load | |
i64.store | |
br $continue|4 | |
end | |
end | |
end | |
loop $continue|5 | |
local.get $3 | |
if | |
local.get $0 | |
local.get $3 | |
i32.const 1 | |
i32.sub | |
local.tee $3 | |
i32.add | |
local.get $1 | |
local.get $3 | |
i32.add | |
i32.load8_u | |
i32.store8 | |
br $continue|5 | |
end | |
end | |
end | |
end | |
) | |
(func $~lib/rt/tlsf/__free (; 41 ;) (type $FUNCSIG$vi) (param $0 i32) | |
global.get $~lib/rt/tlsf/ROOT | |
i32.eqz | |
if | |
i32.const 0 | |
i32.const 24 | |
i32.const 561 | |
i32.const 13 | |
call $~lib/builtins/abort | |
unreachable | |
end | |
local.get $0 | |
i32.const 15 | |
i32.and | |
i32.eqz | |
i32.const 0 | |
local.get $0 | |
select | |
i32.eqz | |
if | |
i32.const 0 | |
i32.const 24 | |
i32.const 562 | |
i32.const 2 | |
call $~lib/builtins/abort | |
unreachable | |
end | |
global.get $~lib/rt/tlsf/ROOT | |
local.get $0 | |
i32.const 16 | |
i32.sub | |
call $~lib/rt/tlsf/freeBlock | |
) | |
(func $~lib/rt/pure/growRoots (; 42 ;) (type $FUNCSIG$v) | |
(local $0 i32) | |
(local $1 i32) | |
(local $2 i32) | |
(local $3 i32) | |
global.get $~lib/rt/pure/CUR | |
global.get $~lib/rt/pure/ROOTS | |
local.tee $1 | |
i32.sub | |
local.tee $2 | |
i32.const 1 | |
i32.shl | |
local.tee $0 | |
i32.const 256 | |
local.get $0 | |
i32.const 256 | |
i32.gt_u | |
select | |
local.tee $3 | |
i32.const 0 | |
call $~lib/rt/tlsf/__alloc | |
local.tee $0 | |
i32.const 16 | |
i32.sub | |
call $~lib/rt/rtrace/onfree | |
local.get $0 | |
local.get $1 | |
local.get $2 | |
call $~lib/memory/memory.copy | |
local.get $1 | |
if | |
local.get $1 | |
i32.const 16 | |
i32.sub | |
call $~lib/rt/rtrace/onalloc | |
local.get $1 | |
call $~lib/rt/tlsf/__free | |
end | |
local.get $0 | |
global.set $~lib/rt/pure/ROOTS | |
local.get $0 | |
local.get $2 | |
i32.add | |
global.set $~lib/rt/pure/CUR | |
local.get $0 | |
local.get $3 | |
i32.add | |
global.set $~lib/rt/pure/END | |
) | |
(func $~lib/rt/pure/appendRoot (; 43 ;) (type $FUNCSIG$vi) (param $0 i32) | |
(local $1 i32) | |
global.get $~lib/rt/pure/CUR | |
local.tee $1 | |
global.get $~lib/rt/pure/END | |
i32.ge_u | |
if | |
call $~lib/rt/pure/growRoots | |
global.get $~lib/rt/pure/CUR | |
local.set $1 | |
end | |
local.get $1 | |
local.get $0 | |
i32.store | |
local.get $1 | |
i32.const 4 | |
i32.add | |
global.set $~lib/rt/pure/CUR | |
) | |
(func $~lib/rt/pure/decrement (; 44 ;) (type $FUNCSIG$vi) (param $0 i32) | |
(local $1 i32) | |
(local $2 i32) | |
local.get $0 | |
i32.load offset=4 | |
local.tee $2 | |
i32.const 268435455 | |
i32.and | |
local.set $1 | |
local.get $0 | |
call $~lib/rt/rtrace/ondecrement | |
local.get $0 | |
i32.load | |
i32.const 1 | |
i32.and | |
if | |
i32.const 0 | |
i32.const 128 | |
i32.const 115 | |
i32.const 13 | |
call $~lib/builtins/abort | |
unreachable | |
end | |
local.get $1 | |
i32.const 1 | |
i32.eq | |
if | |
local.get $0 | |
i32.const 16 | |
i32.add | |
i32.const 1 | |
call $~lib/rt/__visit_members | |
local.get $2 | |
i32.const -2147483648 | |
i32.and | |
if | |
local.get $0 | |
i32.const -2147483648 | |
i32.store offset=4 | |
else | |
global.get $~lib/rt/tlsf/ROOT | |
local.get $0 | |
call $~lib/rt/tlsf/freeBlock | |
end | |
else | |
local.get $1 | |
i32.const 0 | |
i32.le_u | |
if | |
i32.const 0 | |
i32.const 128 | |
i32.const 124 | |
i32.const 15 | |
call $~lib/builtins/abort | |
unreachable | |
end | |
local.get $0 | |
i32.load offset=8 | |
call $~lib/rt/__typeinfo | |
i32.const 16 | |
i32.and | |
if | |
local.get $0 | |
local.get $1 | |
i32.const 1 | |
i32.sub | |
local.get $2 | |
i32.const -268435456 | |
i32.and | |
i32.or | |
i32.store offset=4 | |
else | |
local.get $0 | |
local.get $1 | |
i32.const 1 | |
i32.sub | |
i32.const -1342177280 | |
i32.or | |
i32.store offset=4 | |
local.get $2 | |
i32.const -2147483648 | |
i32.and | |
i32.eqz | |
if | |
local.get $0 | |
call $~lib/rt/pure/appendRoot | |
end | |
end | |
end | |
) | |
(func $~lib/rt/pure/__release (; 45 ;) (type $FUNCSIG$vi) (param $0 i32) | |
local.get $0 | |
i32.const 724 | |
i32.gt_u | |
if | |
local.get $0 | |
i32.const 16 | |
i32.sub | |
call $~lib/rt/pure/decrement | |
end | |
) | |
(func $~lib/rt/pure/markGray (; 46 ;) (type $FUNCSIG$vi) (param $0 i32) | |
(local $1 i32) | |
local.get $0 | |
i32.load offset=4 | |
local.tee $1 | |
i32.const 1879048192 | |
i32.and | |
i32.const 268435456 | |
i32.ne | |
if | |
local.get $0 | |
local.get $1 | |
i32.const -1879048193 | |
i32.and | |
i32.const 268435456 | |
i32.or | |
i32.store offset=4 | |
local.get $0 | |
i32.const 16 | |
i32.add | |
i32.const 2 | |
call $~lib/rt/__visit_members | |
end | |
) | |
(func $~lib/rt/pure/scanBlack (; 47 ;) (type $FUNCSIG$vi) (param $0 i32) | |
local.get $0 | |
local.get $0 | |
i32.load offset=4 | |
i32.const -1879048193 | |
i32.and | |
i32.store offset=4 | |
local.get $0 | |
i32.const 16 | |
i32.add | |
i32.const 4 | |
call $~lib/rt/__visit_members | |
) | |
(func $~lib/rt/pure/scan (; 48 ;) (type $FUNCSIG$vi) (param $0 i32) | |
(local $1 i32) | |
local.get $0 | |
i32.load offset=4 | |
local.tee $1 | |
i32.const 1879048192 | |
i32.and | |
i32.const 268435456 | |
i32.eq | |
if | |
local.get $1 | |
i32.const 268435455 | |
i32.and | |
i32.const 0 | |
i32.gt_u | |
if | |
local.get $0 | |
call $~lib/rt/pure/scanBlack | |
else | |
local.get $0 | |
local.get $1 | |
i32.const -1879048193 | |
i32.and | |
i32.const 536870912 | |
i32.or | |
i32.store offset=4 | |
local.get $0 | |
i32.const 16 | |
i32.add | |
i32.const 3 | |
call $~lib/rt/__visit_members | |
end | |
end | |
) | |
(func $~lib/rt/pure/collectWhite (; 49 ;) (type $FUNCSIG$vi) (param $0 i32) | |
(local $1 i32) | |
local.get $0 | |
i32.load offset=4 | |
local.tee $1 | |
i32.const 1879048192 | |
i32.and | |
i32.const 536870912 | |
i32.eq | |
if (result i32) | |
local.get $1 | |
i32.const -2147483648 | |
i32.and | |
i32.eqz | |
else | |
i32.const 0 | |
end | |
if | |
local.get $0 | |
local.get $1 | |
i32.const -1879048193 | |
i32.and | |
i32.store offset=4 | |
local.get $0 | |
i32.const 16 | |
i32.add | |
i32.const 5 | |
call $~lib/rt/__visit_members | |
global.get $~lib/rt/tlsf/ROOT | |
local.get $0 | |
call $~lib/rt/tlsf/freeBlock | |
end | |
) | |
(func $~lib/rt/pure/__collect (; 50 ;) (type $FUNCSIG$v) | |
(local $0 i32) | |
(local $1 i32) | |
(local $2 i32) | |
(local $3 i32) | |
(local $4 i32) | |
(local $5 i32) | |
global.get $~lib/rt/pure/ROOTS | |
local.tee $5 | |
local.tee $2 | |
local.set $3 | |
global.get $~lib/rt/pure/CUR | |
local.set $0 | |
loop $loop|0 | |
block $break|0 | |
local.get $3 | |
local.get $0 | |
i32.ge_u | |
br_if $break|0 | |
local.get $3 | |
i32.load | |
local.tee $4 | |
i32.load offset=4 | |
local.tee $1 | |
i32.const 1879048192 | |
i32.and | |
i32.const 805306368 | |
i32.eq | |
if (result i32) | |
local.get $1 | |
i32.const 268435455 | |
i32.and | |
i32.const 0 | |
i32.gt_u | |
else | |
i32.const 0 | |
end | |
if | |
local.get $4 | |
call $~lib/rt/pure/markGray | |
local.get $2 | |
local.get $4 | |
i32.store | |
local.get $2 | |
i32.const 4 | |
i32.add | |
local.set $2 | |
else | |
i32.const 0 | |
local.get $1 | |
i32.const 268435455 | |
i32.and | |
i32.eqz | |
local.get $1 | |
i32.const 1879048192 | |
i32.and | |
select | |
if | |
global.get $~lib/rt/tlsf/ROOT | |
local.get $4 | |
call $~lib/rt/tlsf/freeBlock | |
else | |
local.get $4 | |
local.get $1 | |
i32.const 2147483647 | |
i32.and | |
i32.store offset=4 | |
end | |
end | |
local.get $3 | |
i32.const 4 | |
i32.add | |
local.set $3 | |
br $loop|0 | |
end | |
end | |
local.get $2 | |
global.set $~lib/rt/pure/CUR | |
local.get $5 | |
local.set $0 | |
loop $loop|1 | |
block $break|1 | |
local.get $0 | |
local.get $2 | |
i32.ge_u | |
br_if $break|1 | |
local.get $0 | |
i32.load | |
call $~lib/rt/pure/scan | |
local.get $0 | |
i32.const 4 | |
i32.add | |
local.set $0 | |
br $loop|1 | |
end | |
end | |
local.get $5 | |
local.set $0 | |
loop $loop|2 | |
block $break|2 | |
local.get $0 | |
local.get $2 | |
i32.ge_u | |
br_if $break|2 | |
local.get $0 | |
i32.load | |
local.tee $1 | |
local.get $1 | |
i32.load offset=4 | |
i32.const 2147483647 | |
i32.and | |
i32.store offset=4 | |
local.get $1 | |
call $~lib/rt/pure/collectWhite | |
local.get $0 | |
i32.const 4 | |
i32.add | |
local.set $0 | |
br $loop|2 | |
end | |
end | |
local.get $5 | |
global.set $~lib/rt/pure/CUR | |
) | |
(func $~lib/arraybuffer/ArrayBufferView#constructor (; 51 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32) | |
(local $1 i32) | |
(local $2 i32) | |
i32.const 0 | |
i32.const 0 | |
call $~lib/rt/tlsf/__alloc | |
local.set $1 | |
local.get $0 | |
i32.eqz | |
if | |
i32.const 12 | |
i32.const 2 | |
call $~lib/rt/tlsf/__alloc | |
call $~lib/rt/pure/__retain | |
local.set $0 | |
end | |
local.get $0 | |
i32.const 0 | |
i32.store | |
local.get $0 | |
i32.const 0 | |
i32.store offset=4 | |
local.get $0 | |
i32.const 0 | |
i32.store offset=8 | |
local.get $1 | |
local.get $0 | |
i32.load | |
local.tee $2 | |
i32.ne | |
if | |
local.get $1 | |
call $~lib/rt/pure/__retain | |
drop | |
local.get $2 | |
call $~lib/rt/pure/__release | |
end | |
local.get $0 | |
local.get $1 | |
i32.store | |
local.get $0 | |
local.get $1 | |
i32.store offset=4 | |
local.get $0 | |
i32.const 0 | |
i32.store offset=8 | |
local.get $0 | |
) | |
(func $~lib/string/String#get:lengthUTF8 (; 52 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32) | |
(local $1 i32) | |
(local $2 i32) | |
(local $3 i32) | |
(local $4 i32) | |
i32.const 1 | |
local.set $1 | |
local.get $0 | |
i32.const 16 | |
i32.sub | |
i32.load offset=12 | |
i32.const 1 | |
i32.shr_u | |
local.set $3 | |
loop $continue|0 | |
local.get $2 | |
local.get $3 | |
i32.lt_u | |
if | |
local.get $2 | |
i32.const 1 | |
i32.shl | |
local.get $0 | |
i32.add | |
i32.load16_u | |
local.tee $4 | |
i32.const 128 | |
i32.lt_u | |
if (result i32) | |
local.get $1 | |
i32.const 1 | |
i32.add | |
local.set $1 | |
local.get $2 | |
i32.const 1 | |
i32.add | |
else | |
local.get $4 | |
i32.const 2048 | |
i32.lt_u | |
if (result i32) | |
local.get $1 | |
i32.const 2 | |
i32.add | |
local.set $1 | |
local.get $2 | |
i32.const 1 | |
i32.add | |
else | |
local.get $2 | |
i32.const 1 | |
i32.add | |
local.get $3 | |
i32.lt_u | |
i32.const 0 | |
local.get $4 | |
i32.const 64512 | |
i32.and | |
i32.const 55296 | |
i32.eq | |
select | |
if (result i32) | |
local.get $2 | |
i32.const 1 | |
i32.add | |
i32.const 1 | |
i32.shl | |
local.get $0 | |
i32.add | |
i32.load16_u | |
i32.const 64512 | |
i32.and | |
i32.const 56320 | |
i32.eq | |
else | |
i32.const 0 | |
end | |
if (result i32) | |
local.get $1 | |
i32.const 4 | |
i32.add | |
local.set $1 | |
local.get $2 | |
i32.const 2 | |
i32.add | |
else | |
local.get $1 | |
i32.const 3 | |
i32.add | |
local.set $1 | |
local.get $2 | |
i32.const 1 | |
i32.add | |
end | |
end | |
end | |
local.set $2 | |
br $continue|0 | |
end | |
end | |
local.get $1 | |
) | |
(func $~lib/string/String#toUTF8 (; 53 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32) | |
(local $1 i32) | |
(local $2 i32) | |
(local $3 i32) | |
(local $4 i32) | |
(local $5 i32) | |
(local $6 i32) | |
(local $7 i32) | |
local.get $0 | |
call $~lib/string/String#get:lengthUTF8 | |
i32.const 0 | |
call $~lib/rt/tlsf/__alloc | |
local.set $5 | |
local.get $0 | |
i32.const 16 | |
i32.sub | |
i32.load offset=12 | |
i32.const 1 | |
i32.shr_u | |
local.set $6 | |
loop $continue|0 | |
local.get $4 | |
local.get $6 | |
i32.lt_u | |
if | |
local.get $4 | |
i32.const 1 | |
i32.shl | |
local.get $0 | |
i32.add | |
i32.load16_u | |
local.tee $1 | |
i32.const 128 | |
i32.lt_u | |
if (result i32) | |
local.get $2 | |
local.get $5 | |
i32.add | |
local.get $1 | |
i32.store8 | |
local.get $2 | |
i32.const 1 | |
i32.add | |
else | |
local.get $1 | |
i32.const 2048 | |
i32.lt_u | |
if (result i32) | |
local.get $2 | |
local.get $5 | |
i32.add | |
local.tee $3 | |
local.get $1 | |
i32.const 6 | |
i32.shr_u | |
i32.const 192 | |
i32.or | |
i32.store8 | |
local.get $3 | |
local.get $1 | |
i32.const 63 | |
i32.and | |
i32.const 128 | |
i32.or | |
i32.store8 offset=1 | |
local.get $2 | |
i32.const 2 | |
i32.add | |
else | |
local.get $2 | |
local.get $5 | |
i32.add | |
local.set $3 | |
local.get $4 | |
i32.const 1 | |
i32.add | |
local.get $6 | |
i32.lt_u | |
i32.const 0 | |
local.get $1 | |
i32.const 64512 | |
i32.and | |
i32.const 55296 | |
i32.eq | |
select | |
if | |
local.get $4 | |
i32.const 1 | |
i32.add | |
i32.const 1 | |
i32.shl | |
local.get $0 | |
i32.add | |
i32.load16_u | |
local.tee $7 | |
i32.const 64512 | |
i32.and | |
i32.const 56320 | |
i32.eq | |
if | |
local.get $3 | |
local.get $1 | |
i32.const 1023 | |
i32.and | |
i32.const 10 | |
i32.shl | |
i32.const 65536 | |
i32.add | |
local.get $7 | |
i32.const 1023 | |
i32.and | |
i32.add | |
local.tee $1 | |
i32.const 18 | |
i32.shr_u | |
i32.const 240 | |
i32.or | |
i32.store8 | |
local.get $3 | |
local.get $1 | |
i32.const 12 | |
i32.shr_u | |
i32.const 63 | |
i32.and | |
i32.const 128 | |
i32.or | |
i32.store8 offset=1 | |
local.get $3 | |
local.get $1 | |
i32.const 6 | |
i32.shr_u | |
i32.const 63 | |
i32.and | |
i32.const 128 | |
i32.or | |
i32.store8 offset=2 | |
local.get $3 | |
local.get $1 | |
i32.const 63 | |
i32.and | |
i32.const 128 | |
i32.or | |
i32.store8 offset=3 | |
local.get $2 | |
i32.const 4 | |
i32.add | |
local.set $2 | |
local.get $4 | |
i32.const 2 | |
i32.add | |
local.set $4 | |
br $continue|0 | |
end | |
end | |
local.get $3 | |
local.get $1 | |
i32.const 12 | |
i32.shr_u | |
i32.const 224 | |
i32.or | |
i32.store8 | |
local.get $3 | |
local.get $1 | |
i32.const 6 | |
i32.shr_u | |
i32.const 63 | |
i32.and | |
i32.const 128 | |
i32.or | |
i32.store8 offset=1 | |
local.get $3 | |
local.get $1 | |
i32.const 63 | |
i32.and | |
i32.const 128 | |
i32.or | |
i32.store8 offset=2 | |
local.get $2 | |
i32.const 3 | |
i32.add | |
end | |
end | |
local.set $2 | |
local.get $4 | |
i32.const 1 | |
i32.add | |
local.set $4 | |
br $continue|0 | |
end | |
end | |
local.get $2 | |
local.get $5 | |
i32.add | |
i32.const 0 | |
i32.store8 | |
local.get $5 | |
) | |
(func $~lib/string/String.fromCharCode (; 54 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32) | |
(local $2 i32) | |
local.get $1 | |
i32.const -1 | |
i32.xor | |
if | |
i32.const 4 | |
i32.const 1 | |
call $~lib/rt/tlsf/__alloc | |
local.tee $2 | |
local.get $0 | |
i32.store16 | |
local.get $2 | |
local.get $1 | |
i32.store16 offset=2 | |
else | |
i32.const 2 | |
i32.const 1 | |
call $~lib/rt/tlsf/__alloc | |
local.tee $2 | |
local.get $0 | |
i32.store16 | |
end | |
local.get $2 | |
call $~lib/rt/pure/__retain | |
) | |
(func $~lib/rt/tlsf/reallocateBlock (; 55 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32) | |
(local $3 i32) | |
(local $4 i32) | |
(local $5 i32) | |
(local $6 i32) | |
local.get $2 | |
call $~lib/rt/tlsf/prepareSize | |
local.set $3 | |
local.get $1 | |
i32.load | |
local.tee $4 | |
i32.const 1 | |
i32.and | |
if | |
i32.const 0 | |
i32.const 24 | |
i32.const 493 | |
i32.const 13 | |
call $~lib/builtins/abort | |
unreachable | |
end | |
local.get $3 | |
local.get $4 | |
i32.const -4 | |
i32.and | |
i32.le_u | |
if | |
local.get $0 | |
local.get $1 | |
local.get $3 | |
call $~lib/rt/tlsf/prepareBlock | |
local.get $1 | |
local.get $2 | |
i32.store offset=12 | |
local.get $1 | |
return | |
end | |
local.get $1 | |
i32.const 16 | |
i32.add | |
local.get $1 | |
i32.load | |
i32.const -4 | |
i32.and | |
i32.add | |
local.tee $6 | |
i32.load | |
local.tee $5 | |
i32.const 1 | |
i32.and | |
if | |
local.get $4 | |
i32.const -4 | |
i32.and | |
i32.const 16 | |
i32.add | |
local.get $5 | |
i32.const -4 | |
i32.and | |
i32.add | |
local.tee $5 | |
local.get $3 | |
i32.ge_u | |
if | |
local.get $0 | |
local.get $6 | |
call $~lib/rt/tlsf/removeBlock | |
local.get $1 | |
local.get $4 | |
i32.const 3 | |
i32.and | |
local.get $5 | |
i32.or | |
i32.store | |
local.get $1 | |
local.get $2 | |
i32.store offset=12 | |
local.get $0 | |
local.get $1 | |
local.get $3 | |
call $~lib/rt/tlsf/prepareBlock | |
local.get $1 | |
return | |
end | |
end | |
local.get $0 | |
local.get $2 | |
call $~lib/rt/tlsf/allocateBlock | |
local.tee $3 | |
local.get $1 | |
i32.load offset=4 | |
i32.store offset=4 | |
local.get $3 | |
local.get $1 | |
i32.load offset=8 | |
i32.store offset=8 | |
local.get $3 | |
i32.const 16 | |
i32.add | |
local.get $1 | |
i32.const 16 | |
i32.add | |
local.get $2 | |
call $~lib/memory/memory.copy | |
local.get $1 | |
local.get $4 | |
i32.const 1 | |
i32.or | |
i32.store | |
local.get $0 | |
local.get $1 | |
call $~lib/rt/tlsf/insertBlock | |
local.get $3 | |
) | |
(func $~lib/rt/tlsf/__realloc (; 56 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32) | |
global.get $~lib/rt/tlsf/ROOT | |
i32.eqz | |
if | |
i32.const 0 | |
i32.const 24 | |
i32.const 553 | |
i32.const 13 | |
call $~lib/builtins/abort | |
unreachable | |
end | |
local.get $0 | |
i32.const 15 | |
i32.and | |
i32.eqz | |
i32.const 0 | |
local.get $0 | |
select | |
i32.eqz | |
if | |
i32.const 0 | |
i32.const 24 | |
i32.const 554 | |
i32.const 2 | |
call $~lib/builtins/abort | |
unreachable | |
end | |
global.get $~lib/rt/tlsf/ROOT | |
local.get $0 | |
i32.const 16 | |
i32.sub | |
local.get $1 | |
call $~lib/rt/tlsf/reallocateBlock | |
i32.const 16 | |
i32.add | |
) | |
(func $~lib/memory/memory.fill (; 57 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32) | |
(local $2 i32) | |
block $~lib/util/memory/memset|inlined.0 | |
local.get $1 | |
i32.eqz | |
br_if $~lib/util/memory/memset|inlined.0 | |
local.get $0 | |
i32.const 0 | |
i32.store8 | |
local.get $0 | |
local.get $1 | |
i32.add | |
i32.const 1 | |
i32.sub | |
i32.const 0 | |
i32.store8 | |
local.get $1 | |
i32.const 2 | |
i32.le_u | |
br_if $~lib/util/memory/memset|inlined.0 | |
local.get $0 | |
i32.const 1 | |
i32.add | |
i32.const 0 | |
i32.store8 | |
local.get $0 | |
i32.const 2 | |
i32.add | |
i32.const 0 | |
i32.store8 | |
local.get $0 | |
local.get $1 | |
i32.add | |
local.tee $2 | |
i32.const 2 | |
i32.sub | |
i32.const 0 | |
i32.store8 | |
local.get $2 | |
i32.const 3 | |
i32.sub | |
i32.const 0 | |
i32.store8 | |
local.get $1 | |
i32.const 6 | |
i32.le_u | |
br_if $~lib/util/memory/memset|inlined.0 | |
local.get $0 | |
i32.const 3 | |
i32.add | |
i32.const 0 | |
i32.store8 | |
local.get $0 | |
local.get $1 | |
i32.add | |
i32.const 4 | |
i32.sub | |
i32.const 0 | |
i32.store8 | |
local.get $1 | |
i32.const 8 | |
i32.le_u | |
br_if $~lib/util/memory/memset|inlined.0 | |
local.get $1 | |
i32.const 0 | |
local.get $0 | |
i32.sub | |
i32.const 3 | |
i32.and | |
local.tee $1 | |
i32.sub | |
local.get $0 | |
local.get $1 | |
i32.add | |
local.tee $0 | |
i32.const 0 | |
i32.store | |
i32.const -4 | |
i32.and | |
local.tee $1 | |
local.get $0 | |
i32.add | |
i32.const 4 | |
i32.sub | |
i32.const 0 | |
i32.store | |
local.get $1 | |
i32.const 8 | |
i32.le_u | |
br_if $~lib/util/memory/memset|inlined.0 | |
local.get $0 | |
i32.const 4 | |
i32.add | |
i32.const 0 | |
i32.store | |
local.get $0 | |
i32.const 8 | |
i32.add | |
i32.const 0 | |
i32.store | |
local.get $0 | |
local.get $1 | |
i32.add | |
local.tee $2 | |
i32.const 12 | |
i32.sub | |
i32.const 0 | |
i32.store | |
local.get $2 | |
i32.const 8 | |
i32.sub | |
i32.const 0 | |
i32.store | |
local.get $1 | |
i32.const 24 | |
i32.le_u | |
br_if $~lib/util/memory/memset|inlined.0 | |
local.get $0 | |
i32.const 12 | |
i32.add | |
i32.const 0 | |
i32.store | |
local.get $0 | |
i32.const 16 | |
i32.add | |
i32.const 0 | |
i32.store | |
local.get $0 | |
i32.const 20 | |
i32.add | |
i32.const 0 | |
i32.store | |
local.get $0 | |
i32.const 24 | |
i32.add | |
i32.const 0 | |
i32.store | |
local.get $0 | |
local.get $1 | |
i32.add | |
local.tee $2 | |
i32.const 28 | |
i32.sub | |
i32.const 0 | |
i32.store | |
local.get $2 | |
i32.const 24 | |
i32.sub | |
i32.const 0 | |
i32.store | |
local.get $2 | |
i32.const 20 | |
i32.sub | |
i32.const 0 | |
i32.store | |
local.get $2 | |
i32.const 16 | |
i32.sub | |
i32.const 0 | |
i32.store | |
local.get $0 | |
i32.const 4 | |
i32.and | |
i32.const 24 | |
i32.add | |
local.tee $2 | |
local.get $0 | |
i32.add | |
local.set $0 | |
local.get $1 | |
local.get $2 | |
i32.sub | |
local.set $1 | |
loop $continue|0 | |
local.get $1 | |
i32.const 32 | |
i32.ge_u | |
if | |
local.get $0 | |
i64.const 0 | |
i64.store | |
local.get $0 | |
i32.const 8 | |
i32.add | |
i64.const 0 | |
i64.store | |
local.get $0 | |
i32.const 16 | |
i32.add | |
i64.const 0 | |
i64.store | |
local.get $0 | |
i32.const 24 | |
i32.add | |
i64.const 0 | |
i64.store | |
local.get $1 | |
i32.const 32 | |
i32.sub | |
local.set $1 | |
local.get $0 | |
i32.const 32 | |
i32.add | |
local.set $0 | |
br $continue|0 | |
end | |
end | |
end | |
) | |
(func $~lib/array/ensureSize (; 58 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32) | |
(local $2 i32) | |
(local $3 i32) | |
(local $4 i32) | |
local.get $1 | |
local.get $0 | |
i32.load offset=8 | |
local.tee $2 | |
i32.const 2 | |
i32.shr_u | |
i32.gt_u | |
if | |
local.get $1 | |
i32.const 268435452 | |
i32.gt_u | |
if | |
i32.const 392 | |
i32.const 608 | |
i32.const 14 | |
i32.const 47 | |
call $~lib/builtins/abort | |
unreachable | |
end | |
local.get $0 | |
i32.load | |
local.tee $4 | |
local.get $1 | |
i32.const 2 | |
i32.shl | |
local.tee $3 | |
call $~lib/rt/tlsf/__realloc | |
local.tee $1 | |
local.get $2 | |
i32.add | |
local.get $3 | |
local.get $2 | |
i32.sub | |
call $~lib/memory/memory.fill | |
local.get $1 | |
local.get $4 | |
i32.ne | |
if | |
local.get $0 | |
local.get $1 | |
call $~lib/rt/pure/__retain | |
i32.store | |
local.get $0 | |
local.get $1 | |
i32.store offset=4 | |
end | |
local.get $0 | |
local.get $3 | |
i32.store offset=8 | |
end | |
) | |
(func $~lib/array/Array<~lib/string/String>#push (; 59 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32) | |
(local $2 i32) | |
(local $3 i32) | |
local.get $1 | |
call $~lib/rt/pure/__retain | |
drop | |
local.get $0 | |
local.get $0 | |
i32.load offset=12 | |
local.tee $2 | |
i32.const 1 | |
i32.add | |
local.tee $3 | |
call $~lib/array/ensureSize | |
local.get $0 | |
i32.load offset=4 | |
local.get $2 | |
i32.const 2 | |
i32.shl | |
i32.add | |
local.get $1 | |
call $~lib/rt/pure/__retain | |
i32.store | |
local.get $0 | |
local.get $3 | |
i32.store offset=12 | |
local.get $1 | |
call $~lib/rt/pure/__release | |
) | |
(func $start:assembly/__tests__/reproduce.spec~anonymous|0~anonymous|0 (; 60 ;) (type $FUNCSIG$v) | |
(local $0 i32) | |
(local $1 i32) | |
(local $2 i32) | |
(local $3 i32) | |
(local $4 i32) | |
(local $5 i32) | |
(local $6 i32) | |
i32.const 16 | |
i32.const 3 | |
call $~lib/rt/tlsf/__alloc | |
call $~lib/rt/pure/__retain | |
call $~lib/arraybuffer/ArrayBufferView#constructor | |
local.tee $1 | |
i32.const 0 | |
i32.store offset=12 | |
local.get $1 | |
i32.const 0 | |
i32.store offset=12 | |
i32.const 656 | |
call $~lib/rt/pure/__retain | |
local.tee $4 | |
call $~lib/string/String#toUTF8 | |
call $~lib/rt/pure/__retain | |
local.tee $3 | |
i32.const 16 | |
i32.sub | |
i32.load offset=12 | |
i32.const 1 | |
i32.sub | |
local.set $5 | |
loop $loop|0 | |
local.get $2 | |
local.get $5 | |
i32.lt_s | |
if | |
i32.const 1 | |
global.set $~lib/argc | |
local.get $2 | |
local.get $3 | |
i32.add | |
i32.load8_u | |
local.set $6 | |
i32.const 0 | |
local.set $0 | |
block $1of1 | |
block $0of1 | |
block $outOfRange | |
global.get $~lib/argc | |
i32.const 1 | |
i32.sub | |
br_table $0of1 $1of1 $outOfRange | |
end | |
unreachable | |
end | |
i32.const -1 | |
local.set $0 | |
end | |
local.get $1 | |
local.get $6 | |
local.get $0 | |
call $~lib/string/String.fromCharCode | |
local.tee $0 | |
call $~lib/array/Array<~lib/string/String>#push | |
local.get $2 | |
i32.const 1 | |
i32.add | |
local.set $2 | |
local.get $0 | |
call $~lib/rt/pure/__release | |
br $loop|0 | |
end | |
end | |
local.get $1 | |
call $~lib/rt/pure/__release | |
local.get $4 | |
call $~lib/rt/pure/__release | |
local.get $3 | |
call $~lib/rt/pure/__release | |
) | |
(func $start:assembly/__tests__/reproduce.spec~anonymous|0 (; 61 ;) (type $FUNCSIG$v) | |
i32.const 304 | |
call $~lib/rt/pure/__retain | |
drop | |
i32.const 304 | |
i32.const 1 | |
call $node_modules/as-pect/assembly/internal/Test/reportTest | |
i32.const 304 | |
call $~lib/rt/pure/__release | |
) | |
(func $start:node_modules/as-pect/assembly/internal/noOp~anonymous|0 (; 62 ;) (type $FUNCSIG$v) | |
nop | |
) | |
(func $node_modules/as-pect/assembly/index/__ready (; 63 ;) (type $FUNCSIG$v) | |
i32.const 1 | |
global.set $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.ready | |
) | |
(func $node_modules/as-pect/assembly/internal/call/__call (; 64 ;) (type $FUNCSIG$vi) (param $0 i32) | |
i32.const 0 | |
global.set $~lib/argc | |
local.get $0 | |
call_indirect (type $FUNCSIG$v) | |
) | |
(func $node_modules/as-pect/assembly/internal/report/reportActual/__sendActual (; 65 ;) (type $FUNCSIG$v) | |
(local $0 i32) | |
block $break|0 | |
block $case7|0 | |
block $case6|0 | |
block $case5|0 | |
block $case4|0 | |
block $case3|0 | |
block $case2|0 | |
block $case1|0 | |
global.get $node_modules/as-pect/assembly/internal/report/reportActual/Actual.type | |
local.tee $0 | |
if | |
local.get $0 | |
i32.const 1 | |
i32.sub | |
br_table $case4|0 $case2|0 $case3|0 $case5|0 $case6|0 $case1|0 $break|0 $break|0 $break|0 $case7|0 $break|0 | |
end | |
return | |
end | |
global.get $node_modules/as-pect/assembly/internal/report/reportActual/Actual.reference | |
global.get $node_modules/as-pect/assembly/internal/report/reportActual/Actual.stackTrace | |
call $node_modules/as-pect/assembly/internal/report/reportActual/reportActualArray | |
br $break|0 | |
end | |
global.get $node_modules/as-pect/assembly/internal/report/reportActual/Actual.float | |
i32.const 1 | |
global.get $node_modules/as-pect/assembly/internal/report/reportActual/Actual.stackTrace | |
call $node_modules/as-pect/assembly/internal/report/reportActual/reportActualFloat | |
br $break|0 | |
end | |
global.get $node_modules/as-pect/assembly/internal/report/reportActual/Actual.integer | |
global.get $node_modules/as-pect/assembly/internal/report/reportActual/Actual.signed | |
global.get $node_modules/as-pect/assembly/internal/report/reportActual/Actual.stackTrace | |
call $node_modules/as-pect/assembly/internal/report/reportActual/reportActualInteger | |
br $break|0 | |
end | |
global.get $node_modules/as-pect/assembly/internal/report/reportActual/Actual.stackTrace | |
call $node_modules/as-pect/assembly/internal/report/reportActual/reportActualNull | |
br $break|0 | |
end | |
global.get $node_modules/as-pect/assembly/internal/report/reportActual/Actual.reference | |
global.get $node_modules/as-pect/assembly/internal/report/reportActual/Actual.offset | |
global.get $node_modules/as-pect/assembly/internal/report/reportActual/Actual.stackTrace | |
call $node_modules/as-pect/assembly/internal/report/reportActual/reportActualReferenceExternal | |
br $break|0 | |
end | |
global.get $node_modules/as-pect/assembly/internal/report/reportActual/Actual.reference | |
global.get $node_modules/as-pect/assembly/internal/report/reportActual/Actual.stackTrace | |
call $node_modules/as-pect/assembly/internal/report/reportActual/reportActualString | |
br $break|0 | |
end | |
global.get $node_modules/as-pect/assembly/internal/report/reportActual/Actual.reference | |
global.get $node_modules/as-pect/assembly/internal/report/reportActual/Actual.signed | |
global.get $node_modules/as-pect/assembly/internal/report/reportActual/Actual.stackTrace | |
call $node_modules/as-pect/assembly/internal/report/reportActual/reportActualLong | |
end | |
) | |
(func $node_modules/as-pect/assembly/internal/report/reportExpected/__sendExpected (; 66 ;) (type $FUNCSIG$v) | |
(local $0 i32) | |
block $break|0 | |
block $case9|0 | |
block $case8|0 | |
block $case7|0 | |
block $case6|0 | |
block $case5|0 | |
block $case4|0 | |
block $case3|0 | |
block $case2|0 | |
block $case1|0 | |
global.get $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.type | |
local.tee $0 | |
i32.const 6 | |
i32.ne | |
if | |
local.get $0 | |
i32.const 1 | |
i32.sub | |
br_table $case3|0 $case1|0 $case2|0 $case4|0 $case5|0 $break|0 $case6|0 $case8|0 $case7|0 $case9|0 $break|0 | |
end | |
global.get $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.reference | |
global.get $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.negated | |
global.get $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.stackTrace | |
call $node_modules/as-pect/assembly/internal/report/reportExpected/reportExpectedArray | |
br $break|0 | |
end | |
global.get $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.float | |
i32.const 1 | |
global.get $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.negated | |
global.get $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.stackTrace | |
call $node_modules/as-pect/assembly/internal/report/reportExpected/reportExpectedFloat | |
br $break|0 | |
end | |
global.get $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.integer | |
global.get $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.signed | |
global.get $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.negated | |
global.get $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.stackTrace | |
call $node_modules/as-pect/assembly/internal/report/reportExpected/reportExpectedInteger | |
br $break|0 | |
end | |
global.get $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.negated | |
global.get $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.stackTrace | |
call $node_modules/as-pect/assembly/internal/report/reportExpected/reportExpectedNull | |
br $break|0 | |
end | |
global.get $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.reference | |
global.get $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.offset | |
global.get $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.negated | |
global.get $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.stackTrace | |
call $node_modules/as-pect/assembly/internal/report/reportExpected/reportExpectedReferenceExternal | |
br $break|0 | |
end | |
global.get $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.reference | |
global.get $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.negated | |
global.get $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.stackTrace | |
call $node_modules/as-pect/assembly/internal/report/reportExpected/reportExpectedString | |
br $break|0 | |
end | |
global.get $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.negated | |
global.get $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.stackTrace | |
call $node_modules/as-pect/assembly/internal/report/reportExpected/reportExpectedFalsy | |
br $break|0 | |
end | |
global.get $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.negated | |
global.get $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.stackTrace | |
call $node_modules/as-pect/assembly/internal/report/reportExpected/reportExpectedFinite | |
br $break|0 | |
end | |
global.get $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.negated | |
global.get $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.stackTrace | |
call $node_modules/as-pect/assembly/internal/report/reportExpected/reportExpectedTruthy | |
br $break|0 | |
end | |
global.get $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.reference | |
global.get $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.signed | |
global.get $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.negated | |
global.get $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.stackTrace | |
call $node_modules/as-pect/assembly/internal/report/reportExpected/reportExpectedLong | |
end | |
) | |
(func $node_modules/as-pect/assembly/internal/log/__ignoreLogs (; 67 ;) (type $FUNCSIG$vi) (param $0 i32) | |
local.get $0 | |
i32.const 0 | |
i32.ne | |
global.set $node_modules/as-pect/assembly/internal/log/ignoreLogs | |
) | |
(func $node_modules/as-pect/assembly/internal/RTrace/__disableRTrace (; 68 ;) (type $FUNCSIG$v) | |
i32.const 0 | |
global.set $node_modules/as-pect/assembly/internal/RTrace/RTrace.enabled | |
) | |
(func $node_modules/as-pect/assembly/internal/RTrace/__getUsizeArrayId (; 69 ;) (type $FUNCSIG$i) (result i32) | |
i32.const 4 | |
) | |
(func $node_modules/as-pect/assembly/internal/Expectation/__cleanup (; 70 ;) (type $FUNCSIG$v) | |
i32.const 0 | |
global.set $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.type | |
global.get $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.reference | |
i32.const 0 | |
i32.gt_u | |
if | |
global.get $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.reference | |
call $~lib/rt/pure/__release | |
i32.const 0 | |
global.set $node_modules/as-pect/assembly/internal/report/reportExpected/Expected.reference | |
end | |
i32.const 0 | |
global.set $node_modules/as-pect/assembly/internal/report/reportActual/Actual.type | |
global.get $node_modules/as-pect/assembly/internal/report/reportActual/Actual.reference | |
i32.const 0 | |
i32.gt_u | |
if | |
global.get $node_modules/as-pect/assembly/internal/report/reportActual/Actual.reference | |
call $~lib/rt/pure/__release | |
i32.const 0 | |
global.set $node_modules/as-pect/assembly/internal/report/reportActual/Actual.reference | |
end | |
i32.const -1 | |
global.set $node_modules/as-pect/assembly/internal/report/reportActual/Actual.stackTrace | |
) | |
(func $start (; 71 ;) (type $FUNCSIG$v) | |
global.get $~lib/started | |
if | |
return | |
else | |
i32.const 1 | |
global.set $~lib/started | |
end | |
i32.const 272 | |
call $~lib/rt/pure/__retain | |
drop | |
i32.const 272 | |
call $node_modules/as-pect/assembly/internal/Describe/reportDescribe | |
i32.const 0 | |
global.set $~lib/argc | |
call $start:assembly/__tests__/reproduce.spec~anonymous|0 | |
call $node_modules/as-pect/assembly/internal/Describe/reportEndDescribe | |
i32.const 272 | |
call $~lib/rt/pure/__release | |
) | |
(func $~lib/rt/pure/__visit (; 72 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32) | |
local.get $0 | |
i32.const 724 | |
i32.lt_u | |
if | |
return | |
end | |
local.get $0 | |
i32.const 16 | |
i32.sub | |
local.set $0 | |
block $break|0 | |
block $case5|0 | |
block $case4|0 | |
block $case3|0 | |
block $case2|0 | |
block $case1|0 | |
local.get $1 | |
i32.const 1 | |
i32.ne | |
if | |
local.get $1 | |
i32.const 2 | |
i32.eq | |
br_if $case1|0 | |
block $tablify|0 | |
local.get $1 | |
i32.const 3 | |
i32.sub | |
br_table $case2|0 $case3|0 $case4|0 $tablify|0 | |
end | |
br $case5|0 | |
end | |
local.get $0 | |
call $~lib/rt/pure/decrement | |
br $break|0 | |
end | |
local.get $0 | |
i32.load offset=4 | |
i32.const 268435455 | |
i32.and | |
i32.const 0 | |
i32.le_u | |
if | |
i32.const 0 | |
i32.const 128 | |
i32.const 75 | |
i32.const 17 | |
call $~lib/builtins/abort | |
unreachable | |
end | |
local.get $0 | |
local.get $0 | |
i32.load offset=4 | |
i32.const 1 | |
i32.sub | |
i32.store offset=4 | |
local.get $0 | |
call $~lib/rt/pure/markGray | |
br $break|0 | |
end | |
local.get $0 | |
call $~lib/rt/pure/scan | |
br $break|0 | |
end | |
local.get $0 | |
i32.load offset=4 | |
local.tee $1 | |
i32.const -268435456 | |
i32.and | |
local.get $1 | |
i32.const 1 | |
i32.add | |
i32.const -268435456 | |
i32.and | |
i32.ne | |
if | |
i32.const 0 | |
i32.const 128 | |
i32.const 86 | |
i32.const 6 | |
call $~lib/builtins/abort | |
unreachable | |
end | |
local.get $0 | |
local.get $1 | |
i32.const 1 | |
i32.add | |
i32.store offset=4 | |
local.get $1 | |
i32.const 1879048192 | |
i32.and | |
if | |
local.get $0 | |
call $~lib/rt/pure/scanBlack | |
end | |
br $break|0 | |
end | |
local.get $0 | |
call $~lib/rt/pure/collectWhite | |
br $break|0 | |
end | |
i32.const 0 | |
i32.const 128 | |
i32.const 97 | |
i32.const 24 | |
call $~lib/builtins/abort | |
unreachable | |
end | |
) | |
(func $~lib/array/Array<~lib/string/String>#__visit_impl (; 73 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32) | |
(local $2 i32) | |
(local $3 i32) | |
local.get $0 | |
i32.load offset=4 | |
local.tee $2 | |
local.get $0 | |
i32.load offset=12 | |
i32.const 2 | |
i32.shl | |
i32.add | |
local.set $0 | |
loop $continue|0 | |
local.get $2 | |
local.get $0 | |
i32.lt_u | |
if | |
local.get $2 | |
i32.load | |
local.tee $3 | |
if | |
local.get $3 | |
local.get $1 | |
call $~lib/rt/pure/__visit | |
end | |
local.get $2 | |
i32.const 4 | |
i32.add | |
local.set $2 | |
br $continue|0 | |
end | |
end | |
) | |
(func $~lib/rt/__visit_members (; 74 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32) | |
block $block$4$break | |
block $switch$1$default | |
block $switch$1$case$5 | |
block $switch$1$case$2 | |
local.get $0 | |
i32.const 8 | |
i32.sub | |
i32.load | |
br_table $switch$1$case$2 $switch$1$case$2 $block$4$break $switch$1$case$5 $block$4$break $switch$1$default | |
end | |
return | |
end | |
local.get $0 | |
local.get $1 | |
call $~lib/array/Array<~lib/string/String>#__visit_impl | |
br $block$4$break | |
end | |
unreachable | |
end | |
local.get $0 | |
i32.load | |
local.tee $0 | |
if | |
local.get $0 | |
local.get $1 | |
call $~lib/rt/pure/__visit | |
end | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment