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

Side by Side Diff: src/heap/heap.cc

Issue 1163563002: Version 4.3.61.27 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@4.3
Patch Set: Created 5 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
« no previous file with comments | « include/v8-version.h ('k') | no next file » | 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/bits.h" 9 #include "src/base/bits.h"
10 #include "src/base/once.h" 10 #include "src/base/once.h"
(...skipping 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 break; 1017 break;
1018 } 1018 }
1019 } 1019 }
1020 } 1020 }
1021 if (perform_gc) { 1021 if (perform_gc) {
1022 if (space == NEW_SPACE) { 1022 if (space == NEW_SPACE) {
1023 CollectGarbage(NEW_SPACE, "failed to reserve space in the new space"); 1023 CollectGarbage(NEW_SPACE, "failed to reserve space in the new space");
1024 } else { 1024 } else {
1025 if (counter > 1) { 1025 if (counter > 1) {
1026 CollectAllGarbage( 1026 CollectAllGarbage(
1027 kReduceMemoryFootprintMask, 1027 kReduceMemoryFootprintMask | kAbortIncrementalMarkingMask,
1028 "failed to reserve space in paged or large " 1028 "failed to reserve space in paged or large "
1029 "object space, trying to reduce memory footprint"); 1029 "object space, trying to reduce memory footprint");
1030 } else { 1030 } else {
1031 CollectAllGarbage( 1031 CollectAllGarbage(
1032 kAbortIncrementalMarkingMask, 1032 kAbortIncrementalMarkingMask,
1033 "failed to reserve space in paged or large object space"); 1033 "failed to reserve space in paged or large object space");
1034 } 1034 }
1035 } 1035 }
1036 gc_performed = true; 1036 gc_performed = true;
1037 break; // Abort for-loop over spaces and retry. 1037 break; // Abort for-loop over spaces and retry.
(...skipping 5424 matching lines...) Expand 10 before | Expand all | Expand 10 after
6462 static_cast<int>(object_sizes_last_time_[index])); 6462 static_cast<int>(object_sizes_last_time_[index]));
6463 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) 6463 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT)
6464 #undef ADJUST_LAST_TIME_OBJECT_COUNT 6464 #undef ADJUST_LAST_TIME_OBJECT_COUNT
6465 6465
6466 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); 6466 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_));
6467 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); 6467 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_));
6468 ClearObjectStats(); 6468 ClearObjectStats();
6469 } 6469 }
6470 } 6470 }
6471 } // namespace v8::internal 6471 } // namespace v8::internal
OLDNEW
« no previous file with comments | « include/v8-version.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698