|
| 1 | +(module |
| 2 | + (type $i32_=>_i32 (func (param i32) (result i32))) |
| 3 | + (type $none_=>_none (func)) |
| 4 | + (type $i32_=>_none (func (param i32))) |
| 5 | + (type $i32_i32_=>_i32 (func (param i32 i32) (result i32))) |
| 6 | + (memory $0 0) |
| 7 | + (table $0 1 funcref) |
| 8 | + (global $~lib/rt/stub/startOffset (mut i32) (i32.const 0)) |
| 9 | + (global $~lib/rt/stub/offset (mut i32) (i32.const 0)) |
| 10 | + (global $super-inline/foo (mut i32) (i32.const 0)) |
| 11 | + (global $super-inline/bar (mut i32) (i32.const 0)) |
| 12 | + (global $~lib/heap/__heap_base i32 (i32.const 8)) |
| 13 | + (export "memory" (memory $0)) |
| 14 | + (start $~start) |
| 15 | + (func $~lib/rt/stub/maybeGrowMemory (param $0 i32) |
| 16 | + (local $1 i32) |
| 17 | + (local $2 i32) |
| 18 | + (local $3 i32) |
| 19 | + (local $4 i32) |
| 20 | + (local $5 i32) |
| 21 | + memory.size |
| 22 | + local.set $1 |
| 23 | + local.get $1 |
| 24 | + i32.const 16 |
| 25 | + i32.shl |
| 26 | + local.set $2 |
| 27 | + local.get $0 |
| 28 | + local.get $2 |
| 29 | + i32.gt_u |
| 30 | + if |
| 31 | + local.get $0 |
| 32 | + local.get $2 |
| 33 | + i32.sub |
| 34 | + i32.const 65535 |
| 35 | + i32.add |
| 36 | + i32.const 65535 |
| 37 | + i32.const -1 |
| 38 | + i32.xor |
| 39 | + i32.and |
| 40 | + i32.const 16 |
| 41 | + i32.shr_u |
| 42 | + local.set $3 |
| 43 | + local.get $1 |
| 44 | + local.tee $4 |
| 45 | + local.get $3 |
| 46 | + local.tee $5 |
| 47 | + local.get $4 |
| 48 | + local.get $5 |
| 49 | + i32.gt_s |
| 50 | + select |
| 51 | + local.set $4 |
| 52 | + local.get $4 |
| 53 | + memory.grow |
| 54 | + i32.const 0 |
| 55 | + i32.lt_s |
| 56 | + if |
| 57 | + local.get $3 |
| 58 | + memory.grow |
| 59 | + i32.const 0 |
| 60 | + i32.lt_s |
| 61 | + if |
| 62 | + unreachable |
| 63 | + end |
| 64 | + end |
| 65 | + end |
| 66 | + local.get $0 |
| 67 | + global.set $~lib/rt/stub/offset |
| 68 | + ) |
| 69 | + (func $~lib/rt/stub/__alloc (param $0 i32) (param $1 i32) (result i32) |
| 70 | + (local $2 i32) |
| 71 | + (local $3 i32) |
| 72 | + (local $4 i32) |
| 73 | + (local $5 i32) |
| 74 | + (local $6 i32) |
| 75 | + local.get $0 |
| 76 | + i32.const 1073741808 |
| 77 | + i32.gt_u |
| 78 | + if |
| 79 | + unreachable |
| 80 | + end |
| 81 | + global.get $~lib/rt/stub/offset |
| 82 | + i32.const 16 |
| 83 | + i32.add |
| 84 | + local.set $2 |
| 85 | + local.get $0 |
| 86 | + i32.const 15 |
| 87 | + i32.add |
| 88 | + i32.const 15 |
| 89 | + i32.const -1 |
| 90 | + i32.xor |
| 91 | + i32.and |
| 92 | + local.tee $3 |
| 93 | + i32.const 16 |
| 94 | + local.tee $4 |
| 95 | + local.get $3 |
| 96 | + local.get $4 |
| 97 | + i32.gt_u |
| 98 | + select |
| 99 | + local.set $5 |
| 100 | + local.get $2 |
| 101 | + local.get $5 |
| 102 | + i32.add |
| 103 | + call $~lib/rt/stub/maybeGrowMemory |
| 104 | + local.get $2 |
| 105 | + i32.const 16 |
| 106 | + i32.sub |
| 107 | + local.set $6 |
| 108 | + local.get $6 |
| 109 | + local.get $5 |
| 110 | + i32.store |
| 111 | + i32.const 1 |
| 112 | + drop |
| 113 | + local.get $6 |
| 114 | + i32.const 1 |
| 115 | + i32.store offset=4 |
| 116 | + local.get $6 |
| 117 | + local.get $1 |
| 118 | + i32.store offset=8 |
| 119 | + local.get $6 |
| 120 | + local.get $0 |
| 121 | + i32.store offset=12 |
| 122 | + local.get $2 |
| 123 | + ) |
| 124 | + (func $~lib/rt/stub/__retain (param $0 i32) (result i32) |
| 125 | + local.get $0 |
| 126 | + ) |
| 127 | + (func $super-inline/Foo#constructor (param $0 i32) (result i32) |
| 128 | + local.get $0 |
| 129 | + i32.eqz |
| 130 | + if |
| 131 | + i32.const 0 |
| 132 | + i32.const 3 |
| 133 | + call $~lib/rt/stub/__alloc |
| 134 | + call $~lib/rt/stub/__retain |
| 135 | + local.set $0 |
| 136 | + end |
| 137 | + local.get $0 |
| 138 | + ) |
| 139 | + (func $super-inline/Foo#a (param $0 i32) (result i32) |
| 140 | + i32.const 1 |
| 141 | + ) |
| 142 | + (func $super-inline/Bar#constructor (param $0 i32) (result i32) |
| 143 | + local.get $0 |
| 144 | + i32.eqz |
| 145 | + if |
| 146 | + i32.const 0 |
| 147 | + i32.const 4 |
| 148 | + call $~lib/rt/stub/__alloc |
| 149 | + call $~lib/rt/stub/__retain |
| 150 | + local.set $0 |
| 151 | + end |
| 152 | + local.get $0 |
| 153 | + call $super-inline/Foo#constructor |
| 154 | + local.set $0 |
| 155 | + local.get $0 |
| 156 | + ) |
| 157 | + (func $super-inline/Bar#a (param $0 i32) (result i32) |
| 158 | + (local $1 i32) |
| 159 | + local.get $0 |
| 160 | + local.set $1 |
| 161 | + i32.const 1 |
| 162 | + ) |
| 163 | + (func $start:super-inline |
| 164 | + global.get $~lib/heap/__heap_base |
| 165 | + i32.const 15 |
| 166 | + i32.add |
| 167 | + i32.const 15 |
| 168 | + i32.const -1 |
| 169 | + i32.xor |
| 170 | + i32.and |
| 171 | + global.set $~lib/rt/stub/startOffset |
| 172 | + global.get $~lib/rt/stub/startOffset |
| 173 | + global.set $~lib/rt/stub/offset |
| 174 | + i32.const 0 |
| 175 | + call $super-inline/Foo#constructor |
| 176 | + global.set $super-inline/foo |
| 177 | + global.get $super-inline/foo |
| 178 | + call $super-inline/Foo#a@virtual |
| 179 | + drop |
| 180 | + i32.const 0 |
| 181 | + call $super-inline/Bar#constructor |
| 182 | + global.set $super-inline/bar |
| 183 | + global.get $super-inline/bar |
| 184 | + call $super-inline/Bar#a |
| 185 | + drop |
| 186 | + ) |
| 187 | + (func $~start |
| 188 | + call $start:super-inline |
| 189 | + ) |
| 190 | + (func $super-inline/Foo#a@virtual (param $0 i32) (result i32) |
| 191 | + (local $1 i32) |
| 192 | + block $default |
| 193 | + block $case0 |
| 194 | + local.get $0 |
| 195 | + i32.const 8 |
| 196 | + i32.sub |
| 197 | + i32.load |
| 198 | + local.set $1 |
| 199 | + local.get $1 |
| 200 | + i32.const 4 |
| 201 | + i32.eq |
| 202 | + br_if $case0 |
| 203 | + br $default |
| 204 | + end |
| 205 | + local.get $0 |
| 206 | + call $super-inline/Bar#a |
| 207 | + return |
| 208 | + end |
| 209 | + local.get $0 |
| 210 | + call $super-inline/Foo#a |
| 211 | + ) |
| 212 | +) |
0 commit comments