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

Side by Side Diff: src/mark-compact.h

Issue 6178006: Force inlining of MarkObject fast-path. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Created 9 years, 11 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
« no previous file with comments | « no previous file | 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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 friend class MarkingVisitor; 282 friend class MarkingVisitor;
283 friend class StaticMarkingVisitor; 283 friend class StaticMarkingVisitor;
284 friend class CodeMarkingVisitor; 284 friend class CodeMarkingVisitor;
285 friend class SharedFunctionInfoMarkingVisitor; 285 friend class SharedFunctionInfoMarkingVisitor;
286 286
287 static void PrepareForCodeFlushing(); 287 static void PrepareForCodeFlushing();
288 288
289 // Marking operations for objects reachable from roots. 289 // Marking operations for objects reachable from roots.
290 static void MarkLiveObjects(); 290 static void MarkLiveObjects();
291 291
292 static inline void MarkObject(HeapObject* obj) { 292 INLINE(static void MarkObject(HeapObject* obj)) {
293 if (!Marking::TestAndMark(obj->address())) { 293 if (!Marking::TestAndMark(obj->address())) {
294 tracer_->increment_marked_count(); 294 tracer_->increment_marked_count();
295 #ifdef DEBUG 295 #ifdef DEBUG
296 UpdateLiveObjectCount(obj); 296 UpdateLiveObjectCount(obj);
297 #endif 297 #endif
298 ProcessNewlyMarkedObject(obj); 298 ProcessNewlyMarkedObject(obj);
299 } 299 }
300 } 300 }
301 301
302 static inline void SetMark(HeapObject* obj) { 302 INLINE(static void SetMark(HeapObject* obj)) {
303 Marking::SetMark(obj); 303 Marking::SetMark(obj);
304 tracer_->increment_marked_count(); 304 tracer_->increment_marked_count();
305 #ifdef DEBUG 305 #ifdef DEBUG
306 UpdateLiveObjectCount(obj); 306 UpdateLiveObjectCount(obj);
307 #endif 307 #endif
308 } 308 }
309 309
310 static void ProcessNewlyMarkedObject(HeapObject* obj); 310 static void ProcessNewlyMarkedObject(HeapObject* obj);
311 311
312 // Creates back pointers for all map transitions, stores them in 312 // Creates back pointers for all map transitions, stores them in
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 435
436 friend class UnmarkObjectVisitor; 436 friend class UnmarkObjectVisitor;
437 static void UnmarkObject(HeapObject* obj); 437 static void UnmarkObject(HeapObject* obj);
438 #endif 438 #endif
439 }; 439 };
440 440
441 441
442 } } // namespace v8::internal 442 } } // namespace v8::internal
443 443
444 #endif // V8_MARK_COMPACT_H_ 444 #endif // V8_MARK_COMPACT_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698