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

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

Issue 10879013: Make order of addition the primary order of descriptor arrays. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/transitions.h ('k') | no next file » | 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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 void TransitionArray::SetTarget(int transition_number, Map* value) { 180 void TransitionArray::SetTarget(int transition_number, Map* value) {
181 ASSERT(transition_number < number_of_transitions()); 181 ASSERT(transition_number < number_of_transitions());
182 set(ToTargetIndex(transition_number), value); 182 set(ToTargetIndex(transition_number), value);
183 } 183 }
184 184
185 185
186 PropertyDetails TransitionArray::GetTargetDetails(int transition_number) { 186 PropertyDetails TransitionArray::GetTargetDetails(int transition_number) {
187 Map* map = GetTarget(transition_number); 187 Map* map = GetTarget(transition_number);
188 DescriptorArray* descriptors = map->instance_descriptors(); 188 DescriptorArray* descriptors = map->instance_descriptors();
189 int descriptor = map->LastAdded(); 189 int descriptor = map->LastAdded();
190 ASSERT(descriptor != Map::kNoneAdded);
191 return descriptors->GetDetails(descriptor); 190 return descriptors->GetDetails(descriptor);
192 } 191 }
193 192
194 193
195 int TransitionArray::Search(String* name) { 194 int TransitionArray::Search(String* name) {
196 return internal::Search(this, name); 195 return internal::Search(this, name);
197 } 196 }
198 197
199 198
200 void TransitionArray::Set(int transition_number, 199 void TransitionArray::Set(int transition_number,
(...skipping 10 matching lines...) Expand all
211 210
212 211
213 #undef FIELD_ADDR 212 #undef FIELD_ADDR
214 #undef WRITE_FIELD 213 #undef WRITE_FIELD
215 #undef CONDITIONAL_WRITE_BARRIER 214 #undef CONDITIONAL_WRITE_BARRIER
216 215
217 216
218 } } // namespace v8::internal 217 } } // namespace v8::internal
219 218
220 #endif // V8_TRANSITIONS_INL_H_ 219 #endif // V8_TRANSITIONS_INL_H_
OLDNEW
« no previous file with comments | « src/transitions.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698