Index: src/runtime/runtime-object.cc |
diff --git a/src/runtime/runtime-object.cc b/src/runtime/runtime-object.cc |
index ca35c102fd257e0922405d767ab1448052d4a832..e4478b7b44cd293d124510d3291eeefea6731fd9 100644 |
--- a/src/runtime/runtime-object.cc |
+++ b/src/runtime/runtime-object.cc |
@@ -1518,6 +1518,15 @@ RUNTIME_FUNCTION(Runtime_IsSpecObject) { |
} |
+RUNTIME_FUNCTION(Runtime_IsStrong) { |
+ SealHandleScope shs(isolate); |
+ DCHECK(args.length() == 1); |
+ CONVERT_ARG_CHECKED(Object, obj, 0); |
+ return isolate->heap()->ToBoolean(obj->IsJSReceiver() && |
+ JSReceiver::cast(obj)->map()->is_strong()); |
+} |
+ |
+ |
RUNTIME_FUNCTION(Runtime_ClassOf) { |
SealHandleScope shs(isolate); |
DCHECK(args.length() == 1); |