Revision: 6250 Author: [email protected] Date: Mon Jan 10 07:00:48 2011 Log: Force inlining of MarkObject fast-path.
This seems to reduce performance degradation on marking phase introduced by r6230 to 10%.
[email protected] Review URL: http://codereview.chromium.org/6178006 http://code.google.com/p/v8/source/detail?r=6250 Modified: /branches/experimental/gc/src/mark-compact.h ======================================= --- /branches/experimental/gc/src/mark-compact.h Fri Jan 7 06:11:14 2011 +++ /branches/experimental/gc/src/mark-compact.h Mon Jan 10 07:00:48 2011 @@ -289,7 +289,7 @@ // Marking operations for objects reachable from roots. static void MarkLiveObjects(); - static inline void MarkObject(HeapObject* obj) { + INLINE(static void MarkObject(HeapObject* obj)) { if (!Marking::TestAndMark(obj->address())) { tracer_->increment_marked_count(); #ifdef DEBUG @@ -299,7 +299,7 @@ } } - static inline void SetMark(HeapObject* obj) { + INLINE(static void SetMark(HeapObject* obj)) { Marking::SetMark(obj); tracer_->increment_marked_count(); #ifdef DEBUG -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
