|
| 1 | +(module |
| 2 | + (type $none_=>_none (func)) |
| 3 | + (type $i32_=>_i32 (func (param i32) (result i32))) |
| 4 | + (type $i32_=>_none (func (param i32))) |
| 5 | + (type $i32_i32_i32_i32_=>_none (func (param i32 i32 i32 i32))) |
| 6 | + (import "env" "abort" (func $~lib/builtins/abort (param i32 i32 i32 i32))) |
| 7 | + (global $~lib/shared/runtime/Runtime.Stub i32 (i32.const 0)) |
| 8 | + (global $~lib/shared/runtime/Runtime.Minimal i32 (i32.const 1)) |
| 9 | + (global $~lib/shared/runtime/Runtime.Incremental i32 (i32.const 2)) |
| 10 | + (global $~lib/memory/__data_end i32 (i32.const 124)) |
| 11 | + (global $~lib/memory/__stack_pointer (mut i32) (i32.const 16508)) |
| 12 | + (global $~lib/memory/__heap_base i32 (i32.const 16508)) |
| 13 | + (memory $0 1) |
| 14 | + (data (i32.const 12) "\1c\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\0c\00\00\00n\00u\00m\00b\00e\00r\00") |
| 15 | + (data (i32.const 44) "\1c\00\00\00\00\00\00\00\00\00\00\00\03\00\00\00\08\00\00\00\01\00\00\00\00\00\00\00\00\00\00\00") |
| 16 | + (data (i32.const 76) ",\00\00\00\00\00\00\00\00\00\00\00\01\00\00\00\10\00\00\00f\00u\00n\00c\00t\00i\00o\00n\00\00\00\00\00\00\00\00\00\00\00\00\00") |
| 17 | + (table $0 2 2 funcref) |
| 18 | + (elem $0 (i32.const 1) $start:resolve-typeof~anonymous|0) |
| 19 | + (export "memory" (memory $0)) |
| 20 | + (start $~start) |
| 21 | + (func $~lib/string/String#get:length (param $0 i32) (result i32) |
| 22 | + local.get $0 |
| 23 | + i32.const 20 |
| 24 | + i32.sub |
| 25 | + i32.load offset=16 |
| 26 | + i32.const 1 |
| 27 | + i32.shr_u |
| 28 | + ) |
| 29 | + (func $start:resolve-typeof~anonymous|0 |
| 30 | + nop |
| 31 | + ) |
| 32 | + (func $resolve-typeof/generic<~lib/string/String> (param $0 i32) |
| 33 | + nop |
| 34 | + ) |
| 35 | + (func $~start |
| 36 | + call $start:resolve-typeof |
| 37 | + ) |
| 38 | + (func $~stack_check |
| 39 | + global.get $~lib/memory/__stack_pointer |
| 40 | + global.get $~lib/memory/__data_end |
| 41 | + i32.lt_s |
| 42 | + if |
| 43 | + i32.const 16528 |
| 44 | + i32.const 16576 |
| 45 | + i32.const 1 |
| 46 | + i32.const 1 |
| 47 | + call $~lib/builtins/abort |
| 48 | + unreachable |
| 49 | + end |
| 50 | + ) |
| 51 | + (func $start:resolve-typeof |
| 52 | + (local $0 i32) |
| 53 | + global.get $~lib/memory/__stack_pointer |
| 54 | + i32.const 4 |
| 55 | + i32.sub |
| 56 | + global.set $~lib/memory/__stack_pointer |
| 57 | + call $~stack_check |
| 58 | + global.get $~lib/memory/__stack_pointer |
| 59 | + i32.const 0 |
| 60 | + i32.store |
| 61 | + i32.const 1 |
| 62 | + drop |
| 63 | + i32.const 32 |
| 64 | + local.set $0 |
| 65 | + global.get $~lib/memory/__stack_pointer |
| 66 | + local.get $0 |
| 67 | + i32.store |
| 68 | + local.get $0 |
| 69 | + call $~lib/string/String#get:length |
| 70 | + drop |
| 71 | + i32.const 64 |
| 72 | + drop |
| 73 | + i32.const 96 |
| 74 | + local.set $0 |
| 75 | + global.get $~lib/memory/__stack_pointer |
| 76 | + local.get $0 |
| 77 | + i32.store |
| 78 | + local.get $0 |
| 79 | + call $resolve-typeof/generic<~lib/string/String> |
| 80 | + global.get $~lib/memory/__stack_pointer |
| 81 | + i32.const 4 |
| 82 | + i32.add |
| 83 | + global.set $~lib/memory/__stack_pointer |
| 84 | + ) |
| 85 | +) |
0 commit comments