Index: src/wasm/wasm-opcodes.h |
diff --git a/src/wasm/wasm-opcodes.h b/src/wasm/wasm-opcodes.h |
index 35a66648084d5c46503314ce9bbed56d80ad3b6d..3129c4ccf3960b0bf994eb1f0abea3c0f0905217 100644 |
--- a/src/wasm/wasm-opcodes.h |
+++ b/src/wasm/wasm-opcodes.h |
@@ -512,8 +512,7 @@ enum WasmOpcode { |
V(TrapRemByZero) \ |
V(TrapFloatUnrepresentable) \ |
V(TrapFuncInvalid) \ |
- V(TrapFuncSigMismatch) \ |
- V(TrapInvalidIndex) |
+ V(TrapFuncSigMismatch) |
enum TrapReason { |
#define DECLARE_ENUM(name) k##name, |
@@ -534,6 +533,7 @@ class V8_EXPORT_PRIVATE WasmOpcodes { |
static int TrapReasonToMessageId(TrapReason reason); |
static const char* TrapReasonMessage(TrapReason reason); |
+ static int32_t TrapReasonToFunctionId(TrapReason reason); |
static byte MemSize(MachineType type) { |
return 1 << ElementSizeLog2Of(type.representation()); |