Skip to content

Commit

Permalink
Remove handling unsupported opcodes in loader (#1464)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
wenyongh authored Sep 8, 2022
1 parent 6820af6 commit 8a7dd4d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions core/iwasm/interpreter/wasm_loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -7313,7 +7313,6 @@ wasm_loader_prepare_bytecode(WASMModule *module, WASMFunction *func,
}

case WASM_OP_DROP:
case WASM_OP_DROP_64:
{
BranchBlock *cur_block = loader_ctx->frame_csp - 1;
int32 available_stack_cell =
Expand Down Expand Up @@ -7381,7 +7380,6 @@ wasm_loader_prepare_bytecode(WASMModule *module, WASMFunction *func,
}

case WASM_OP_SELECT:
case WASM_OP_SELECT_64:
{
uint8 ref_type;
BranchBlock *cur_block = loader_ctx->frame_csp - 1;
Expand Down
2 changes: 0 additions & 2 deletions core/iwasm/interpreter/wasm_mini_loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -5519,7 +5519,6 @@ wasm_loader_prepare_bytecode(WASMModule *module, WASMFunction *func,
}

case WASM_OP_DROP:
case WASM_OP_DROP_64:
{
BranchBlock *cur_block = loader_ctx->frame_csp - 1;
int32 available_stack_cell =
Expand Down Expand Up @@ -5572,7 +5571,6 @@ wasm_loader_prepare_bytecode(WASMModule *module, WASMFunction *func,
}

case WASM_OP_SELECT:
case WASM_OP_SELECT_64:
{
uint8 ref_type;
BranchBlock *cur_block = loader_ctx->frame_csp - 1;
Expand Down

0 comments on commit 8a7dd4d

Please sign in to comment.