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

Side by Side Diff: src/isolate.cc

Issue 2566133002: [heap] Clean-up uses of EnsureSweepingComplete uses. (Closed)
Patch Set: move code Created 4 years 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 | « src/heap/spaces.cc ('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/isolate.h" 5 #include "src/isolate.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include <fstream> // NOLINT(readability/streams) 9 #include <fstream> // NOLINT(readability/streams)
10 #include <sstream> 10 #include <sstream>
(...skipping 2240 matching lines...) Expand 10 before | Expand all | Expand 10 after
2251 debug()->Unload(); 2251 debug()->Unload();
2252 2252
2253 FreeThreadResources(); 2253 FreeThreadResources();
2254 2254
2255 if (concurrent_recompilation_enabled()) { 2255 if (concurrent_recompilation_enabled()) {
2256 optimizing_compile_dispatcher_->Stop(); 2256 optimizing_compile_dispatcher_->Stop();
2257 delete optimizing_compile_dispatcher_; 2257 delete optimizing_compile_dispatcher_;
2258 optimizing_compile_dispatcher_ = NULL; 2258 optimizing_compile_dispatcher_ = NULL;
2259 } 2259 }
2260 2260
2261 if (heap_.mark_compact_collector()->sweeping_in_progress()) { 2261 heap_.mark_compact_collector()->EnsureSweepingCompleted();
2262 heap_.mark_compact_collector()->EnsureSweepingCompleted();
2263 }
2264 2262
2265 DumpAndResetCompilationStats(); 2263 DumpAndResetCompilationStats();
2266 2264
2267 if (FLAG_print_deopt_stress) { 2265 if (FLAG_print_deopt_stress) {
2268 PrintF(stdout, "=== Stress deopt counter: %u\n", stress_deopt_count_); 2266 PrintF(stdout, "=== Stress deopt counter: %u\n", stress_deopt_count_);
2269 } 2267 }
2270 2268
2271 if (cpu_profiler_) { 2269 if (cpu_profiler_) {
2272 cpu_profiler_->DeleteAllProfiles(); 2270 cpu_profiler_->DeleteAllProfiles();
2273 } 2271 }
(...skipping 1285 matching lines...) Expand 10 before | Expand all | Expand 10 after
3559 // Then check whether this scope intercepts. 3557 // Then check whether this scope intercepts.
3560 if ((flag & intercept_mask_)) { 3558 if ((flag & intercept_mask_)) {
3561 intercepted_flags_ |= flag; 3559 intercepted_flags_ |= flag;
3562 return true; 3560 return true;
3563 } 3561 }
3564 return false; 3562 return false;
3565 } 3563 }
3566 3564
3567 } // namespace internal 3565 } // namespace internal
3568 } // namespace v8 3566 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/spaces.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698