| Index: src/runtime/runtime-test.cc
|
| diff --git a/src/runtime/runtime-test.cc b/src/runtime/runtime-test.cc
|
| index 024c441b9315b7073a97c7c541cc46c5c105ab96..1c5d6554f3374f30fe55cabf92581f54e7d30ccf 100644
|
| --- a/src/runtime/runtime-test.cc
|
| +++ b/src/runtime/runtime-test.cc
|
| @@ -699,6 +699,13 @@ RUNTIME_FUNCTION(Runtime_IsAsmWasmCode) {
|
| return isolate->heap()->true_value();
|
| }
|
|
|
| +RUNTIME_FUNCTION(Runtime_IsWasmCode) {
|
| + SealHandleScope shs(isolate);
|
| + DCHECK_EQ(1, args.length());
|
| + CONVERT_ARG_CHECKED(JSFunction, function, 0);
|
| + bool is_js_to_wasm = function->code()->kind() == Code::JS_TO_WASM_FUNCTION;
|
| + return isolate->heap()->ToBoolean(is_js_to_wasm);
|
| +}
|
|
|
| #define ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(Name) \
|
| RUNTIME_FUNCTION(Runtime_Has##Name) { \
|
|
|