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

Side by Side Diff: src/transitions.h

Issue 223533002: Don't overwrite transition array map while iterating over the transition tree. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 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/objects-visiting-inl.h ('k') | src/transitions-inl.h » ('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 // 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 inline void set_back_pointer_storage( 78 inline void set_back_pointer_storage(
79 Object* back_pointer, 79 Object* back_pointer,
80 WriteBarrierMode mode = UPDATE_WRITE_BARRIER); 80 WriteBarrierMode mode = UPDATE_WRITE_BARRIER);
81 81
82 inline FixedArray* GetPrototypeTransitions(); 82 inline FixedArray* GetPrototypeTransitions();
83 inline void SetPrototypeTransitions( 83 inline void SetPrototypeTransitions(
84 FixedArray* prototype_transitions, 84 FixedArray* prototype_transitions,
85 WriteBarrierMode mode = UPDATE_WRITE_BARRIER); 85 WriteBarrierMode mode = UPDATE_WRITE_BARRIER);
86 inline Object** GetPrototypeTransitionsSlot(); 86 inline Object** GetPrototypeTransitionsSlot();
87 inline bool HasPrototypeTransitions(); 87 inline bool HasPrototypeTransitions();
88 inline HeapObject* UncheckedPrototypeTransitions();
89 88
90 // Returns the number of transitions in the array. 89 // Returns the number of transitions in the array.
91 int number_of_transitions() { 90 int number_of_transitions() {
92 if (IsSimpleTransition()) return 1; 91 if (IsSimpleTransition()) return 1;
93 int len = length(); 92 int len = length();
94 return len <= kFirstIndex ? 0 : (len - kFirstIndex) / kTransitionSize; 93 return len <= kFirstIndex ? 0 : (len - kFirstIndex) / kTransitionSize;
95 } 94 }
96 95
97 inline int number_of_entries() { return number_of_transitions(); } 96 inline int number_of_entries() { return number_of_transitions(); }
98 97
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 Name* key, 202 Name* key,
204 Map* target); 203 Map* target);
205 204
206 DISALLOW_IMPLICIT_CONSTRUCTORS(TransitionArray); 205 DISALLOW_IMPLICIT_CONSTRUCTORS(TransitionArray);
207 }; 206 };
208 207
209 208
210 } } // namespace v8::internal 209 } } // namespace v8::internal
211 210
212 #endif // V8_TRANSITIONS_H_ 211 #endif // V8_TRANSITIONS_H_
OLDNEW
« no previous file with comments | « src/objects-visiting-inl.h ('k') | src/transitions-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698