Commit e2aae12a authored by Jakob Kummerow's avatar Jakob Kummerow Committed by Commit Bot

[wasm][test] Update mjsunit WasmModuleBuilder

This brings the WasmModuleBuilder in the mjsunit test suite
up to date wrt. the latest changes of the GC proposal.

Bug: v8:7748
Change-Id: I4e1a3d34a1e83626ab89d2fa0e10ca4aa61d75ea
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2690590
Commit-Queue: Jakob Kummerow <jkummerow@chromium.org>
Auto-Submit: Jakob Kummerow <jkummerow@chromium.org>
Reviewed-by: 's avatarManos Koukoutos <manoskouk@chromium.org>
Cr-Commit-Position: refs/heads/master@{#73496}
parent d16eefe0
......@@ -120,10 +120,15 @@ function wasmRefType(index) {
return {opcode: kWasmRef, index: index};
}
let kWasmI31Ref = 0x6a;
let kWasmRtt = 0x69;
let kWasmRttWithDepth = 0x69;
function wasmRtt(index, depth) {
return {opcode: kWasmRtt, index: index, depth: depth};
return { opcode: kWasmRttWithDepth, index: index, depth: depth };
}
let kWasmRtt = 0x68;
function wasmRttNoDepth(index) {
return { opcode: kWasmRtt, index: index };
}
let kWasmDataRef = 0x67;
let kExternalFunction = 0;
let kExternalTable = 1;
......@@ -404,7 +409,10 @@ const kWasmOpcodes = {
'I64SExtendI32': 0xc4,
'RefNull': 0xd0,
'RefIsNull': 0xd1,
'RefFunc': 0xd2
'RefFunc': 0xd2,
'RefAsNonNull': 0xd3,
'BrOnNull': 0xd4,
'RefEq': 0xd5,
};
function defineWasmOpcode(name, value) {
......@@ -455,6 +463,15 @@ let kExprRttSub = 0x31;
let kExprRefTest = 0x40;
let kExprRefCast = 0x41;
let kExprBrOnCast = 0x42;
let kExprRefIsFunc = 0x50;
let kExprRefIsData = 0x51;
let kExprRefIsI31 = 0x52;
let kExprRefAsFunc = 0x58;
let kExprRefAsData = 0x59;
let kExprRefAsI31 = 0x5a;
let kExprBrOnFunc = 0x60;
let kExprBrOnData = 0x61;
let kExprBrOnI31 = 0x62;
// Numeric opcodes.
let kExprI32SConvertSatF32 = 0x00;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment