Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index d6d65718e2c6e4351944c4f2576623b4200b614a..7c7f0940067ad7500c80d1ed416f38c818e7f192 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -4256,14 +4256,6 @@ bool JSObject::HasIndexedInterceptor() { |
} |
-bool JSObject::AllowsSetElementsLength() { |
- bool result = elements()->IsFixedArray() || |
- elements()->IsFixedDoubleArray(); |
- ASSERT(result == !HasExternalArrayElements()); |
- return result; |
-} |
- |
- |
MaybeObject* JSObject::EnsureWritableFastElements() { |
ASSERT(HasFastTypeElements()); |
FixedArray* elems = FixedArray::cast(elements()); |
@@ -4624,6 +4616,13 @@ void JSArray::set_length(Smi* length) { |
} |
+bool JSArray::AllowsSetElementsLength() { |
+ bool result = elements()->IsFixedArray() || elements()->IsFixedDoubleArray(); |
+ ASSERT(result == !HasExternalArrayElements()); |
+ return result; |
+} |
+ |
+ |
MaybeObject* JSArray::SetContent(FixedArrayBase* storage) { |
MaybeObject* maybe_result = EnsureCanContainElements( |
storage, ALLOW_COPIED_DOUBLE_ELEMENTS); |