Index: test/mjsunit/wasm/wasm-constants.js |
diff --git a/test/mjsunit/wasm/wasm-constants.js b/test/mjsunit/wasm/wasm-constants.js |
index ead2769b8cb9d904817b483793b2d7202462e7ab..81a2a155cb754c2f52f321db7e2e94a444dc7263 100644 |
--- a/test/mjsunit/wasm/wasm-constants.js |
+++ b/test/mjsunit/wasm/wasm-constants.js |
@@ -65,6 +65,11 @@ var kDeclFunctionSignatures = 0x0a; |
var kDeclFunctionBodies = 0x0b; |
var kDeclNames = 0x0c; |
+var kArity0 = 0; |
+var kArity1 = 1; |
+var kArity2 = 2; |
+var kArity3 = 3; |
+ |
var section_names = [ |
"memory", "signatures", "functions", "globals", "data_segments", |
"function_table", "end", "start_function", "import_table", "export_table", |
@@ -88,26 +93,27 @@ var kExprNop = 0x00; |
var kExprBlock = 0x01; |
var kExprLoop = 0x02; |
var kExprIf = 0x03; |
-var kExprIfElse = 0x04; |
+var kExprElse = 0x04; |
var kExprSelect = 0x05; |
var kExprBr = 0x06; |
var kExprBrIf = 0x07; |
-var kExprTableSwitch = 0x08; |
-var kExprReturn = 0x14; |
-var kExprUnreachable = 0x15; |
+var kExprBrTable = 0x08; |
+var kExprReturn = 0x09; |
+var kExprUnreachable = 0x0a; |
+var kExprEnd = 0x0f; |
-var kExprI8Const = 0x09; |
-var kExprI32Const = 0x0a; |
-var kExprI64Const = 0x0b; |
-var kExprF64Const = 0x0c; |
-var kExprF32Const = 0x0d; |
-var kExprGetLocal = 0x0e; |
-var kExprSetLocal = 0x0f; |
-var kExprLoadGlobal = 0x10; |
-var kExprStoreGlobal = 0x11; |
-var kExprCallFunction = 0x12; |
-var kExprCallIndirect = 0x13; |
-var kExprCallImport = 0x1F; |
+var kExprI32Const = 0x10; |
+var kExprI64Const = 0x11; |
+var kExprF64Const = 0x12; |
+var kExprF32Const = 0x13; |
+var kExprGetLocal = 0x14; |
+var kExprSetLocal = 0x15; |
+var kExprCallFunction = 0x16; |
+var kExprCallIndirect = 0x17; |
+var kExprCallImport = 0x18; |
+var kExprI8Const = 0xcb; |
+var kExprLoadGlobal = 0xcc; |
+var kExprStoreGlobal = 0xcd; |
var kExprI32LoadMem8S = 0x20; |
var kExprI32LoadMem8U = 0x21; |