Index: src/runtime/runtime-test.cc |
diff --git a/src/runtime/runtime-test.cc b/src/runtime/runtime-test.cc |
index f5dc537b4518cfd3baed0a4d6dbf4bc07fd69c16..fdfa42a6af28e131f3a069969561f778eaa9b6c9 100644 |
--- a/src/runtime/runtime-test.cc |
+++ b/src/runtime/runtime-test.cc |
@@ -467,6 +467,14 @@ RUNTIME_FUNCTION(Runtime_HaveSameMap) { |
} |
+RUNTIME_FUNCTION(Runtime_InNewSpace) { |
+ SealHandleScope shs(isolate); |
+ DCHECK(args.length() == 1); |
+ CONVERT_ARG_CHECKED(Object, obj, 0); |
+ return isolate->heap()->ToBoolean(isolate->heap()->InNewSpace(obj)); |
+} |
+ |
+ |
#define ELEMENTS_KIND_CHECK_RUNTIME_FUNCTION(Name) \ |
RUNTIME_FUNCTION(Runtime_Has##Name) { \ |
CONVERT_ARG_CHECKED(JSObject, obj, 0); \ |