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

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

Issue 2389963007: Revert of [heap] Simplify marking of JSFunction and SFI (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | src/heap/objects-visiting-inl.h » ('j') | 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_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/heap/heap.h" 9 #include "src/heap/heap.h"
10 #include "src/heap/spaces.h" 10 #include "src/heap/spaces.h"
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 379
380 // Mark pointers in a Map treating some elements of the descriptor array weak. 380 // Mark pointers in a Map treating some elements of the descriptor array weak.
381 static void MarkMapContents(Heap* heap, Map* map); 381 static void MarkMapContents(Heap* heap, Map* map);
382 382
383 // Code flushing support. 383 // Code flushing support.
384 INLINE(static bool IsFlushable(Heap* heap, JSFunction* function)); 384 INLINE(static bool IsFlushable(Heap* heap, JSFunction* function));
385 INLINE(static bool IsFlushable(Heap* heap, SharedFunctionInfo* shared_info)); 385 INLINE(static bool IsFlushable(Heap* heap, SharedFunctionInfo* shared_info));
386 386
387 // Helpers used by code flushing support that visit pointer fields and treat 387 // Helpers used by code flushing support that visit pointer fields and treat
388 // references to code objects either strongly or weakly. 388 // references to code objects either strongly or weakly.
389 static void VisitSharedFunctionInfoStrongCode(Map* map, HeapObject* object); 389 static void VisitSharedFunctionInfoStrongCode(Heap* heap, HeapObject* object);
390 static void VisitSharedFunctionInfoWeakCode(Map* map, HeapObject* object); 390 static void VisitSharedFunctionInfoWeakCode(Heap* heap, HeapObject* object);
391 static void VisitJSFunctionStrongCode(Map* map, HeapObject* object); 391 static void VisitJSFunctionStrongCode(Map* map, HeapObject* object);
392 static void VisitJSFunctionWeakCode(Map* map, HeapObject* object); 392 static void VisitJSFunctionWeakCode(Map* map, HeapObject* object);
393 393
394 class DataObjectVisitor { 394 class DataObjectVisitor {
395 public: 395 public:
396 template <int size> 396 template <int size>
397 static inline void VisitSpecialized(Map* map, HeapObject* object) {} 397 static inline void VisitSpecialized(Map* map, HeapObject* object) {}
398 398
399 INLINE(static void Visit(Map* map, HeapObject* object)) {} 399 INLINE(static void Visit(Map* map, HeapObject* object)) {}
400 }; 400 };
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 // the next element. Given the head of the list, this function removes dead 448 // the next element. Given the head of the list, this function removes dead
449 // elements from the list and if requested records slots for next-element 449 // elements from the list and if requested records slots for next-element
450 // pointers. The template parameter T is a WeakListVisitor that defines how to 450 // pointers. The template parameter T is a WeakListVisitor that defines how to
451 // access the next-element pointers. 451 // access the next-element pointers.
452 template <class T> 452 template <class T>
453 Object* VisitWeakList(Heap* heap, Object* list, WeakObjectRetainer* retainer); 453 Object* VisitWeakList(Heap* heap, Object* list, WeakObjectRetainer* retainer);
454 } // namespace internal 454 } // namespace internal
455 } // namespace v8 455 } // namespace v8
456 456
457 #endif // V8_OBJECTS_VISITING_H_ 457 #endif // V8_OBJECTS_VISITING_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap/objects-visiting-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698