OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |