| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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/hydrogen.h" | 5 #include "src/hydrogen.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #include "src/allocation-site-scopes.h" | 9 #include "src/allocation-site-scopes.h" |
| 10 #include "src/ast-numbering.h" | 10 #include "src/ast-numbering.h" |
| (...skipping 13445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13456 | 13456 |
| 13457 | 13457 |
| 13458 void HTracer::FlushToFile() { | 13458 void HTracer::FlushToFile() { |
| 13459 AppendChars(filename_.start(), trace_.ToCString().get(), trace_.length(), | 13459 AppendChars(filename_.start(), trace_.ToCString().get(), trace_.length(), |
| 13460 false); | 13460 false); |
| 13461 trace_.Reset(); | 13461 trace_.Reset(); |
| 13462 } | 13462 } |
| 13463 | 13463 |
| 13464 | 13464 |
| 13465 void HStatistics::Initialize(CompilationInfo* info) { | 13465 void HStatistics::Initialize(CompilationInfo* info) { |
| 13466 if (info->shared_info().is_null()) return; | 13466 if (!info->has_shared_info()) return; |
| 13467 source_size_ += info->shared_info()->SourceSize(); | 13467 source_size_ += info->shared_info()->SourceSize(); |
| 13468 } | 13468 } |
| 13469 | 13469 |
| 13470 | 13470 |
| 13471 void HStatistics::Print() { | 13471 void HStatistics::Print() { |
| 13472 PrintF( | 13472 PrintF( |
| 13473 "\n" | 13473 "\n" |
| 13474 "----------------------------------------" | 13474 "----------------------------------------" |
| 13475 "----------------------------------------\n" | 13475 "----------------------------------------\n" |
| 13476 "--- Hydrogen timing results:\n" | 13476 "--- Hydrogen timing results:\n" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13544 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13544 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
| 13545 } | 13545 } |
| 13546 | 13546 |
| 13547 #ifdef DEBUG | 13547 #ifdef DEBUG |
| 13548 graph_->Verify(false); // No full verify. | 13548 graph_->Verify(false); // No full verify. |
| 13549 #endif | 13549 #endif |
| 13550 } | 13550 } |
| 13551 | 13551 |
| 13552 } // namespace internal | 13552 } // namespace internal |
| 13553 } // namespace v8 | 13553 } // namespace v8 |
| OLD | NEW |