| Index: src/transitions.cc
|
| diff --git a/src/transitions.cc b/src/transitions.cc
|
| index 199fcc2c9838fb0691bbedd4c00e1dd7bd27bb3e..fecced7595ea6513fff5685b171ac63507e75b4b 100644
|
| --- a/src/transitions.cc
|
| +++ b/src/transitions.cc
|
| @@ -35,23 +35,14 @@ namespace v8 {
|
| namespace internal {
|
|
|
|
|
| -MaybeObject* TransitionArray::Allocate(int number_of_transitions,
|
| - JSGlobalPropertyCell* descriptors_cell) {
|
| +MaybeObject* TransitionArray::Allocate(int number_of_transitions) {
|
| Heap* heap = Isolate::Current()->heap();
|
| -
|
| - if (descriptors_cell == NULL) {
|
| - MaybeObject* maybe_cell =
|
| - heap->AllocateJSGlobalPropertyCell(heap->empty_descriptor_array());
|
| - if (!maybe_cell->To(&descriptors_cell)) return maybe_cell;
|
| - }
|
| -
|
| // Use FixedArray to not use DescriptorArray::cast on incomplete object.
|
| FixedArray* array;
|
| MaybeObject* maybe_array =
|
| heap->AllocateFixedArray(ToKeyIndex(number_of_transitions));
|
| if (!maybe_array->To(&array)) return maybe_array;
|
|
|
| - array->set(kDescriptorsPointerIndex, descriptors_cell);
|
| array->set(kElementsTransitionIndex, Smi::FromInt(0));
|
| array->set(kPrototypeTransitionsIndex, Smi::FromInt(0));
|
| return array;
|
| @@ -72,18 +63,13 @@ static bool InsertionPointFound(String* key1, String* key2) {
|
| }
|
|
|
|
|
| -MaybeObject* TransitionArray::NewWith(
|
| - String* name,
|
| - Map* target,
|
| - JSGlobalPropertyCell* descriptors_pointer,
|
| - Object* back_pointer) {
|
| +MaybeObject* TransitionArray::NewWith(String* name, Map* target) {
|
| TransitionArray* result;
|
|
|
| - MaybeObject* maybe_array = TransitionArray::Allocate(1, descriptors_pointer);
|
| + MaybeObject* maybe_array = TransitionArray::Allocate(1);
|
| if (!maybe_array->To(&result)) return maybe_array;
|
|
|
| result->NoIncrementalWriteBarrierSet(0, name, target);
|
| - result->set_back_pointer_storage(back_pointer);
|
| return result;
|
| }
|
|
|
| @@ -98,7 +84,7 @@ MaybeObject* TransitionArray::CopyInsert(String* name, Map* target) {
|
| if (insertion_index == kNotFound) ++new_size;
|
|
|
| MaybeObject* maybe_array;
|
| - maybe_array = TransitionArray::Allocate(new_size, descriptors_pointer());
|
| + maybe_array = TransitionArray::Allocate(new_size);
|
| if (!maybe_array->To(&result)) return maybe_array;
|
|
|
| if (HasElementsTransition()) {
|
| @@ -133,7 +119,6 @@ MaybeObject* TransitionArray::CopyInsert(String* name, Map* target) {
|
| this, insertion_index, insertion_index + 1);
|
| }
|
|
|
| - result->set_back_pointer_storage(back_pointer_storage());
|
| return result;
|
| }
|
|
|
|
|