Reviewers: Erik Corry,

Description:
Force inlining of MarkObject fast-path.

This seems to reduce performance degradation on marking phase introduced by
r6230 to 10%.

[email protected]

Please review this at http://codereview.chromium.org/6178006/

SVN Base: https://v8.googlecode.com/svn/branches/experimental/gc

Affected files:
  M src/mark-compact.h


Index: src/mark-compact.h
diff --git a/src/mark-compact.h b/src/mark-compact.h
index 9bd098e2bd59e5d87eeb0cf7e1aab87124b92450..56be21fdd9d308c9c0e3f36c7cba336435b354fb 100644
--- a/src/mark-compact.h
+++ b/src/mark-compact.h
@@ -289,7 +289,7 @@ class MarkCompactCollector: public AllStatic {
   // 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 @@ class MarkCompactCollector: public AllStatic {
     }
   }

-  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

Reply via email to