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

Side by Side Diff: src/heap/objects-visiting-inl.h

Issue 1206903002: Version 4.4.63.9 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@4.4
Patch Set: Created 5 years, 5 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
« no previous file with comments | « src/heap/heap.cc ('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 // 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
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
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_
OLDNEW
« no previous file with comments | « src/heap/heap.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698