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_H_ | 5 #ifndef V8_OBJECTS_VISITING_H_ |
6 #define V8_OBJECTS_VISITING_H_ | 6 #define V8_OBJECTS_VISITING_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/layout-descriptor.h" | 9 #include "src/layout-descriptor.h" |
10 | 10 |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 | 406 |
407 INLINE(static void VisitPropertyCell(Map* map, HeapObject* object)); | 407 INLINE(static void VisitPropertyCell(Map* map, HeapObject* object)); |
408 INLINE(static void VisitWeakCell(Map* map, HeapObject* object)); | 408 INLINE(static void VisitWeakCell(Map* map, HeapObject* object)); |
409 INLINE(static void VisitCodeEntry(Heap* heap, Address entry_address)); | 409 INLINE(static void VisitCodeEntry(Heap* heap, Address entry_address)); |
410 INLINE(static void VisitEmbeddedPointer(Heap* heap, RelocInfo* rinfo)); | 410 INLINE(static void VisitEmbeddedPointer(Heap* heap, RelocInfo* rinfo)); |
411 INLINE(static void VisitCell(Heap* heap, RelocInfo* rinfo)); | 411 INLINE(static void VisitCell(Heap* heap, RelocInfo* rinfo)); |
412 INLINE(static void VisitDebugTarget(Heap* heap, RelocInfo* rinfo)); | 412 INLINE(static void VisitDebugTarget(Heap* heap, RelocInfo* rinfo)); |
413 INLINE(static void VisitCodeTarget(Heap* heap, RelocInfo* rinfo)); | 413 INLINE(static void VisitCodeTarget(Heap* heap, RelocInfo* rinfo)); |
414 INLINE(static void VisitCodeAgeSequence(Heap* heap, RelocInfo* rinfo)); | 414 INLINE(static void VisitCodeAgeSequence(Heap* heap, RelocInfo* rinfo)); |
415 INLINE(static void VisitExternalReference(RelocInfo* rinfo)) {} | 415 INLINE(static void VisitExternalReference(RelocInfo* rinfo)) {} |
| 416 INLINE(static void VisitInternalReference(RelocInfo* rinfo)) {} |
416 INLINE(static void VisitRuntimeEntry(RelocInfo* rinfo)) {} | 417 INLINE(static void VisitRuntimeEntry(RelocInfo* rinfo)) {} |
417 // Skip the weak next code link in a code object. | 418 // Skip the weak next code link in a code object. |
418 INLINE(static void VisitNextCodeLink(Heap* heap, Object** slot)) {} | 419 INLINE(static void VisitNextCodeLink(Heap* heap, Object** slot)) {} |
419 | 420 |
420 // TODO(mstarzinger): This should be made protected once refactoring is done. | 421 // TODO(mstarzinger): This should be made protected once refactoring is done. |
421 // Mark non-optimize code for functions inlined into the given optimized | 422 // Mark non-optimize code for functions inlined into the given optimized |
422 // code. This will prevent it from being flushed. | 423 // code. This will prevent it from being flushed. |
423 static void MarkInlinedFunctionsCode(Heap* heap, Code* code); | 424 static void MarkInlinedFunctionsCode(Heap* heap, Code* code); |
424 | 425 |
425 protected: | 426 protected: |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
490 // access the next-element pointers. | 491 // access the next-element pointers. |
491 template <class T> | 492 template <class T> |
492 Object* VisitWeakList(Heap* heap, Object* list, WeakObjectRetainer* retainer, | 493 Object* VisitWeakList(Heap* heap, Object* list, WeakObjectRetainer* retainer, |
493 bool stop_after_young); | 494 bool stop_after_young); |
494 Object* VisitNewArrayBufferViewsWeakList(Heap* heap, Object* list, | 495 Object* VisitNewArrayBufferViewsWeakList(Heap* heap, Object* list, |
495 WeakObjectRetainer* retainer); | 496 WeakObjectRetainer* retainer); |
496 } | 497 } |
497 } // namespace v8::internal | 498 } // namespace v8::internal |
498 | 499 |
499 #endif // V8_OBJECTS_VISITING_H_ | 500 #endif // V8_OBJECTS_VISITING_H_ |
OLD | NEW |