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

Side by Side Diff: src/transitions-inl.h

Issue 659363002: More details printed for Map, DescriptorArray and TransitionArray. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: gdbinit updated Created 6 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/transitions.h ('k') | tools/gdbinit » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_TRANSITIONS_INL_H_ 5 #ifndef V8_TRANSITIONS_INL_H_
6 #define V8_TRANSITIONS_INL_H_ 6 #define V8_TRANSITIONS_INL_H_
7 7
8 #include "src/transitions.h" 8 #include "src/transitions.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 set(ToTargetIndex(transition_number), value); 127 set(ToTargetIndex(transition_number), value);
128 } 128 }
129 129
130 130
131 PropertyDetails TransitionArray::GetTargetDetails(int transition_number) { 131 PropertyDetails TransitionArray::GetTargetDetails(int transition_number) {
132 Map* map = GetTarget(transition_number); 132 Map* map = GetTarget(transition_number);
133 return map->GetLastDescriptorDetails(); 133 return map->GetLastDescriptorDetails();
134 } 134 }
135 135
136 136
137 Object* TransitionArray::GetTargetValue(int transition_number) {
138 Map* map = GetTarget(transition_number);
139 return map->instance_descriptors()->GetValue(map->LastAdded());
140 }
141
142
137 int TransitionArray::Search(Name* name) { 143 int TransitionArray::Search(Name* name) {
138 if (IsSimpleTransition()) { 144 if (IsSimpleTransition()) {
139 Name* key = GetKey(kSimpleTransitionIndex); 145 Name* key = GetKey(kSimpleTransitionIndex);
140 if (key->Equals(name)) return kSimpleTransitionIndex; 146 if (key->Equals(name)) return kSimpleTransitionIndex;
141 return kNotFound; 147 return kNotFound;
142 } 148 }
143 return internal::Search<ALL_ENTRIES>(this, name); 149 return internal::Search<ALL_ENTRIES>(this, name);
144 } 150 }
145 151
146 152
147 void TransitionArray::NoIncrementalWriteBarrierSet(int transition_number, 153 void TransitionArray::NoIncrementalWriteBarrierSet(int transition_number,
148 Name* key, 154 Name* key,
149 Map* target) { 155 Map* target) {
150 FixedArray::NoIncrementalWriteBarrierSet( 156 FixedArray::NoIncrementalWriteBarrierSet(
151 this, ToKeyIndex(transition_number), key); 157 this, ToKeyIndex(transition_number), key);
152 FixedArray::NoIncrementalWriteBarrierSet( 158 FixedArray::NoIncrementalWriteBarrierSet(
153 this, ToTargetIndex(transition_number), target); 159 this, ToTargetIndex(transition_number), target);
154 } 160 }
155 161
156 162
157 #undef FIELD_ADDR 163 #undef FIELD_ADDR
158 #undef WRITE_FIELD 164 #undef WRITE_FIELD
159 #undef CONDITIONAL_WRITE_BARRIER 165 #undef CONDITIONAL_WRITE_BARRIER
160 166
161 167
162 } } // namespace v8::internal 168 } } // namespace v8::internal
163 169
164 #endif // V8_TRANSITIONS_INL_H_ 170 #endif // V8_TRANSITIONS_INL_H_
OLDNEW
« no previous file with comments | « src/transitions.h ('k') | tools/gdbinit » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698