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

Unified Diff: src/objects-debug.cc

Issue 10692026: Moving prototype transitions into the header of the transition array. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressing comments Created 8 years, 5 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
« no previous file with comments | « src/objects.cc ('k') | src/objects-inl.h » ('j') | src/transitions.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-debug.cc
diff --git a/src/objects-debug.cc b/src/objects-debug.cc
index 6d54d3a4ed182fd036843456d092bd72a033637f..adde6bbd5faff8ec60f1fdb13a452b9f4224b79b 100644
--- a/src/objects-debug.cc
+++ b/src/objects-debug.cc
@@ -1008,7 +1008,6 @@ void NormalizedMapCache::NormalizedMapCacheVerify() {
void Map::ZapTransitions() {
TransitionArray* transition_array = transitions();
- if (transition_array == NULL) return;
MemsetPointer(transition_array->data_start(),
GetHeap()->the_hole_value(),
transition_array->length());
@@ -1016,7 +1015,7 @@ void Map::ZapTransitions() {
void Map::ZapPrototypeTransitions() {
- FixedArray* proto_transitions = prototype_transitions();
+ FixedArray* proto_transitions = GetPrototypeTransitions();
MemsetPointer(proto_transitions->data_start(),
GetHeap()->the_hole_value(),
proto_transitions->length());
« no previous file with comments | « src/objects.cc ('k') | src/objects-inl.h » ('j') | src/transitions.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698