Index: src/runtime/runtime-object.cc |
diff --git a/src/runtime/runtime-object.cc b/src/runtime/runtime-object.cc |
index de4e81248866601bad2a4f25dfdf237330c7a272..f8c2916e8ad2c0708bbafcfe4d8735f274042531 100644 |
--- a/src/runtime/runtime-object.cc |
+++ b/src/runtime/runtime-object.cc |
@@ -1524,6 +1524,15 @@ RUNTIME_FUNCTION(Runtime_GetDataProperty) { |
} |
+RUNTIME_FUNCTION(Runtime_HasFastPackedElements) { |
+ SealHandleScope shs(isolate); |
+ DCHECK(args.length() == 1); |
+ CONVERT_ARG_CHECKED(HeapObject, obj, 0); |
+ return isolate->heap()->ToBoolean( |
+ IsFastPackedElementsKind(obj->map()->elements_kind())); |
+} |
+ |
+ |
RUNTIME_FUNCTION(RuntimeReference_ValueOf) { |
SealHandleScope shs(isolate); |
DCHECK(args.length() == 1); |