| 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/adapters.h" | 10 #include "src/base/adapters.h" |
| (...skipping 1123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1134 GraphReplayPrinter::PrintReplay(data.graph()); | 1134 GraphReplayPrinter::PrintReplay(data.graph()); |
| 1135 } | 1135 } |
| 1136 | 1136 |
| 1137 base::SmartPointer<Typer> typer; | 1137 base::SmartPointer<Typer> typer; |
| 1138 if (info()->is_typing_enabled()) { | 1138 if (info()->is_typing_enabled()) { |
| 1139 // Type the graph. | 1139 // Type the graph. |
| 1140 typer.Reset(new Typer(isolate(), data.graph(), | 1140 typer.Reset(new Typer(isolate(), data.graph(), |
| 1141 info()->is_deoptimization_enabled() | 1141 info()->is_deoptimization_enabled() |
| 1142 ? Typer::kDeoptimizationEnabled | 1142 ? Typer::kDeoptimizationEnabled |
| 1143 : Typer::kNoFlags, | 1143 : Typer::kNoFlags, |
| 1144 info()->dependencies(), info()->function_type())); | 1144 info()->dependencies())); |
| 1145 Run<TyperPhase>(typer.get()); | 1145 Run<TyperPhase>(typer.get()); |
| 1146 RunPrintAndVerify("Typed"); | 1146 RunPrintAndVerify("Typed"); |
| 1147 } | 1147 } |
| 1148 | 1148 |
| 1149 BeginPhaseKind("lowering"); | 1149 BeginPhaseKind("lowering"); |
| 1150 | 1150 |
| 1151 if (info()->is_typing_enabled()) { | 1151 if (info()->is_typing_enabled()) { |
| 1152 // Lower JSOperators where we can determine types. | 1152 // Lower JSOperators where we can determine types. |
| 1153 Run<TypedLoweringPhase>(); | 1153 Run<TypedLoweringPhase>(); |
| 1154 RunPrintAndVerify("Lowered typed"); | 1154 RunPrintAndVerify("Lowered typed"); |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1475 tcf << AsC1VRegisterAllocationData("CodeGen", | 1475 tcf << AsC1VRegisterAllocationData("CodeGen", |
| 1476 data->register_allocation_data()); | 1476 data->register_allocation_data()); |
| 1477 } | 1477 } |
| 1478 | 1478 |
| 1479 data->DeleteRegisterAllocationZone(); | 1479 data->DeleteRegisterAllocationZone(); |
| 1480 } | 1480 } |
| 1481 | 1481 |
| 1482 } // namespace compiler | 1482 } // namespace compiler |
| 1483 } // namespace internal | 1483 } // namespace internal |
| 1484 } // namespace v8 | 1484 } // namespace v8 |
| OLD | NEW |