| Index: src/runtime/runtime-array.cc
|
| diff --git a/src/runtime/runtime-array.cc b/src/runtime/runtime-array.cc
|
| index 1617245daf3206fce4638c57e388f88c226f7f8a..273a3fac1e3c8f17494eafba4227c6a1d6cf626f 100644
|
| --- a/src/runtime/runtime-array.cc
|
| +++ b/src/runtime/runtime-array.cc
|
| @@ -295,7 +295,8 @@ static uint32_t EstimateElementCount(Handle<JSArray> array) {
|
| }
|
| break;
|
| }
|
| - case SLOPPY_ARGUMENTS_ELEMENTS:
|
| + case FAST_SLOPPY_ARGUMENTS_ELEMENTS:
|
| + case SLOW_SLOPPY_ARGUMENTS_ELEMENTS:
|
| #define TYPED_ARRAY_CASE(Type, type, TYPE, ctype, size) \
|
| case EXTERNAL_##TYPE##_ELEMENTS: \
|
| case TYPE##_ELEMENTS:
|
| @@ -436,7 +437,8 @@ static void CollectElementIndices(Handle<JSObject> object, uint32_t range,
|
| if (length == range) return; // All indices accounted for already.
|
| break;
|
| }
|
| - case SLOPPY_ARGUMENTS_ELEMENTS: {
|
| + case FAST_SLOPPY_ARGUMENTS_ELEMENTS:
|
| + case SLOW_SLOPPY_ARGUMENTS_ELEMENTS: {
|
| MaybeHandle<Object> length_obj =
|
| Object::GetProperty(object, isolate->factory()->length_string());
|
| double length_num = length_obj.ToHandleChecked()->Number();
|
| @@ -706,7 +708,8 @@ static bool IterateElements(Isolate* isolate, Handle<JSObject> receiver,
|
| isolate, receiver, false, false, visitor);
|
| break;
|
| }
|
| - case SLOPPY_ARGUMENTS_ELEMENTS: {
|
| + case FAST_SLOPPY_ARGUMENTS_ELEMENTS:
|
| + case SLOW_SLOPPY_ARGUMENTS_ELEMENTS: {
|
| for (uint32_t index = 0; index < length; index++) {
|
| HandleScope loop_scope(isolate);
|
| Handle<Object> element;
|
|
|