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

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

Issue 10837037: Age code to allow reclaiming old unexecuted functions (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Cleanup code Created 8 years, 3 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 | Annotate | Revision Log
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 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 table_.GetVisitor(map)(map, obj); 386 table_.GetVisitor(map)(map, obj);
387 } 387 }
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 static inline void VisitCodeAgeSequence(Heap* heap, RelocInfo* rinfo);
Michael Starzinger 2012/09/21 09:43:19 Move this up two lines above the empty implementat
danno 2012/10/25 10:07:23 Done.
396 397
397 // TODO(mstarzinger): This should be made protected once refactoring is done. 398 // TODO(mstarzinger): This should be made protected once refactoring is done.
398 static inline void VisitNativeContext(Map* map, HeapObject* object); 399 static inline void VisitNativeContext(Map* map, HeapObject* object);
399 400
400 protected: 401 protected:
401 static inline void VisitCode(Map* map, HeapObject* object); 402 static inline void VisitCode(Map* map, HeapObject* object);
402 static inline void VisitJSRegExp(Map* map, HeapObject* object); 403 static inline void VisitJSRegExp(Map* map, HeapObject* object);
403 404
404 class DataObjectVisitor { 405 class DataObjectVisitor {
405 public: 406 public:
(...skipping 20 matching lines...) Expand all
426 427
427 428
428 template<typename StaticVisitor> 429 template<typename StaticVisitor>
429 VisitorDispatchTable<typename StaticMarkingVisitor<StaticVisitor>::Callback> 430 VisitorDispatchTable<typename StaticMarkingVisitor<StaticVisitor>::Callback>
430 StaticMarkingVisitor<StaticVisitor>::table_; 431 StaticMarkingVisitor<StaticVisitor>::table_;
431 432
432 433
433 } } // namespace v8::internal 434 } } // namespace v8::internal
434 435
435 #endif // V8_OBJECTS_VISITING_H_ 436 #endif // V8_OBJECTS_VISITING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698