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

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

Issue 2534763003: [Interpreter] Add bytecode aging and use it enable CompilationCache for bytecode (Closed)
Patch Set: Created 4 years 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
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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 INLINE(static void VisitCodeAgeSequence(Heap* heap, RelocInfo* rinfo)); 365 INLINE(static void VisitCodeAgeSequence(Heap* heap, RelocInfo* rinfo));
366 INLINE(static void VisitExternalReference(RelocInfo* rinfo)) {} 366 INLINE(static void VisitExternalReference(RelocInfo* rinfo)) {}
367 INLINE(static void VisitInternalReference(RelocInfo* rinfo)) {} 367 INLINE(static void VisitInternalReference(RelocInfo* rinfo)) {}
368 INLINE(static void VisitRuntimeEntry(RelocInfo* rinfo)) {} 368 INLINE(static void VisitRuntimeEntry(RelocInfo* rinfo)) {}
369 // Skip the weak next code link in a code object. 369 // Skip the weak next code link in a code object.
370 INLINE(static void VisitNextCodeLink(Heap* heap, Object** slot)) {} 370 INLINE(static void VisitNextCodeLink(Heap* heap, Object** slot)) {}
371 371
372 protected: 372 protected:
373 INLINE(static void VisitMap(Map* map, HeapObject* object)); 373 INLINE(static void VisitMap(Map* map, HeapObject* object));
374 INLINE(static void VisitCode(Map* map, HeapObject* object)); 374 INLINE(static void VisitCode(Map* map, HeapObject* object));
375 INLINE(static void VisitBytecodeArray(Map* map, HeapObject* object));
375 INLINE(static void VisitSharedFunctionInfo(Map* map, HeapObject* object)); 376 INLINE(static void VisitSharedFunctionInfo(Map* map, HeapObject* object));
376 INLINE(static void VisitWeakCollection(Map* map, HeapObject* object)); 377 INLINE(static void VisitWeakCollection(Map* map, HeapObject* object));
377 INLINE(static void VisitJSFunction(Map* map, HeapObject* object)); 378 INLINE(static void VisitJSFunction(Map* map, HeapObject* object));
378 INLINE(static void VisitNativeContext(Map* map, HeapObject* object)); 379 INLINE(static void VisitNativeContext(Map* map, HeapObject* object));
379 380
380 // Mark pointers in a Map treating some elements of the descriptor array weak. 381 // Mark pointers in a Map treating some elements of the descriptor array weak.
381 static void MarkMapContents(Heap* heap, Map* map); 382 static void MarkMapContents(Heap* heap, Map* map);
382 383
383 // Code flushing support. 384 // Code flushing support.
384 INLINE(static bool IsFlushable(Heap* heap, JSFunction* function)); 385 INLINE(static bool IsFlushable(Heap* heap, JSFunction* function));
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 // the next element. Given the head of the list, this function removes dead 449 // 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 450 // 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 451 // pointers. The template parameter T is a WeakListVisitor that defines how to
451 // access the next-element pointers. 452 // access the next-element pointers.
452 template <class T> 453 template <class T>
453 Object* VisitWeakList(Heap* heap, Object* list, WeakObjectRetainer* retainer); 454 Object* VisitWeakList(Heap* heap, Object* list, WeakObjectRetainer* retainer);
454 } // namespace internal 455 } // namespace internal
455 } // namespace v8 456 } // namespace v8
456 457
457 #endif // V8_OBJECTS_VISITING_H_ 458 #endif // V8_OBJECTS_VISITING_H_
OLDNEW
« no previous file with comments | « src/heap/heap.cc ('k') | src/heap/objects-visiting-inl.h » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698