Index: src/runtime/runtime.h |
diff --git a/src/runtime/runtime.h b/src/runtime/runtime.h |
index c0cbdde10f22c320a1ce8bda04dcc884868c431c..71663e119df5c51d6131a5fe98409ebbdd159278 100644 |
--- a/src/runtime/runtime.h |
+++ b/src/runtime/runtime.h |
@@ -926,13 +926,21 @@ namespace internal { |
F(IsSharedIntegerTypedArray, 1, 1) \ |
F(IsSharedInteger32TypedArray, 1, 1) |
-#define FOR_EACH_INTRINSIC_WASM(F) \ |
- F(WasmGrowMemory, 1, 1) \ |
- F(WasmMemorySize, 0, 1) \ |
- F(ThrowWasmError, 2, 1) \ |
- F(WasmThrowTypeError, 0, 1) \ |
- F(WasmThrow, 2, 1) \ |
- F(WasmGetCaughtExceptionValue, 1, 1) |
+#define FOR_EACH_INTRINSIC_WASM(F) \ |
+ F(WasmGrowMemory, 1, 1) \ |
+ F(WasmMemorySize, 0, 1) \ |
+ F(ThrowWasmError, 2, 1) \ |
+ F(WasmThrowTypeError, 0, 1) \ |
+ F(WasmThrow, 2, 1) \ |
+ F(WasmGetCaughtExceptionValue, 1, 1) \ |
+ F(ThrowWasmTrapUnreachable, 0, 1) \ |
titzer
2016/12/12 14:21:34
"ThrowWasmTrap" is kind of an odd phrase.
What abo
ahaas
2016/12/13 12:38:59
In the macro in wasm-opcodes.h the trap names have
|
+ F(ThrowWasmTrapMemOutOfBounds, 0, 1) \ |
+ F(ThrowWasmTrapDivByZero, 0, 1) \ |
+ F(ThrowWasmTrapDivUnrepresentable, 0, 1) \ |
+ F(ThrowWasmTrapRemByZero, 0, 1) \ |
+ F(ThrowWasmTrapFloatUnrepresentable, 0, 1) \ |
+ F(ThrowWasmTrapFuncInvalid, 0, 1) \ |
+ F(ThrowWasmTrapFuncSigMismatch, 0, 1) |
#define FOR_EACH_INTRINSIC_RETURN_PAIR(F) \ |
F(LoadLookupSlotForCall, 1, 2) |
@@ -1016,14 +1024,13 @@ FOR_EACH_INTRINSIC_RETURN_OBJECT(F) |
class Runtime : public AllStatic { |
public: |
- enum FunctionId { |
+ enum FunctionId : int32_t { |
#define F(name, nargs, ressize) k##name, |
#define I(name, nargs, ressize) kInline##name, |
- FOR_EACH_INTRINSIC(F) |
- FOR_EACH_INTRINSIC(I) |
+ FOR_EACH_INTRINSIC(F) FOR_EACH_INTRINSIC(I) |
#undef I |
#undef F |
- kNumFunctions, |
+ kNumFunctions, |
}; |
enum IntrinsicType { RUNTIME, INLINE }; |