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

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

Issue 6824078: Move most of the incremental marking write barrier to generated code. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: '' Created 9 years, 7 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 | « src/lithium-allocator.cc ('k') | src/serialize.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 : heap_(heap), 52 : heap_(heap),
53 new_space_bitmap_(NULL) { 53 new_space_bitmap_(NULL) {
54 } 54 }
55 55
56 inline MarkBit MarkBitFromNewSpace(HeapObject* obj); 56 inline MarkBit MarkBitFromNewSpace(HeapObject* obj);
57 57
58 static inline MarkBit MarkBitFromOldSpace(HeapObject* obj); 58 static inline MarkBit MarkBitFromOldSpace(HeapObject* obj);
59 59
60 inline MarkBit MarkBitFrom(Address addr); 60 inline MarkBit MarkBitFrom(Address addr);
61 61
62 // For embedding in generated code.
63 inline Address new_space_bitmap() {
64 return reinterpret_cast<Address>(new_space_bitmap_);
65 }
66
62 inline MarkBit MarkBitFrom(HeapObject* obj) { 67 inline MarkBit MarkBitFrom(HeapObject* obj) {
63 return MarkBitFrom(reinterpret_cast<Address>(obj)); 68 return MarkBitFrom(reinterpret_cast<Address>(obj));
64 } 69 }
65 70
66 inline void ClearRange(Address addr, int size); 71 inline void ClearRange(Address addr, int size);
67 72
68 void TransferMark(Address old_start, Address new_start); 73 void TransferMark(Address old_start, Address new_start);
69 74
70 bool Setup(); 75 bool Setup();
71 76
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 CodeFlusher* code_flusher_; 482 CodeFlusher* code_flusher_;
478 483
479 friend class Heap; 484 friend class Heap;
480 friend class OverflowedObjectsScanner; 485 friend class OverflowedObjectsScanner;
481 }; 486 };
482 487
483 488
484 } } // namespace v8::internal 489 } } // namespace v8::internal
485 490
486 #endif // V8_MARK_COMPACT_H_ 491 #endif // V8_MARK_COMPACT_H_
OLDNEW
« no previous file with comments | « src/lithium-allocator.cc ('k') | src/serialize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698