Skip to content

Commit

Permalink
Merge pull request #1734 from CosmWasm/highlight-Sign-extension-ops
Browse files Browse the repository at this point in the history
Highlight Sign-extension operations in Gatekeeper
  • Loading branch information
webmaster128 authored Jun 19, 2023
2 parents 0739958 + 4857fd2 commit 1e0a914
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 1e0a914

Please sign in to comment.