Skip to content

Commit

Permalink
Highlight Sign-extension operations in Gatekeeper
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Jun 19, 2023
1 parent 0739958 commit 4857fd2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/vm/src/wasm_backend/gatekeeper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,17 @@ impl FunctionMiddleware for FunctionGatekeeper {
| Operator::I64Rotl
| Operator::I64Rotr
| Operator::I32WrapI64
// Those are part of the MVP
// https://github.com/bytecodealliance/wasm-tools/blob/wasmparser-0.107.0/crates/wasmparser/src/lib.rs#L287-L288
| Operator::I64ExtendI32S
| Operator::I64ExtendI32U
// Sign-extension
// https://github.com/bytecodealliance/wasm-tools/blob/wasmparser-0.107.0/crates/wasmparser/src/lib.rs#L307-L311
| Operator::I32Extend8S
| Operator::I32Extend16S
| Operator::I64Extend8S
| Operator::I64Extend16S
| Operator::I64ExtendI32S
| Operator::I64Extend32S
| Operator::I64ExtendI32U => {
| Operator::I64Extend32S => {
state.push_operator(operator);
Ok(())
}
Expand Down

0 comments on commit 4857fd2

Please sign in to comment.