Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Unified Diff: src/transitions.cc

Issue 10816005: Swapped transition array and descriptor array. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments, and updated additional code comments. Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/transitions.cc
diff --git a/src/transitions.cc b/src/transitions.cc
index 5dda18eddf8559a09ae7aa8e1cef5a8d1204720a..6f8b2fec5a9583a3785587c12f0a46ee5a3ab645 100644
--- a/src/transitions.cc
+++ b/src/transitions.cc
@@ -39,10 +39,9 @@ MaybeObject* TransitionArray::Allocate(int number_of_transitions) {
Heap* heap = Isolate::Current()->heap();
// 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;
- }
+ MaybeObject* maybe_array =
+ heap->AllocateFixedArray(ToKeyIndex(number_of_transitions));
+ if (!maybe_array->To(&array)) return maybe_array;
array->set(kElementsTransitionIndex, Smi::FromInt(0));
array->set(kPrototypeTransitionsIndex, Smi::FromInt(0));
« src/bootstrapper.cc ('K') | « src/transitions.h ('k') | src/transitions-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698