| OLD | NEW |
| 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_OBJECTS_VISITING_INL_H_ | 5 #ifndef V8_OBJECTS_VISITING_INL_H_ |
| 6 #define V8_OBJECTS_VISITING_INL_H_ | 6 #define V8_OBJECTS_VISITING_INL_H_ |
| 7 | 7 |
| 8 | 8 |
| 9 namespace v8 { | 9 namespace v8 { |
| 10 namespace internal { | 10 namespace internal { |
| (...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 template <typename StaticVisitor> | 529 template <typename StaticVisitor> |
| 530 void StaticMarkingVisitor<StaticVisitor>::VisitJSArrayBuffer( | 530 void StaticMarkingVisitor<StaticVisitor>::VisitJSArrayBuffer( |
| 531 Map* map, HeapObject* object) { | 531 Map* map, HeapObject* object) { |
| 532 Heap* heap = map->GetHeap(); | 532 Heap* heap = map->GetHeap(); |
| 533 | 533 |
| 534 StaticVisitor::VisitPointers( | 534 StaticVisitor::VisitPointers( |
| 535 heap, | 535 heap, |
| 536 HeapObject::RawField(object, JSArrayBuffer::BodyDescriptor::kStartOffset), | 536 HeapObject::RawField(object, JSArrayBuffer::BodyDescriptor::kStartOffset), |
| 537 HeapObject::RawField(object, JSArrayBuffer::kSizeWithInternalFields)); | 537 HeapObject::RawField(object, JSArrayBuffer::kSizeWithInternalFields)); |
| 538 if (!JSArrayBuffer::cast(object)->is_external()) { | 538 if (!JSArrayBuffer::cast(object)->is_external()) { |
| 539 heap->RegisterLiveArrayBuffer(heap->InNewSpace(object), | 539 heap->RegisterLiveArrayBuffer(false, |
| 540 JSArrayBuffer::cast(object)->backing_store()); | 540 JSArrayBuffer::cast(object)->backing_store()); |
| 541 } | 541 } |
| 542 } | 542 } |
| 543 | 543 |
| 544 | 544 |
| 545 template <typename StaticVisitor> | 545 template <typename StaticVisitor> |
| 546 void StaticMarkingVisitor<StaticVisitor>::VisitJSTypedArray( | 546 void StaticMarkingVisitor<StaticVisitor>::VisitJSTypedArray( |
| 547 Map* map, HeapObject* object) { | 547 Map* map, HeapObject* object) { |
| 548 StaticVisitor::VisitPointers( | 548 StaticVisitor::VisitPointers( |
| 549 map->GetHeap(), | 549 map->GetHeap(), |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 875 | 875 |
| 876 RelocIterator it(this, mode_mask); | 876 RelocIterator it(this, mode_mask); |
| 877 for (; !it.done(); it.next()) { | 877 for (; !it.done(); it.next()) { |
| 878 it.rinfo()->template Visit<StaticVisitor>(heap); | 878 it.rinfo()->template Visit<StaticVisitor>(heap); |
| 879 } | 879 } |
| 880 } | 880 } |
| 881 } | 881 } |
| 882 } // namespace v8::internal | 882 } // namespace v8::internal |
| 883 | 883 |
| 884 #endif // V8_OBJECTS_VISITING_INL_H_ | 884 #endif // V8_OBJECTS_VISITING_INL_H_ |
| OLD | NEW |