| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index 8e50a8fd2cb148b1f9942c98e62a46bee5f228ed..e4e1b5901d904cf1ac69b0fd879461688eac53cb 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -294,16 +294,17 @@ bool Object::HasValidElements() {
|
| }
|
|
|
|
|
| -MaybeObject* Object::AllocateNewStorageFor(Heap* heap,
|
| - Representation representation) {
|
| - if (representation.IsSmi() && IsUninitialized()) {
|
| - return Smi::FromInt(0);
|
| +Handle<Object> Object::NewStorageFor(Isolate* isolate,
|
| + Handle<Object> object,
|
| + Representation representation) {
|
| + if (representation.IsSmi() && object->IsUninitialized()) {
|
| + return handle(Smi::FromInt(0), isolate);
|
| }
|
| - if (!representation.IsDouble()) return this;
|
| - if (IsUninitialized()) {
|
| - return heap->AllocateHeapNumber(0);
|
| + if (!representation.IsDouble()) return object;
|
| + if (object->IsUninitialized()) {
|
| + return isolate->factory()->NewHeapNumber(0);
|
| }
|
| - return heap->AllocateHeapNumber(Number());
|
| + return isolate->factory()->NewHeapNumber(object->Number());
|
| }
|
|
|
|
|
| @@ -1988,13 +1989,6 @@ void JSObject::SetInternalField(int index, Smi* value) {
|
| }
|
|
|
|
|
| -MaybeObject* JSObject::FastPropertyAt(Representation representation,
|
| - int index) {
|
| - Object* raw_value = RawFastPropertyAt(index);
|
| - return raw_value->AllocateNewStorageFor(GetHeap(), representation);
|
| -}
|
| -
|
| -
|
| // Access fast-case object properties at index. The use of these routines
|
| // is needed to correctly distinguish between properties stored in-object and
|
| // properties stored in the properties array.
|
|
|