Skip to content

Commit 8a7dd4d

Browse files
authored
Remove handling unsupported opcodes in loader (#1464)
Remove handling opcode DROP_64/SELECT_64 in loader stage prepare_bytecode, as they are the modified opcodes of DROP/SELECT for optimization purpose, but not the opcodes defined by spec.
1 parent 6820af6 commit 8a7dd4d

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

core/iwasm/interpreter/wasm_loader.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7313,7 +7313,6 @@ wasm_loader_prepare_bytecode(WASMModule *module, WASMFunction *func,
73137313
}
73147314

73157315
case WASM_OP_DROP:
7316-
case WASM_OP_DROP_64:
73177316
{
73187317
BranchBlock *cur_block = loader_ctx->frame_csp - 1;
73197318
int32 available_stack_cell =
@@ -7381,7 +7380,6 @@ wasm_loader_prepare_bytecode(WASMModule *module, WASMFunction *func,
73817380
}
73827381

73837382
case WASM_OP_SELECT:
7384-
case WASM_OP_SELECT_64:
73857383
{
73867384
uint8 ref_type;
73877385
BranchBlock *cur_block = loader_ctx->frame_csp - 1;

core/iwasm/interpreter/wasm_mini_loader.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5519,7 +5519,6 @@ wasm_loader_prepare_bytecode(WASMModule *module, WASMFunction *func,
55195519
}
55205520

55215521
case WASM_OP_DROP:
5522-
case WASM_OP_DROP_64:
55235522
{
55245523
BranchBlock *cur_block = loader_ctx->frame_csp - 1;
55255524
int32 available_stack_cell =
@@ -5572,7 +5571,6 @@ wasm_loader_prepare_bytecode(WASMModule *module, WASMFunction *func,
55725571
}
55735572

55745573
case WASM_OP_SELECT:
5575-
case WASM_OP_SELECT_64:
55765574
{
55775575
uint8 ref_type;
55785576
BranchBlock *cur_block = loader_ctx->frame_csp - 1;

0 commit comments

Comments
 (0)