|
93 | 93 | (call $attach_tree_ro_table_0 (table.get $ro_table_0 (i32.const 2))) |
94 | 94 |
|
95 | 95 | ;; check if the tag was authored by us |
96 | | - (call $equality (local.get $compile) (table.get $ro_table_0 (i32.const 1))) |
| 96 | + (call $equality (local.get $compile) (table.get $ro_table_0 (i32.const 0))) |
97 | 97 |
|
98 | 98 | (if (result externref) |
99 | 99 | (then |
|
102 | 102 |
|
103 | 103 | ;; zoom into the boot toolchain tree |
104 | 104 | ;; this contains: [wasm2c, cc, ld, system_deps, clang_deps, map] |
105 | | - (call $attach_tree_ro_table_0 (table.get $ro_table_0 (i32.const 0))) |
| 105 | + (call $attach_tree_ro_table_0 (table.get $ro_table_0 (i32.const 1))) |
106 | 106 | (local.set $wasm2c (table.get $ro_table_0 (i32.const 0))) |
107 | 107 | (local.set $cc (table.get $ro_table_0 (i32.const 1))) |
108 | 108 | (local.set $ld (table.get $ro_table_0 (i32.const 2))) |
|
263 | 263 | ;; Attach the Tag |
264 | 264 | (call $attach_tree_ro_table_0 (local.get $input)) |
265 | 265 | ;; check if the tag was authored by us |
266 | | - (call $equality (local.get $compile) (table.get $ro_table_0 (i32.const 1))) |
| 266 | + (call $equality (local.get $compile) (table.get $ro_table_0 (i32.const 0))) |
267 | 267 | (if |
268 | 268 | (then |
269 | 269 | ;; Created by compile |
|
276 | 276 |
|
277 | 277 | ;; The tag we created contains a tag created by some step in the process; |
278 | 278 | ;; we need to ensure that's an "Okay" tag. |
279 | | - (local.set $result (table.get $ro_table_0 (i32.const 0))) |
| 279 | + (local.set $result (table.get $ro_table_0 (i32.const 1))) |
280 | 280 | (call $attach_tree_ro_table_0 (local.get $result)) |
281 | 281 | (call $equality |
282 | 282 | (call $create_blob_rw_mem_4 (i32.const 4)) |
|
287 | 287 | ) |
288 | 288 | (else |
289 | 289 | ;; Not valid, tag the object as Error |
290 | | - (call $error_not_runnable (table.get $ro_table_0 (i32.const 0))) |
| 290 | + (call $error_not_runnable (table.get $ro_table_0 (i32.const 1))) |
291 | 291 | (return))) |
292 | 292 | ;; Valid, tag the object as Runnable |
293 | | - (call $tag_runnable (table.get $ro_table_0 (i32.const 0))) |
| 293 | + (call $tag_runnable (table.get $ro_table_0 (i32.const 1))) |
294 | 294 | ) |
295 | 295 | ) |
0 commit comments