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

Side by Side Diff: src/incremental-marking.h

Issue 11412096: Use slot instead of value in the write barrier to record write from code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 1 month 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/ia32/code-stubs-ia32.cc ('k') | src/incremental-marking.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 inline void RestartIfNotMarking() { 120 inline void RestartIfNotMarking() {
121 if (state_ == COMPLETE) { 121 if (state_ == COMPLETE) {
122 state_ = MARKING; 122 state_ = MARKING;
123 if (FLAG_trace_incremental_marking) { 123 if (FLAG_trace_incremental_marking) {
124 PrintF("[IncrementalMarking] Restarting (new grey objects)\n"); 124 PrintF("[IncrementalMarking] Restarting (new grey objects)\n");
125 } 125 }
126 } 126 }
127 } 127 }
128 128
129 static void RecordWriteFromCode(HeapObject* obj, 129 static void RecordWriteFromCode(HeapObject* obj,
130 Object* value, 130 Object** slot,
131 Isolate* isolate); 131 Isolate* isolate);
132 132
133 static void RecordWriteForEvacuationFromCode(HeapObject* obj, 133 static void RecordWriteForEvacuationFromCode(HeapObject* obj,
134 Object** slot, 134 Object** slot,
135 Isolate* isolate); 135 Isolate* isolate);
136 136
137 // Record a slot for compaction. Returns false for objects that are 137 // Record a slot for compaction. Returns false for objects that are
138 // guaranteed to be rescanned or not guaranteed to survive. 138 // guaranteed to be rescanned or not guaranteed to survive.
139 // 139 //
140 // No slots in white objects should be recorded, as some slots are typed and 140 // No slots in white objects should be recorded, as some slots are typed and
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 intptr_t write_barriers_invoked_since_last_step_; 276 intptr_t write_barriers_invoked_since_last_step_;
277 277
278 int no_marking_scope_depth_; 278 int no_marking_scope_depth_;
279 279
280 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); 280 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking);
281 }; 281 };
282 282
283 } } // namespace v8::internal 283 } } // namespace v8::internal
284 284
285 #endif // V8_INCREMENTAL_MARKING_H_ 285 #endif // V8_INCREMENTAL_MARKING_H_
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/incremental-marking.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698