Index: src/builtins.cc |
diff --git a/src/builtins.cc b/src/builtins.cc |
index 23f7bdb1d95c82fb1cb8524cdbf7d3ba02f261e8..5104f6d0d144e98eb6343003df40d9f02662ed7e 100644 |
--- a/src/builtins.cc |
+++ b/src/builtins.cc |
@@ -660,7 +660,7 @@ BUILTIN(ArraySlice) { |
int len = -1; |
if (receiver->IsJSArray()) { |
JSArray* array = JSArray::cast(receiver); |
- if (!array->HasFastElements() || |
+ if (!array->HasFastTypeElements() || |
!IsJSArrayFastElementMovingAllowed(heap, array)) { |
return CallJsBuiltin(isolate, "ArraySlice", args); |
} |
@@ -676,7 +676,7 @@ BUILTIN(ArraySlice) { |
bool is_arguments_object_with_fast_elements = |
receiver->IsJSObject() |
&& JSObject::cast(receiver)->map() == arguments_map |
- && JSObject::cast(receiver)->HasFastElements(); |
+ && JSObject::cast(receiver)->HasFastTypeElements(); |
if (!is_arguments_object_with_fast_elements) { |
return CallJsBuiltin(isolate, "ArraySlice", args); |
} |
@@ -963,7 +963,7 @@ BUILTIN(ArrayConcat) { |
int result_len = 0; |
for (int i = 0; i < n_arguments; i++) { |
Object* arg = args[i]; |
- if (!arg->IsJSArray() || !JSArray::cast(arg)->HasFastElements() |
+ if (!arg->IsJSArray() || !JSArray::cast(arg)->HasFastTypeElements() |
|| JSArray::cast(arg)->GetPrototype() != array_proto) { |
return CallJsBuiltin(isolate, "ArrayConcat", args); |
} |