diff --git a/src/wasm/wasm-constants.h b/src/wasm/wasm-constants.h index 1d67759fc7..ccd4bd042a 100644 --- a/src/wasm/wasm-constants.h +++ b/src/wasm/wasm-constants.h @@ -50,10 +50,10 @@ enum ValueTypeCode : uint8_t { kRttCode = 0x68, kDataRefCode = 0x67, kArrayRefCode = 0x66, - kStringRefCode = 0x65, - kStringViewWtf8Code = 0x64, - kStringViewWtf16Code = 0x63, - kStringViewIterCode = 0x62, + kStringRefCode = 0x64, + kStringViewWtf8Code = 0x63, + kStringViewWtf16Code = 0x62, + kStringViewIterCode = 0x61, }; // Binary encoding of type definitions. diff --git a/test/mjsunit/wasm/wasm-module-builder.js b/test/mjsunit/wasm/wasm-module-builder.js index 1d575f1ebe..a51a5d7e36 100644 --- a/test/mjsunit/wasm/wasm-module-builder.js +++ b/test/mjsunit/wasm/wasm-module-builder.js @@ -128,10 +128,10 @@ let kWasmEqRef = -0x13; let kWasmI31Ref = -0x16; let kWasmDataRef = -0x19; let kWasmArrayRef = -0x1a; -let kWasmStringRef = -0x1b; -let kWasmStringViewWtf8 = -0x1c; -let kWasmStringViewWtf16 = -0x1d; -let kWasmStringViewIter = -0x1e; +let kWasmStringRef = -0x1c; +let kWasmStringViewWtf8 = -0x1d; +let kWasmStringViewWtf16 = -0x1e; +let kWasmStringViewIter = -0x1f; // Use the positive-byte versions inside function bodies. let kLeb128Mask = 0x7f;