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

Unified Diff: src/wasm/wasm-opcodes.h

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: src/wasm/wasm-opcodes.h
diff --git a/src/wasm/wasm-opcodes.h b/src/wasm/wasm-opcodes.h
index b4aaed130c50075d46ee91997d3177ea787a705f..124240fad39efaf8bcfc6ac9ad9d405ab1cb1dd1 100644
--- a/src/wasm/wasm-opcodes.h
+++ b/src/wasm/wasm-opcodes.h
@@ -406,6 +406,9 @@ const WasmCodePosition kNoCodePosition = -1;
V(S128Xor, 0xe578, s_ss) \
V(S128Not, 0xe579, s_s)
+// For enabling JIT functionality
+#define FOREACH_JIT_OPCODE(V) V(JITSingleFunction, 0xf0, _)
+
// All opcodes.
#define FOREACH_OPCODE(V) \
FOREACH_CONTROL_OPCODE(V) \
@@ -416,7 +419,8 @@ const WasmCodePosition kNoCodePosition = -1;
FOREACH_LOAD_MEM_OPCODE(V) \
FOREACH_MISC_MEM_OPCODE(V) \
FOREACH_ASMJS_COMPAT_OPCODE(V) \
- FOREACH_SIMD_OPCODE(V)
+ FOREACH_SIMD_OPCODE(V) \
+ FOREACH_JIT_OPCODE(V)
// All signatures.
#define FOREACH_SIGNATURE(V) \
@@ -478,7 +482,8 @@ enum WasmOpcode {
V(TrapFloatUnrepresentable) \
V(TrapFuncInvalid) \
V(TrapFuncSigMismatch) \
- V(TrapMemAllocationFail)
+ V(TrapMemAllocationFail) \
+ V(TrapInvalidIndex)
enum TrapReason {
#define DECLARE_ENUM(name) k##name,

Powered by Google App Engine
This is Rietveld 408576698