OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |