Skip to content

Commit

Permalink
Replace some reserved opcodes
Browse files Browse the repository at this point in the history
  • Loading branch information
jedel1043 committed Jun 2, 2023
1 parent 3e20142 commit d96cdb6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
4 changes: 1 addition & 3 deletions boa_engine/src/vm/code_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -617,9 +617,7 @@ impl CodeBlock {
| Opcode::Reserved50
| Opcode::Reserved51
| Opcode::Reserved52
| Opcode::Reserved53
| Opcode::Reserved54
| Opcode::Reserved55 => unreachable!("Reserved opcodes are unrechable"),
| Opcode::Reserved53 => unreachable!("Reserved opcodes are unrechable"),
}
}
}
Expand Down
4 changes: 1 addition & 3 deletions boa_engine/src/vm/flowgraph/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -714,9 +714,7 @@ impl CodeBlock {
| Opcode::Reserved50
| Opcode::Reserved51
| Opcode::Reserved52
| Opcode::Reserved53
| Opcode::Reserved54
| Opcode::Reserved55 => unreachable!("Reserved opcodes are unrechable"),
| Opcode::Reserved53 => unreachable!("Reserved opcodes are unrechable"),
}
}

Expand Down
4 changes: 0 additions & 4 deletions boa_engine/src/vm/opcode/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1807,10 +1807,6 @@ generate_impl! {
Reserved52 => Reserved,
/// Reserved [`Opcode`].
Reserved53 => Reserved,
/// Reserved [`Opcode`].
Reserved54 => Reserved,
/// Reserved [`Opcode`].
Reserved55 => Reserved,
}
}

Expand Down

0 comments on commit d96cdb6

Please sign in to comment.