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

Unified Diff: src/incremental-marking.h

Issue 7000023: Do inline object filtering (via page flags) before call to RecordWriteStub. (Closed) Base URL: https://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 side-by-side diff with in-line comments
Download patch
Index: src/incremental-marking.h
diff --git a/src/incremental-marking.h b/src/incremental-marking.h
index 7bd99bf7dc0e324c63f4bfb5270b79bb1ed6a0db..41a220dfbde669f6fa38addfdda364c1668888b3 100644
--- a/src/incremental-marking.h
+++ b/src/incremental-marking.h
@@ -189,6 +189,15 @@ class IncrementalMarking : public AllStatic {
return steps_took_;
}
+ inline void SetOldSpacePageFlags(MemoryChunk* chunk) {
+ SetOldSpacePageFlags(chunk, IsMarking());
+ }
+
+ inline void SetNewSpacePageFlags(MemoryChunk* chunk) {
+ SetNewSpacePageFlags(chunk, IsMarking());
+ }
+
+
private:
void set_should_hurry(bool val) {
should_hurry_ = val;
@@ -210,6 +219,11 @@ class IncrementalMarking : public AllStatic {
void StartMarking();
+ void RevertWriteBarrierFlags(PagedSpace* space);
+ void RevertWriteBarrierFlags();
+
+ static void SetOldSpacePageFlags(MemoryChunk* chunk, bool is_marking);
+ static void SetNewSpacePageFlags(MemoryChunk* chunk, bool is_marking);
Heap* heap_;

Powered by Google App Engine
This is Rietveld 408576698