Index: src/assembler.h |
diff --git a/src/assembler.h b/src/assembler.h |
index 91d2e463b153da0d68c477ca0c1823c540383dad..284362e5574226e8d52194cc8e7424b309e96a26 100644 |
--- a/src/assembler.h |
+++ b/src/assembler.h |
@@ -324,6 +324,7 @@ class RelocInfo { |
WASM_GLOBAL_REFERENCE, |
WASM_MEMORY_SIZE_REFERENCE, |
WASM_FUNCTION_TABLE_SIZE_REFERENCE, |
+ WASM_PROTECTED_INSTRUCTION_LANDING, |
CELL, |
// Everything after runtime_entry (inclusive) is not GC'ed. |
@@ -474,6 +475,9 @@ class RelocInfo { |
static inline bool IsWasmPtrReference(Mode mode) { |
return mode == WASM_MEMORY_REFERENCE || mode == WASM_GLOBAL_REFERENCE; |
} |
+ static inline bool IsWasmProtectedLanding(Mode mode) { |
+ return mode == WASM_PROTECTED_INSTRUCTION_LANDING; |
+ } |
static inline int ModeMask(Mode mode) { return 1 << mode; } |