| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 ASSERT(object->IsTransitionArray()); | 55 ASSERT(object->IsTransitionArray()); |
| 56 return reinterpret_cast<TransitionArray*>(object); | 56 return reinterpret_cast<TransitionArray*>(object); |
| 57 } | 57 } |
| 58 | 58 |
| 59 | 59 |
| 60 bool TransitionArray::HasElementsTransition() { | 60 bool TransitionArray::HasElementsTransition() { |
| 61 return Search(GetHeap()->elements_transition_symbol()) != kNotFound; | 61 return Search(GetHeap()->elements_transition_symbol()) != kNotFound; |
| 62 } | 62 } |
| 63 | 63 |
| 64 | 64 |
| 65 bool TransitionArray::HasElementCallbacksTransition() { |
| 66 return Search(GetHeap()->element_callbacks_symbol()) != kNotFound; |
| 67 } |
| 68 |
| 69 |
| 65 Object* TransitionArray::back_pointer_storage() { | 70 Object* TransitionArray::back_pointer_storage() { |
| 66 return get(kBackPointerStorageIndex); | 71 return get(kBackPointerStorageIndex); |
| 67 } | 72 } |
| 68 | 73 |
| 69 | 74 |
| 70 void TransitionArray::set_back_pointer_storage(Object* back_pointer, | 75 void TransitionArray::set_back_pointer_storage(Object* back_pointer, |
| 71 WriteBarrierMode mode) { | 76 WriteBarrierMode mode) { |
| 72 Heap* heap = GetHeap(); | 77 Heap* heap = GetHeap(); |
| 73 WRITE_FIELD(this, kBackPointerStorageOffset, back_pointer); | 78 WRITE_FIELD(this, kBackPointerStorageOffset, back_pointer); |
| 74 CONDITIONAL_WRITE_BARRIER( | 79 CONDITIONAL_WRITE_BARRIER( |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 | 194 |
| 190 | 195 |
| 191 #undef FIELD_ADDR | 196 #undef FIELD_ADDR |
| 192 #undef WRITE_FIELD | 197 #undef WRITE_FIELD |
| 193 #undef CONDITIONAL_WRITE_BARRIER | 198 #undef CONDITIONAL_WRITE_BARRIER |
| 194 | 199 |
| 195 | 200 |
| 196 } } // namespace v8::internal | 201 } } // namespace v8::internal |
| 197 | 202 |
| 198 #endif // V8_TRANSITIONS_INL_H_ | 203 #endif // V8_TRANSITIONS_INL_H_ |
| OLD | NEW |