Index: src/runtime/runtime-wasm.cc |
diff --git a/src/runtime/runtime-wasm.cc b/src/runtime/runtime-wasm.cc |
index b4b62a16df89e96a0b4ad518775e21f5dd0e3080..b966edf65bef1a193d4133563f1cedfee7981205 100644 |
--- a/src/runtime/runtime-wasm.cc |
+++ b/src/runtime/runtime-wasm.cc |
@@ -136,6 +136,14 @@ RUNTIME_FUNCTION(Runtime_ThrowWasmError) { |
return ThrowRuntimeError(isolate, message_id, byte_offset, true); |
} |
+RUNTIME_FUNCTION(Runtime_ThrowWasmStackOverflow) { |
+ SealHandleScope shs(isolate); |
+ DCHECK_LE(0, args.length()); |
+ DCHECK_NULL(isolate->context()); |
+ isolate->set_context(GetWasmContextOnStackTop(isolate)); |
+ return isolate->StackOverflow(); |
+} |
+ |
RUNTIME_FUNCTION(Runtime_WasmThrowTypeError) { |
HandleScope scope(isolate); |
DCHECK_EQ(0, args.length()); |