Skip to content

Commit

Permalink
Merge pull request #1147 from pi0/fix/narrow-width
Browse files Browse the repository at this point in the history
add narrow-width integer sign bytes for helper-wasm-bytecode
  • Loading branch information
xtuc committed Mar 13, 2024
2 parents daf8b9e + 60325e1 commit 2578360
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/helper-wasm-bytecode/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,12 @@ const symbolsByByte = {
0xbe: createSymbolObject("reinterpret/i32", "f32"),
0xbf: createSymbolObject("reinterpret/i64", "f64"),

0xc0: createSymbolObject("extend8_s", "i32"),
0xc1: createSymbolObject("extend16_s", "i32"),
0xc2: createSymbolObject("extend8_s", "i64"),
0xc3: createSymbolObject("extend16_s", "i64"),
0xc4: createSymbolObject("extend32_s", "i64"),

// Atomic Memory Instructions
0xfe00: createSymbol("memory.atomic.notify", 1),
0xfe01: createSymbol("memory.atomic.wait32", 1),
Expand Down

0 comments on commit 2578360

Please sign in to comment.