OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |