Index: src/runtime/runtime-object.cc |
diff --git a/src/runtime/runtime-object.cc b/src/runtime/runtime-object.cc |
index de4e81248866601bad2a4f25dfdf237330c7a272..be63826b17f5fb4722366d4ce735398cb9cd7348 100644 |
--- a/src/runtime/runtime-object.cc |
+++ b/src/runtime/runtime-object.cc |
@@ -1591,5 +1591,14 @@ RUNTIME_FUNCTION(RuntimeReference_ClassOf) { |
if (!obj->IsJSReceiver()) return isolate->heap()->null_value(); |
return JSReceiver::cast(obj)->class_name(); |
} |
+ |
+ |
+RUNTIME_FUNCTION(RuntimeReference_HasFastPackedElements) { |
+ SealHandleScope shs(isolate); |
+ DCHECK(args.length() == 1); |
+ CONVERT_ARG_CHECKED(HeapObject, obj, 0); |
+ return isolate->heap()->ToBoolean( |
+ IsFastPackedElementsKind(obj->map()->elements_kind())); |
+} |
} |
} // namespace v8::internal |