| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/compiler/pipeline.h" | 5 #include "src/compiler/pipeline.h" |
| 6 | 6 |
| 7 #include <fstream> // NOLINT(readability/streams) | 7 #include <fstream> // NOLINT(readability/streams) |
| 8 #include <sstream> | 8 #include <sstream> |
| 9 | 9 |
| 10 #include "src/base/platform/elapsed-timer.h" | 10 #include "src/base/platform/elapsed-timer.h" |
| (...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 631 void Run(PipelineData* data, Zone* temp_zone, const bool untyped) { | 631 void Run(PipelineData* data, Zone* temp_zone, const bool untyped) { |
| 632 Verifier::Run(data->graph(), FLAG_turbo_types && !untyped | 632 Verifier::Run(data->graph(), FLAG_turbo_types && !untyped |
| 633 ? Verifier::TYPED | 633 ? Verifier::TYPED |
| 634 : Verifier::UNTYPED); | 634 : Verifier::UNTYPED); |
| 635 } | 635 } |
| 636 }; | 636 }; |
| 637 | 637 |
| 638 | 638 |
| 639 void Pipeline::BeginPhaseKind(const char* phase_kind_name) { | 639 void Pipeline::BeginPhaseKind(const char* phase_kind_name) { |
| 640 if (data_->pipeline_statistics() != NULL) { | 640 if (data_->pipeline_statistics() != NULL) { |
| 641 data_->pipeline_statistics()->BeginPhaseKind("phase_kind_name"); | 641 data_->pipeline_statistics()->BeginPhaseKind(phase_kind_name); |
| 642 } | 642 } |
| 643 } | 643 } |
| 644 | 644 |
| 645 | 645 |
| 646 void Pipeline::RunPrintAndVerify(const char* phase, bool untyped) { | 646 void Pipeline::RunPrintAndVerify(const char* phase, bool untyped) { |
| 647 if (FLAG_trace_turbo) { | 647 if (FLAG_trace_turbo) { |
| 648 Run<PrintGraphPhase>(phase); | 648 Run<PrintGraphPhase>(phase); |
| 649 } | 649 } |
| 650 if (VerifyGraphs()) { | 650 if (VerifyGraphs()) { |
| 651 Run<VerifyGraphPhase>(untyped); | 651 Run<VerifyGraphPhase>(untyped); |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 973 } | 973 } |
| 974 | 974 |
| 975 | 975 |
| 976 void Pipeline::TearDown() { | 976 void Pipeline::TearDown() { |
| 977 InstructionOperand::TearDownCaches(); | 977 InstructionOperand::TearDownCaches(); |
| 978 } | 978 } |
| 979 | 979 |
| 980 } // namespace compiler | 980 } // namespace compiler |
| 981 } // namespace internal | 981 } // namespace internal |
| 982 } // namespace v8 | 982 } // namespace v8 |
| OLD | NEW |