| Index: src/runtime.cc
|
| diff --git a/src/runtime.cc b/src/runtime.cc
|
| index 960d9b3d6431b90cfa2406abe8008cf657284687..f8c1e898c10aa13523802c65d25e2dc475da27c0 100644
|
| --- a/src/runtime.cc
|
| +++ b/src/runtime.cc
|
| @@ -436,7 +436,7 @@ MaybeHandle<Object> Runtime::CreateArrayLiteralBoilerplate(
|
| }
|
| }
|
|
|
| - object->ValidateElements();
|
| + JSObject::ValidateElements(object);
|
| return object;
|
| }
|
|
|
| @@ -5301,7 +5301,7 @@ MaybeHandle<Object> Runtime::SetObjectProperty(Isolate* isolate,
|
| return value;
|
| }
|
|
|
| - js_object->ValidateElements();
|
| + JSObject::ValidateElements(js_object);
|
| if (js_object->HasExternalArrayElements() ||
|
| js_object->HasFixedTypedArrayElements()) {
|
| if (!value->IsNumber() && !value->IsUndefined()) {
|
| @@ -5316,7 +5316,7 @@ MaybeHandle<Object> Runtime::SetObjectProperty(Isolate* isolate,
|
| strict_mode,
|
| true,
|
| set_mode);
|
| - js_object->ValidateElements();
|
| + JSObject::ValidateElements(js_object);
|
| return result.is_null() ? result : value;
|
| }
|
|
|
| @@ -10657,8 +10657,8 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_MoveArrayContents) {
|
| ASSERT(args.length() == 2);
|
| CONVERT_ARG_HANDLE_CHECKED(JSArray, from, 0);
|
| CONVERT_ARG_HANDLE_CHECKED(JSArray, to, 1);
|
| - from->ValidateElements();
|
| - to->ValidateElements();
|
| + JSObject::ValidateElements(from);
|
| + JSObject::ValidateElements(to);
|
|
|
| Handle<FixedArrayBase> new_elements(from->elements());
|
| ElementsKind from_kind = from->GetElementsKind();
|
| @@ -10669,7 +10669,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_MoveArrayContents) {
|
| JSObject::ResetElements(from);
|
| from->set_length(Smi::FromInt(0));
|
|
|
| - to->ValidateElements();
|
| + JSObject::ValidateElements(to);
|
| return *to;
|
| }
|
|
|
|
|