Commit 97c95a2
authored
Fix table idx resolving in op call_indirect/return_call_indirect (#3726)
The table index in the call_indirect/return_call_indirect opcode should be
one byte 0x00 when ref-types/GC isn't enabled, and should be treated as
leb u32 when ref-types/GC is enabled.
And make aot compiler bail out if ref-types/GC is disabled by command line
argument while ref-types instructions are used.1 parent 88caa0c commit 97c95a2
File tree
4 files changed
+30
-8
lines changed- core/iwasm
- compilation
- interpreter
4 files changed
+30
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3108 | 3108 | | |
3109 | 3109 | | |
3110 | 3110 | | |
| 3111 | + | |
| 3112 | + | |
| 3113 | + | |
| 3114 | + | |
| 3115 | + | |
| 3116 | + | |
| 3117 | + | |
| 3118 | + | |
| 3119 | + | |
| 3120 | + | |
3111 | 3121 | | |
3112 | 3122 | | |
3113 | 3123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2281 | 2281 | | |
2282 | 2282 | | |
2283 | 2283 | | |
| 2284 | + | |
| 2285 | + | |
2284 | 2286 | | |
| 2287 | + | |
| 2288 | + | |
| 2289 | + | |
| 2290 | + | |
2285 | 2291 | | |
| 2292 | + | |
2286 | 2293 | | |
2287 | 2294 | | |
2288 | 2295 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7149 | 7149 | | |
7150 | 7150 | | |
7151 | 7151 | | |
7152 | | - | |
7153 | | - | |
7154 | | - | |
| 7152 | + | |
7155 | 7153 | | |
| 7154 | + | |
| 7155 | + | |
7156 | 7156 | | |
7157 | 7157 | | |
7158 | 7158 | | |
| |||
12005 | 12005 | | |
12006 | 12006 | | |
12007 | 12007 | | |
12008 | | - | |
12009 | | - | |
12010 | | - | |
12011 | | - | |
| 12008 | + | |
| 12009 | + | |
| 12010 | + | |
| 12011 | + | |
| 12012 | + | |
| 12013 | + | |
12012 | 12014 | | |
12013 | 12015 | | |
12014 | 12016 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3501 | 3501 | | |
3502 | 3502 | | |
3503 | 3503 | | |
3504 | | - | |
| 3504 | + | |
| 3505 | + | |
| 3506 | + | |
3505 | 3507 | | |
| 3508 | + | |
3506 | 3509 | | |
3507 | 3510 | | |
3508 | 3511 | | |
| |||
0 commit comments