| 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 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 INLINE(static void VisitJSFunction(Map* map, HeapObject* object)); | 431 INLINE(static void VisitJSFunction(Map* map, HeapObject* object)); |
| 432 INLINE(static void VisitJSRegExp(Map* map, HeapObject* object)); | 432 INLINE(static void VisitJSRegExp(Map* map, HeapObject* object)); |
| 433 INLINE(static void VisitJSArrayBuffer(Map* map, HeapObject* object)); | 433 INLINE(static void VisitJSArrayBuffer(Map* map, HeapObject* object)); |
| 434 INLINE(static void VisitJSTypedArray(Map* map, HeapObject* object)); | 434 INLINE(static void VisitJSTypedArray(Map* map, HeapObject* object)); |
| 435 INLINE(static void VisitJSDataView(Map* map, HeapObject* object)); | 435 INLINE(static void VisitJSDataView(Map* map, HeapObject* object)); |
| 436 INLINE(static void VisitNativeContext(Map* map, HeapObject* object)); | 436 INLINE(static void VisitNativeContext(Map* map, HeapObject* object)); |
| 437 | 437 |
| 438 // Mark pointers in a Map and its TransitionArray together, possibly | 438 // Mark pointers in a Map and its TransitionArray together, possibly |
| 439 // treating transitions or back pointers weak. | 439 // treating transitions or back pointers weak. |
| 440 static void MarkMapContents(Heap* heap, Map* map); | 440 static void MarkMapContents(Heap* heap, Map* map); |
| 441 static void MarkTransitionArray(Heap* heap, TransitionArray* transitions); |
| 441 | 442 |
| 442 // Code flushing support. | 443 // Code flushing support. |
| 443 INLINE(static bool IsFlushable(Heap* heap, JSFunction* function)); | 444 INLINE(static bool IsFlushable(Heap* heap, JSFunction* function)); |
| 444 INLINE(static bool IsFlushable(Heap* heap, SharedFunctionInfo* shared_info)); | 445 INLINE(static bool IsFlushable(Heap* heap, SharedFunctionInfo* shared_info)); |
| 445 | 446 |
| 446 // Helpers used by code flushing support that visit pointer fields and treat | 447 // Helpers used by code flushing support that visit pointer fields and treat |
| 447 // references to code objects either strongly or weakly. | 448 // references to code objects either strongly or weakly. |
| 448 static void VisitSharedFunctionInfoStrongCode(Heap* heap, HeapObject* object); | 449 static void VisitSharedFunctionInfoStrongCode(Heap* heap, HeapObject* object); |
| 449 static void VisitSharedFunctionInfoWeakCode(Heap* heap, HeapObject* object); | 450 static void VisitSharedFunctionInfoWeakCode(Heap* heap, HeapObject* object); |
| 450 static void VisitJSFunctionStrongCode(Heap* heap, HeapObject* object); | 451 static void VisitJSFunctionStrongCode(Heap* heap, HeapObject* object); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 // the next element. Given the head of the list, this function removes dead | 486 // the next element. Given the head of the list, this function removes dead |
| 486 // elements from the list and if requested records slots for next-element | 487 // elements from the list and if requested records slots for next-element |
| 487 // pointers. The template parameter T is a WeakListVisitor that defines how to | 488 // pointers. The template parameter T is a WeakListVisitor that defines how to |
| 488 // access the next-element pointers. | 489 // access the next-element pointers. |
| 489 template <class T> | 490 template <class T> |
| 490 Object* VisitWeakList(Heap* heap, Object* list, WeakObjectRetainer* retainer); | 491 Object* VisitWeakList(Heap* heap, Object* list, WeakObjectRetainer* retainer); |
| 491 } | 492 } |
| 492 } // namespace v8::internal | 493 } // namespace v8::internal |
| 493 | 494 |
| 494 #endif // V8_OBJECTS_VISITING_H_ | 495 #endif // V8_OBJECTS_VISITING_H_ |
| OLD | NEW |