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

Side by Side Diff: src/gc-tracer.cc

Issue 439233002: Remove all encountered weak maps from the list of weak collections when incremental marking is abor… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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/gc-tracer.h ('k') | src/mark-compact.h » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/gc-tracer.h" 7 #include "src/gc-tracer.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 PrintF("compaction_ptrs=%.1f ", 251 PrintF("compaction_ptrs=%.1f ",
252 current_.scopes[Scope::MC_UPDATE_POINTERS_TO_EVACUATED]); 252 current_.scopes[Scope::MC_UPDATE_POINTERS_TO_EVACUATED]);
253 PrintF("intracompaction_ptrs=%.1f ", 253 PrintF("intracompaction_ptrs=%.1f ",
254 current_.scopes[Scope::MC_UPDATE_POINTERS_BETWEEN_EVACUATED]); 254 current_.scopes[Scope::MC_UPDATE_POINTERS_BETWEEN_EVACUATED]);
255 PrintF("misc_compaction=%.1f ", 255 PrintF("misc_compaction=%.1f ",
256 current_.scopes[Scope::MC_UPDATE_MISC_POINTERS]); 256 current_.scopes[Scope::MC_UPDATE_MISC_POINTERS]);
257 PrintF("weakcollection_process=%.1f ", 257 PrintF("weakcollection_process=%.1f ",
258 current_.scopes[Scope::MC_WEAKCOLLECTION_PROCESS]); 258 current_.scopes[Scope::MC_WEAKCOLLECTION_PROCESS]);
259 PrintF("weakcollection_clear=%.1f ", 259 PrintF("weakcollection_clear=%.1f ",
260 current_.scopes[Scope::MC_WEAKCOLLECTION_CLEAR]); 260 current_.scopes[Scope::MC_WEAKCOLLECTION_CLEAR]);
261 PrintF("weakcollection_abort=%.1f ",
262 current_.scopes[Scope::MC_WEAKCOLLECTION_ABORT]);
261 263
262 PrintF("total_size_before=%" V8_PTR_PREFIX "d ", current_.start_object_size); 264 PrintF("total_size_before=%" V8_PTR_PREFIX "d ", current_.start_object_size);
263 PrintF("total_size_after=%" V8_PTR_PREFIX "d ", current_.end_object_size); 265 PrintF("total_size_after=%" V8_PTR_PREFIX "d ", current_.end_object_size);
264 PrintF("holes_size_before=%" V8_PTR_PREFIX "d ", current_.start_holes_size); 266 PrintF("holes_size_before=%" V8_PTR_PREFIX "d ", current_.start_holes_size);
265 PrintF("holes_size_after=%" V8_PTR_PREFIX "d ", current_.end_holes_size); 267 PrintF("holes_size_after=%" V8_PTR_PREFIX "d ", current_.end_holes_size);
266 268
267 intptr_t allocated_since_last_gc = 269 intptr_t allocated_since_last_gc =
268 current_.start_object_size - previous_.end_object_size; 270 current_.start_object_size - previous_.end_object_size;
269 PrintF("allocated=%" V8_PTR_PREFIX "d ", allocated_since_last_gc); 271 PrintF("allocated=%" V8_PTR_PREFIX "d ", allocated_since_last_gc);
270 PrintF("promoted=%" V8_PTR_PREFIX "d ", heap_->promoted_objects_size_); 272 PrintF("promoted=%" V8_PTR_PREFIX "d ", heap_->promoted_objects_size_);
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 durations += iter->incremental_marking_duration; 378 durations += iter->incremental_marking_duration;
377 ++iter; 379 ++iter;
378 } 380 }
379 381
380 if (durations == 0.0) return 0; 382 if (durations == 0.0) return 0;
381 383
382 return static_cast<intptr_t>(bytes / durations); 384 return static_cast<intptr_t>(bytes / durations);
383 } 385 }
384 } 386 }
385 } // namespace v8::internal 387 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/gc-tracer.h ('k') | src/mark-compact.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698