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 "src/v8.h" | 7 #include "src/v8.h" |
8 | 8 |
9 #include "src/ast.h" | 9 #include "src/ast.h" |
10 #include "src/base/platform/platform.h" | 10 #include "src/base/platform/platform.h" |
(...skipping 1556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1567 sweeper_thread_[i] = NULL; | 1567 sweeper_thread_[i] = NULL; |
1568 } | 1568 } |
1569 delete[] sweeper_thread_; | 1569 delete[] sweeper_thread_; |
1570 sweeper_thread_ = NULL; | 1570 sweeper_thread_ = NULL; |
1571 | 1571 |
1572 if (FLAG_job_based_sweeping && | 1572 if (FLAG_job_based_sweeping && |
1573 heap_.mark_compact_collector()->sweeping_in_progress()) { | 1573 heap_.mark_compact_collector()->sweeping_in_progress()) { |
1574 heap_.mark_compact_collector()->EnsureSweepingCompleted(); | 1574 heap_.mark_compact_collector()->EnsureSweepingCompleted(); |
1575 } | 1575 } |
1576 | 1576 |
1577 if (FLAG_hydrogen_stats) GetHStatistics()->Print(); | 1577 if (FLAG_turbo_stats) GetTStatistics()->Print("TurboFan"); |
| 1578 if (FLAG_hydrogen_stats) GetHStatistics()->Print("Hydrogen"); |
1578 | 1579 |
1579 if (FLAG_print_deopt_stress) { | 1580 if (FLAG_print_deopt_stress) { |
1580 PrintF(stdout, "=== Stress deopt counter: %u\n", stress_deopt_count_); | 1581 PrintF(stdout, "=== Stress deopt counter: %u\n", stress_deopt_count_); |
1581 } | 1582 } |
1582 | 1583 |
1583 // We must stop the logger before we tear down other components. | 1584 // We must stop the logger before we tear down other components. |
1584 Sampler* sampler = logger_->sampler(); | 1585 Sampler* sampler = logger_->sampler(); |
1585 if (sampler && sampler->IsActive()) sampler->Stop(); | 1586 if (sampler && sampler->IsActive()) sampler->Stop(); |
1586 | 1587 |
1587 delete deoptimizer_data_; | 1588 delete deoptimizer_data_; |
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2113 } | 2114 } |
2114 } | 2115 } |
2115 | 2116 |
2116 | 2117 |
2117 HStatistics* Isolate::GetHStatistics() { | 2118 HStatistics* Isolate::GetHStatistics() { |
2118 if (hstatistics() == NULL) set_hstatistics(new HStatistics()); | 2119 if (hstatistics() == NULL) set_hstatistics(new HStatistics()); |
2119 return hstatistics(); | 2120 return hstatistics(); |
2120 } | 2121 } |
2121 | 2122 |
2122 | 2123 |
| 2124 HStatistics* Isolate::GetTStatistics() { |
| 2125 if (tstatistics() == NULL) set_tstatistics(new HStatistics()); |
| 2126 return tstatistics(); |
| 2127 } |
| 2128 |
| 2129 |
2123 HTracer* Isolate::GetHTracer() { | 2130 HTracer* Isolate::GetHTracer() { |
2124 if (htracer() == NULL) set_htracer(new HTracer(id())); | 2131 if (htracer() == NULL) set_htracer(new HTracer(id())); |
2125 return htracer(); | 2132 return htracer(); |
2126 } | 2133 } |
2127 | 2134 |
2128 | 2135 |
2129 CodeTracer* Isolate::GetCodeTracer() { | 2136 CodeTracer* Isolate::GetCodeTracer() { |
2130 if (code_tracer() == NULL) set_code_tracer(new CodeTracer(id())); | 2137 if (code_tracer() == NULL) set_code_tracer(new CodeTracer(id())); |
2131 return code_tracer(); | 2138 return code_tracer(); |
2132 } | 2139 } |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2362 if (prev_ && prev_->Intercept(flag)) return true; | 2369 if (prev_ && prev_->Intercept(flag)) return true; |
2363 // Then check whether this scope intercepts. | 2370 // Then check whether this scope intercepts. |
2364 if ((flag & intercept_mask_)) { | 2371 if ((flag & intercept_mask_)) { |
2365 intercepted_flags_ |= flag; | 2372 intercepted_flags_ |= flag; |
2366 return true; | 2373 return true; |
2367 } | 2374 } |
2368 return false; | 2375 return false; |
2369 } | 2376 } |
2370 | 2377 |
2371 } } // namespace v8::internal | 2378 } } // namespace v8::internal |
OLD | NEW |