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

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

Issue 15745004: Fix counting of scanned bytes in incremental marking step for large object. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | « no previous file | 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 void EnterNoMarkingScope() { 213 void EnterNoMarkingScope() {
214 no_marking_scope_depth_++; 214 no_marking_scope_depth_++;
215 } 215 }
216 216
217 void LeaveNoMarkingScope() { 217 void LeaveNoMarkingScope() {
218 no_marking_scope_depth_--; 218 no_marking_scope_depth_--;
219 } 219 }
220 220
221 void UncommitMarkingDeque(); 221 void UncommitMarkingDeque();
222 222
223 void NotifyIncompleteScanOfObject(int unscanned_bytes) {
224 unscanned_bytes_of_large_object_ = unscanned_bytes;
225 }
226
223 private: 227 private:
224 int64_t SpaceLeftInOldSpace(); 228 int64_t SpaceLeftInOldSpace();
225 229
226 void ResetStepCounters(); 230 void ResetStepCounters();
227 231
228 void StartMarking(CompactionFlag flag); 232 void StartMarking(CompactionFlag flag);
229 233
230 void ActivateIncrementalWriteBarrier(PagedSpace* space); 234 void ActivateIncrementalWriteBarrier(PagedSpace* space);
231 static void ActivateIncrementalWriteBarrier(NewSpace* space); 235 static void ActivateIncrementalWriteBarrier(NewSpace* space);
232 void ActivateIncrementalWriteBarrier(); 236 void ActivateIncrementalWriteBarrier();
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 double steps_took_since_last_gc_; 271 double steps_took_since_last_gc_;
268 int64_t bytes_rescanned_; 272 int64_t bytes_rescanned_;
269 bool should_hurry_; 273 bool should_hurry_;
270 int marking_speed_; 274 int marking_speed_;
271 intptr_t bytes_scanned_; 275 intptr_t bytes_scanned_;
272 intptr_t allocated_; 276 intptr_t allocated_;
273 intptr_t write_barriers_invoked_since_last_step_; 277 intptr_t write_barriers_invoked_since_last_step_;
274 278
275 int no_marking_scope_depth_; 279 int no_marking_scope_depth_;
276 280
281 int unscanned_bytes_of_large_object_;
282
277 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); 283 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking);
278 }; 284 };
279 285
280 } } // namespace v8::internal 286 } } // namespace v8::internal
281 287
282 #endif // V8_INCREMENTAL_MARKING_H_ 288 #endif // V8_INCREMENTAL_MARKING_H_
OLDNEW
« no previous file with comments | « no previous file | src/incremental-marking.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698