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

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

Issue 11368137: Refactoring incremental marking (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Created 8 years, 1 month 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/incremental-marking.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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 388
389 static inline void VisitCodeEntry(Heap* heap, Address entry_address); 389 static inline void VisitCodeEntry(Heap* heap, Address entry_address);
390 static inline void VisitEmbeddedPointer(Heap* heap, RelocInfo* rinfo); 390 static inline void VisitEmbeddedPointer(Heap* heap, RelocInfo* rinfo);
391 static inline void VisitGlobalPropertyCell(Heap* heap, RelocInfo* rinfo); 391 static inline void VisitGlobalPropertyCell(Heap* heap, RelocInfo* rinfo);
392 static inline void VisitDebugTarget(Heap* heap, RelocInfo* rinfo); 392 static inline void VisitDebugTarget(Heap* heap, RelocInfo* rinfo);
393 static inline void VisitCodeTarget(Heap* heap, RelocInfo* rinfo); 393 static inline void VisitCodeTarget(Heap* heap, RelocInfo* rinfo);
394 static inline void VisitExternalReference(RelocInfo* rinfo) { } 394 static inline void VisitExternalReference(RelocInfo* rinfo) { }
395 static inline void VisitRuntimeEntry(RelocInfo* rinfo) { } 395 static inline void VisitRuntimeEntry(RelocInfo* rinfo) { }
396 396
397 // TODO(mstarzinger): This should be made protected once refactoring is done. 397 // TODO(mstarzinger): This should be made protected once refactoring is done.
398 static inline void VisitNativeContext(Map* map, HeapObject* object);
399
400 // TODO(mstarzinger): This should be made protected once refactoring is done.
401 // Mark non-optimize code for functions inlined into the given optimized 398 // Mark non-optimize code for functions inlined into the given optimized
402 // code. This will prevent it from being flushed. 399 // code. This will prevent it from being flushed.
403 static void MarkInlinedFunctionsCode(Heap* heap, Code* code); 400 static void MarkInlinedFunctionsCode(Heap* heap, Code* code);
404 401
405 protected: 402 protected:
406 static inline void VisitMap(Map* map, HeapObject* object); 403 static inline void VisitMap(Map* map, HeapObject* object);
407 static inline void VisitCode(Map* map, HeapObject* object); 404 static inline void VisitCode(Map* map, HeapObject* object);
408 static inline void VisitSharedFunctionInfo(Map* map, HeapObject* object); 405 static inline void VisitSharedFunctionInfo(Map* map, HeapObject* object);
409 static inline void VisitJSFunction(Map* map, HeapObject* object); 406 static inline void VisitJSFunction(Map* map, HeapObject* object);
410 static inline void VisitJSRegExp(Map* map, HeapObject* object); 407 static inline void VisitJSRegExp(Map* map, HeapObject* object);
408 static inline void VisitNativeContext(Map* map, HeapObject* object);
411 409
412 // Mark pointers in a Map and its TransitionArray together, possibly 410 // Mark pointers in a Map and its TransitionArray together, possibly
413 // treating transitions or back pointers weak. 411 // treating transitions or back pointers weak.
414 static void MarkMapContents(Heap* heap, Map* map); 412 static void MarkMapContents(Heap* heap, Map* map);
415 static void MarkTransitionArray(Heap* heap, TransitionArray* transitions); 413 static void MarkTransitionArray(Heap* heap, TransitionArray* transitions);
416 414
417 // Code flushing support. 415 // Code flushing support.
418 static inline bool IsFlushable(Heap* heap, JSFunction* function); 416 static inline bool IsFlushable(Heap* heap, JSFunction* function);
419 static inline bool IsFlushable(Heap* heap, SharedFunctionInfo* shared_info); 417 static inline bool IsFlushable(Heap* heap, SharedFunctionInfo* shared_info);
420 418
(...skipping 29 matching lines...) Expand all
450 448
451 449
452 template<typename StaticVisitor> 450 template<typename StaticVisitor>
453 VisitorDispatchTable<typename StaticMarkingVisitor<StaticVisitor>::Callback> 451 VisitorDispatchTable<typename StaticMarkingVisitor<StaticVisitor>::Callback>
454 StaticMarkingVisitor<StaticVisitor>::table_; 452 StaticMarkingVisitor<StaticVisitor>::table_;
455 453
456 454
457 } } // namespace v8::internal 455 } } // namespace v8::internal
458 456
459 #endif // V8_OBJECTS_VISITING_H_ 457 #endif // V8_OBJECTS_VISITING_H_
OLDNEW
« no previous file with comments | « src/incremental-marking.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698