|
39 | 39 | (global $~lib/util/number/_K (mut i32) (i32.const 0))
|
40 | 40 | (global $~lib/util/number/_frc_pow (mut i64) (i64.const 0))
|
41 | 41 | (global $~lib/util/number/_exp_pow (mut i32) (i32.const 0))
|
42 |
| - (global $~lib/rt/__rtti_base i32 (i32.const 4640)) |
43 |
| - (global $~lib/memory/__data_end i32 (i32.const 4672)) |
44 |
| - (global $~lib/memory/__stack_pointer (mut i32) (i32.const 37440)) |
45 |
| - (global $~lib/memory/__heap_base i32 (i32.const 37440)) |
| 42 | + (global $~lib/rt/__rtti_base i32 (i32.const 4848)) |
| 43 | + (global $~lib/memory/__data_end i32 (i32.const 4880)) |
| 44 | + (global $~lib/memory/__stack_pointer (mut i32) (i32.const 37648)) |
| 45 | + (global $~lib/memory/__heap_base i32 (i32.const 37648)) |
46 | 46 | (global $~started (mut i32) (i32.const 0))
|
47 | 47 | (memory $0 1)
|
48 | 48 | (data $0 (i32.const 12) "\1c\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00\02\00\00\00a\00\00\00\00\00\00\00\00\00\00\00")
|
|
98 | 98 | (data $50 (i32.const 4348) ",\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00\14\00\00\00r\00e\00f\00#\001\00r\00e\00f\00#\002\00\00\00\00\00\00\00\00\00")
|
99 | 99 | (data $51 (i32.const 4396) ",\00\00\00\03\00\00\00\00\00\00\00\04\00\00\00\14\00\00\00p\02\00\00\00\00\00\00\90\02\00\00\00\00\00\00\b0\02\00\00\00\00\00\00\00\00\00\00")
|
100 | 100 | (data $52 (i32.const 4444) "<\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00$\00\00\00(\00A\00=\00r\00e\00f\00#\001\00,\00 \00B\00=\00r\00e\00f\00#\002\00)\00\00\00\00\00\00\00\00\00")
|
101 |
| - (data $53 (i32.const 4508) "\1c\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00\02\00\00\00c\00\00\00\00\00\00\00\00\00\00\00") |
102 |
| - (data $54 (i32.const 4540) "\1c\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00\02\00\00\00:\00\00\00\00\00\00\00\00\00\00\00") |
103 |
| - (data $55 (i32.const 4572) "\1c\00\00\00\03\00\00\00\00\00\00\00\04\00\00\00\0c\00\00\00\00\00\00\00\d0\11\00\00\00\00\00\00") |
104 |
| - (data $56 (i32.const 4604) "\1c\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00\n\00\00\00a\00:\00b\00:\00c\00\00\00") |
105 |
| - (data $57 (i32.const 4640) "\07\00\00\00 \00\00\00 \00\00\00 \00\00\00\00\00\00\00\04A\00\00 \00\00\00\00\00\00\00") |
| 101 | + (data $53 (i32.const 4508) "\1c\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00\06\00\00\00c\00:\00 \00\00\00\00\00\00\00") |
| 102 | + (data $54 (i32.const 4540) "\1c\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00\n\00\00\00;\00 \00d\00:\00 \00\00\00") |
| 103 | + (data $55 (i32.const 4572) ",\00\00\00\03\00\00\00\00\00\00\00\04\00\00\00\10\00\00\00\b0\11\00\00\00\00\00\00\d0\11\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00") |
| 104 | + (data $56 (i32.const 4620) "\1c\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00\08\00\00\00n\00u\00l\00l\00\00\00\00\00") |
| 105 | + (data $57 (i32.const 4652) "<\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00\"\00\00\00c\00:\00 \00r\00e\00f\00#\003\00;\00 \00d\00:\00 \00n\00u\00l\00l\00\00\00\00\00\00\00\00\00\00\00") |
| 106 | + (data $58 (i32.const 4716) "\1c\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00\02\00\00\00c\00\00\00\00\00\00\00\00\00\00\00") |
| 107 | + (data $59 (i32.const 4748) "\1c\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00\02\00\00\00:\00\00\00\00\00\00\00\00\00\00\00") |
| 108 | + (data $60 (i32.const 4780) "\1c\00\00\00\03\00\00\00\00\00\00\00\04\00\00\00\0c\00\00\00\00\00\00\00\a0\12\00\00\00\00\00\00") |
| 109 | + (data $61 (i32.const 4812) "\1c\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00\n\00\00\00a\00:\00b\00:\00c\00\00\00") |
| 110 | + (data $62 (i32.const 4848) "\07\00\00\00 \00\00\00 \00\00\00 \00\00\00\00\00\00\00\04A\00\00 \00\00\00\00\00\00\00") |
106 | 111 | (table $0 1 1 funcref)
|
107 | 112 | (elem $0 (i32.const 1))
|
108 | 113 | (export "memory" (memory $0))
|
|
4365 | 4370 | call $templateliteral/test_float
|
4366 | 4371 | call $templateliteral/test_fast_paths_string
|
4367 | 4372 | call $templateliteral/test_ref
|
| 4373 | + call $templateliteral/test_null |
4368 | 4374 | call $templateliteral/test_recursive
|
4369 | 4375 | )
|
4370 | 4376 | (func $~lib/rt/__visit_globals (param $0 i32)
|
|
4519 | 4525 | global.get $~lib/memory/__data_end
|
4520 | 4526 | i32.lt_s
|
4521 | 4527 | if
|
4522 |
| - i32.const 37472 |
4523 |
| - i32.const 37520 |
| 4528 | + i32.const 37680 |
| 4529 | + i32.const 37728 |
4524 | 4530 | i32.const 1
|
4525 | 4531 | i32.const 1
|
4526 | 4532 | call $~lib/builtins/abort
|
|
5991 | 5997 | i32.add
|
5992 | 5998 | global.set $~lib/memory/__stack_pointer
|
5993 | 5999 | )
|
| 6000 | + (func $templateliteral/test_null |
| 6001 | + (local $c i32) |
| 6002 | + (local $d i32) |
| 6003 | + (local $2 i32) |
| 6004 | + (local $3 i32) |
| 6005 | + (local $4 i32) |
| 6006 | + (local $5 i32) |
| 6007 | + global.get $~lib/memory/__stack_pointer |
| 6008 | + i32.const 32 |
| 6009 | + i32.sub |
| 6010 | + global.set $~lib/memory/__stack_pointer |
| 6011 | + call $~stack_check |
| 6012 | + global.get $~lib/memory/__stack_pointer |
| 6013 | + i32.const 0 |
| 6014 | + i32.const 32 |
| 6015 | + memory.fill |
| 6016 | + global.get $~lib/memory/__stack_pointer |
| 6017 | + i32.const 0 |
| 6018 | + i32.const 3 |
| 6019 | + call $templateliteral/Ref#constructor |
| 6020 | + local.tee $c |
| 6021 | + i32.store |
| 6022 | + i32.const 0 |
| 6023 | + local.set $d |
| 6024 | + global.get $~lib/memory/__stack_pointer |
| 6025 | + local.get $c |
| 6026 | + local.set $5 |
| 6027 | + global.get $~lib/memory/__stack_pointer |
| 6028 | + local.get $5 |
| 6029 | + i32.store offset=12 |
| 6030 | + local.get $5 |
| 6031 | + call $templateliteral/Ref#toString |
| 6032 | + local.tee $2 |
| 6033 | + i32.store offset=16 |
| 6034 | + global.get $~lib/memory/__stack_pointer |
| 6035 | + global.get $~lib/memory/__stack_pointer |
| 6036 | + local.get $d |
| 6037 | + local.tee $4 |
| 6038 | + i32.store offset=20 |
| 6039 | + local.get $4 |
| 6040 | + if (result i32) |
| 6041 | + local.get $4 |
| 6042 | + local.set $5 |
| 6043 | + global.get $~lib/memory/__stack_pointer |
| 6044 | + local.get $5 |
| 6045 | + i32.store offset=12 |
| 6046 | + local.get $5 |
| 6047 | + call $templateliteral/Ref#toString |
| 6048 | + else |
| 6049 | + i32.const 4640 |
| 6050 | + end |
| 6051 | + local.tee $3 |
| 6052 | + i32.store offset=24 |
| 6053 | + i32.const 4592 |
| 6054 | + local.set $5 |
| 6055 | + global.get $~lib/memory/__stack_pointer |
| 6056 | + local.get $5 |
| 6057 | + i32.store offset=12 |
| 6058 | + local.get $5 |
| 6059 | + i32.const 1 |
| 6060 | + local.get $2 |
| 6061 | + local.set $5 |
| 6062 | + global.get $~lib/memory/__stack_pointer |
| 6063 | + local.get $5 |
| 6064 | + i32.store offset=28 |
| 6065 | + local.get $5 |
| 6066 | + call $~lib/staticarray/StaticArray<~lib/string/String>#__uset |
| 6067 | + i32.const 4592 |
| 6068 | + local.set $5 |
| 6069 | + global.get $~lib/memory/__stack_pointer |
| 6070 | + local.get $5 |
| 6071 | + i32.store offset=12 |
| 6072 | + local.get $5 |
| 6073 | + i32.const 3 |
| 6074 | + local.get $3 |
| 6075 | + local.set $5 |
| 6076 | + global.get $~lib/memory/__stack_pointer |
| 6077 | + local.get $5 |
| 6078 | + i32.store offset=28 |
| 6079 | + local.get $5 |
| 6080 | + call $~lib/staticarray/StaticArray<~lib/string/String>#__uset |
| 6081 | + i32.const 4592 |
| 6082 | + local.set $5 |
| 6083 | + global.get $~lib/memory/__stack_pointer |
| 6084 | + local.get $5 |
| 6085 | + i32.store offset=12 |
| 6086 | + local.get $5 |
| 6087 | + i32.const 160 |
| 6088 | + local.set $5 |
| 6089 | + global.get $~lib/memory/__stack_pointer |
| 6090 | + local.get $5 |
| 6091 | + i32.store offset=28 |
| 6092 | + local.get $5 |
| 6093 | + call $~lib/staticarray/StaticArray<~lib/string/String>#join |
| 6094 | + local.set $5 |
| 6095 | + global.get $~lib/memory/__stack_pointer |
| 6096 | + local.get $5 |
| 6097 | + i32.store offset=4 |
| 6098 | + local.get $5 |
| 6099 | + i32.const 4672 |
| 6100 | + local.set $5 |
| 6101 | + global.get $~lib/memory/__stack_pointer |
| 6102 | + local.get $5 |
| 6103 | + i32.store offset=8 |
| 6104 | + local.get $5 |
| 6105 | + call $~lib/string/String.__eq |
| 6106 | + i32.eqz |
| 6107 | + if |
| 6108 | + i32.const 0 |
| 6109 | + i32.const 96 |
| 6110 | + i32.const 60 |
| 6111 | + i32.const 3 |
| 6112 | + call $~lib/builtins/abort |
| 6113 | + unreachable |
| 6114 | + end |
| 6115 | + global.get $~lib/memory/__stack_pointer |
| 6116 | + i32.const 32 |
| 6117 | + i32.add |
| 6118 | + global.set $~lib/memory/__stack_pointer |
| 6119 | + ) |
5994 | 6120 | (func $templateliteral/RecursiveObject#constructor (param $this i32) (param $key i32) (param $val i32) (result i32)
|
5995 | 6121 | (local $3 i32)
|
5996 | 6122 | global.get $~lib/memory/__stack_pointer
|
|
6110 | 6236 | call $templateliteral/RecursiveObject#toString
|
6111 | 6237 | local.tee $3
|
6112 | 6238 | i32.store offset=12
|
6113 |
| - i32.const 4592 |
| 6239 | + i32.const 4800 |
6114 | 6240 | local.set $4
|
6115 | 6241 | global.get $~lib/memory/__stack_pointer
|
6116 | 6242 | local.get $4
|
|
6124 | 6250 | i32.store offset=16
|
6125 | 6251 | local.get $4
|
6126 | 6252 | call $~lib/staticarray/StaticArray<~lib/string/String>#__uset
|
6127 |
| - i32.const 4592 |
| 6253 | + i32.const 4800 |
6128 | 6254 | local.set $4
|
6129 | 6255 | global.get $~lib/memory/__stack_pointer
|
6130 | 6256 | local.get $4
|
|
6138 | 6264 | i32.store offset=16
|
6139 | 6265 | local.get $4
|
6140 | 6266 | call $~lib/staticarray/StaticArray<~lib/string/String>#__uset
|
6141 |
| - i32.const 4592 |
| 6267 | + i32.const 4800 |
6142 | 6268 | local.set $4
|
6143 | 6269 | global.get $~lib/memory/__stack_pointer
|
6144 | 6270 | local.get $4
|
|
6175 | 6301 | memory.fill
|
6176 | 6302 | global.get $~lib/memory/__stack_pointer
|
6177 | 6303 | i32.const 0
|
6178 |
| - i32.const 4528 |
| 6304 | + i32.const 4736 |
6179 | 6305 | local.set $3
|
6180 | 6306 | global.get $~lib/memory/__stack_pointer
|
6181 | 6307 | local.get $3
|
|
6231 | 6357 | local.get $3
|
6232 | 6358 | i32.store
|
6233 | 6359 | local.get $3
|
6234 |
| - i32.const 4624 |
| 6360 | + i32.const 4832 |
6235 | 6361 | local.set $3
|
6236 | 6362 | global.get $~lib/memory/__stack_pointer
|
6237 | 6363 | local.get $3
|
|
6242 | 6368 | if
|
6243 | 6369 | i32.const 0
|
6244 | 6370 | i32.const 96
|
6245 |
| - i32.const 118 |
| 6371 | + i32.const 125 |
6246 | 6372 | i32.const 3
|
6247 | 6373 | call $~lib/builtins/abort
|
6248 | 6374 | unreachable
|
|
0 commit comments