Skip to content

Commit

Permalink
feat(helper-wasm-bytecode): add narrow-width integer sign bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jan 16, 2024
1 parent daf8b9e commit 60325e1
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 60325e1

Please sign in to comment.