Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2114)

Unified Diff: test/mjsunit/wasm/wasm-constants.js

Issue 2137993003: [wasm] Adding feature to JIT a wasm function at runtime and hook up the compiled code into the indi… (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixing unit test- Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/mjsunit/wasm/wasm-constants.js
diff --git a/test/mjsunit/wasm/wasm-constants.js b/test/mjsunit/wasm/wasm-constants.js
index 5f0abb8325b082f17340825ad625eeea4886d750..952ed01452f2db67267aa9ae1e50d18216177ffe 100644
--- a/test/mjsunit/wasm/wasm-constants.js
+++ b/test/mjsunit/wasm/wasm-constants.js
@@ -304,6 +304,8 @@ var kExprI32Rol = 0xb7;
var kExprI64Ror = 0xb8;
var kExprI64Rol = 0xb9;
+var kExprJITSingleFunction = 0xf0;
+
var kTrapUnreachable = 0;
var kTrapMemOutOfBounds = 1;
var kTrapDivByZero = 2;
@@ -313,6 +315,7 @@ var kTrapFloatUnrepresentable = 5;
var kTrapFuncInvalid = 6;
var kTrapFuncSigMismatch = 7;
var kTrapMemAllocationFail = 8;
+var kTrapInvalidIndex = 9;
var kTrapMsgs = [
"unreachable",
@@ -323,7 +326,8 @@ var kTrapMsgs = [
"integer result unrepresentable",
"invalid function",
"function signature mismatch",
- "failed to allocate memory"
+ "failed to allocate memory",
+ "invalid index into function table"
];
function assertTraps(trap, code) {
« test/mjsunit/wasm/jit-single-function.js ('K') | « test/mjsunit/wasm/jit-single-function.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698