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

Side by Side Diff: src/heap.cc

Issue 358873005: Remove script collected debug event. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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/debug-debugger.js ('k') | test/cctest/test-debug.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 // 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/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api.h" 8 #include "src/api.h"
9 #include "src/base/once.h" 9 #include "src/base/once.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 UPDATE_COUNTERS_AND_FRAGMENTATION_FOR_SPACE(cell_space) 710 UPDATE_COUNTERS_AND_FRAGMENTATION_FOR_SPACE(cell_space)
711 UPDATE_COUNTERS_AND_FRAGMENTATION_FOR_SPACE(property_cell_space) 711 UPDATE_COUNTERS_AND_FRAGMENTATION_FOR_SPACE(property_cell_space)
712 UPDATE_COUNTERS_AND_FRAGMENTATION_FOR_SPACE(lo_space) 712 UPDATE_COUNTERS_AND_FRAGMENTATION_FOR_SPACE(lo_space)
713 #undef UPDATE_COUNTERS_FOR_SPACE 713 #undef UPDATE_COUNTERS_FOR_SPACE
714 #undef UPDATE_FRAGMENTATION_FOR_SPACE 714 #undef UPDATE_FRAGMENTATION_FOR_SPACE
715 #undef UPDATE_COUNTERS_AND_FRAGMENTATION_FOR_SPACE 715 #undef UPDATE_COUNTERS_AND_FRAGMENTATION_FOR_SPACE
716 716
717 #ifdef DEBUG 717 #ifdef DEBUG
718 ReportStatisticsAfterGC(); 718 ReportStatisticsAfterGC();
719 #endif // DEBUG 719 #endif // DEBUG
720 isolate_->debug()->AfterGarbageCollection();
721 720
722 // Remember the last top pointer so that we can later find out 721 // Remember the last top pointer so that we can later find out
723 // whether we allocated in new space since the last GC. 722 // whether we allocated in new space since the last GC.
724 new_space_top_after_last_gc_ = new_space()->top(); 723 new_space_top_after_last_gc_ = new_space()->top();
725 } 724 }
726 725
727 726
728 void Heap::CollectAllGarbage(int flags, 727 void Heap::CollectAllGarbage(int flags,
729 const char* gc_reason, 728 const char* gc_reason,
730 const v8::GCCallbackFlags gc_callback_flags) { 729 const v8::GCCallbackFlags gc_callback_flags) {
(...skipping 5708 matching lines...) Expand 10 before | Expand all | Expand 10 after
6439 static_cast<int>(object_sizes_last_time_[index])); 6438 static_cast<int>(object_sizes_last_time_[index]));
6440 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) 6439 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT)
6441 #undef ADJUST_LAST_TIME_OBJECT_COUNT 6440 #undef ADJUST_LAST_TIME_OBJECT_COUNT
6442 6441
6443 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); 6442 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_));
6444 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); 6443 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_));
6445 ClearObjectStats(); 6444 ClearObjectStats();
6446 } 6445 }
6447 6446
6448 } } // namespace v8::internal 6447 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/debug-debugger.js ('k') | test/cctest/test-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698