| Index: src/runtime/runtime-wasm.cc
|
| diff --git a/src/runtime/runtime-wasm.cc b/src/runtime/runtime-wasm.cc
|
| index 9f125c1345edb8d61db3ac4131904bd3e24328af..c01009b7a4775412cfd5204814644c5b1c19e984 100644
|
| --- a/src/runtime/runtime-wasm.cc
|
| +++ b/src/runtime/runtime-wasm.cc
|
| @@ -12,6 +12,7 @@
|
| #include "src/factory.h"
|
| #include "src/frames-inl.h"
|
| #include "src/objects-inl.h"
|
| +#include "src/trap-handler/trap-handler.h"
|
| #include "src/v8memory.h"
|
| #include "src/wasm/wasm-module.h"
|
| #include "src/wasm/wasm-objects.h"
|
| @@ -168,6 +169,16 @@ RUNTIME_FUNCTION(Runtime_WasmGetCaughtExceptionValue) {
|
| return exception;
|
| }
|
|
|
| +RUNTIME_FUNCTION(Runtime_SetThreadInWasm) {
|
| + trap_handler::SetThreadInWasm();
|
| + return isolate->heap()->undefined_value();
|
| +}
|
| +
|
| +RUNTIME_FUNCTION(Runtime_ClearThreadInWasm) {
|
| + trap_handler::ClearThreadInWasm();
|
| + return isolate->heap()->undefined_value();
|
| +}
|
| +
|
| RUNTIME_FUNCTION(Runtime_WasmRunInterpreter) {
|
| DCHECK_EQ(3, args.length());
|
| HandleScope scope(isolate);
|
|
|