| 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 <stdlib.h> | 5 #include <stdlib.h> |
| 6 | 6 |
| 7 #include <fstream> // NOLINT(readability/streams) | 7 #include <fstream> // NOLINT(readability/streams) |
| 8 #include <iostream> // NOLINT(readability/streams) | |
| 9 #include <sstream> | 8 #include <sstream> |
| 10 | 9 |
| 11 #include "src/v8.h" | 10 #include "src/v8.h" |
| 12 | 11 |
| 13 #include "src/ast.h" | 12 #include "src/ast.h" |
| 14 #include "src/base/platform/platform.h" | 13 #include "src/base/platform/platform.h" |
| 15 #include "src/base/sys-info.h" | 14 #include "src/base/sys-info.h" |
| 16 #include "src/base/utils/random-number-generator.h" | 15 #include "src/base/utils/random-number-generator.h" |
| 17 #include "src/basic-block-profiler.h" | 16 #include "src/basic-block-profiler.h" |
| 18 #include "src/bootstrapper.h" | 17 #include "src/bootstrapper.h" |
| (...skipping 1584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1603 optimizing_compiler_thread_->Stop(); | 1602 optimizing_compiler_thread_->Stop(); |
| 1604 delete optimizing_compiler_thread_; | 1603 delete optimizing_compiler_thread_; |
| 1605 optimizing_compiler_thread_ = NULL; | 1604 optimizing_compiler_thread_ = NULL; |
| 1606 } | 1605 } |
| 1607 | 1606 |
| 1608 if (heap_.mark_compact_collector()->sweeping_in_progress()) { | 1607 if (heap_.mark_compact_collector()->sweeping_in_progress()) { |
| 1609 heap_.mark_compact_collector()->EnsureSweepingCompleted(); | 1608 heap_.mark_compact_collector()->EnsureSweepingCompleted(); |
| 1610 } | 1609 } |
| 1611 | 1610 |
| 1612 if (turbo_statistics() != NULL) { | 1611 if (turbo_statistics() != NULL) { |
| 1613 std::cout << *turbo_statistics() << std::endl; | 1612 OFStream os(stdout); |
| 1613 os << *turbo_statistics() << std::endl; |
| 1614 } | 1614 } |
| 1615 if (FLAG_hydrogen_stats) GetHStatistics()->Print(); | 1615 if (FLAG_hydrogen_stats) GetHStatistics()->Print(); |
| 1616 | 1616 |
| 1617 if (FLAG_print_deopt_stress) { | 1617 if (FLAG_print_deopt_stress) { |
| 1618 PrintF(stdout, "=== Stress deopt counter: %u\n", stress_deopt_count_); | 1618 PrintF(stdout, "=== Stress deopt counter: %u\n", stress_deopt_count_); |
| 1619 } | 1619 } |
| 1620 | 1620 |
| 1621 // We must stop the logger before we tear down other components. | 1621 // We must stop the logger before we tear down other components. |
| 1622 Sampler* sampler = logger_->sampler(); | 1622 Sampler* sampler = logger_->sampler(); |
| 1623 if (sampler && sampler->IsActive()) sampler->Stop(); | 1623 if (sampler && sampler->IsActive()) sampler->Stop(); |
| (...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2402 if (prev_ && prev_->Intercept(flag)) return true; | 2402 if (prev_ && prev_->Intercept(flag)) return true; |
| 2403 // Then check whether this scope intercepts. | 2403 // Then check whether this scope intercepts. |
| 2404 if ((flag & intercept_mask_)) { | 2404 if ((flag & intercept_mask_)) { |
| 2405 intercepted_flags_ |= flag; | 2405 intercepted_flags_ |= flag; |
| 2406 return true; | 2406 return true; |
| 2407 } | 2407 } |
| 2408 return false; | 2408 return false; |
| 2409 } | 2409 } |
| 2410 | 2410 |
| 2411 } } // namespace v8::internal | 2411 } } // namespace v8::internal |
| OLD | NEW |