| 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 1042 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1053 // Print a replay of the initial graph. | 1053 // Print a replay of the initial graph. |
| 1054 GraphReplayPrinter::PrintReplay(data.graph()); | 1054 GraphReplayPrinter::PrintReplay(data.graph()); |
| 1055 } | 1055 } |
| 1056 | 1056 |
| 1057 // Bailout here in case target architecture is not supported. | 1057 // Bailout here in case target architecture is not supported. |
| 1058 if (!SupportedTarget()) return Handle<Code>::null(); | 1058 if (!SupportedTarget()) return Handle<Code>::null(); |
| 1059 | 1059 |
| 1060 SmartPointer<Typer> typer; | 1060 SmartPointer<Typer> typer; |
| 1061 if (info()->is_typing_enabled()) { | 1061 if (info()->is_typing_enabled()) { |
| 1062 // Type the graph. | 1062 // Type the graph. |
| 1063 typer.Reset(new Typer(isolate(), data.graph(), info()->context())); | 1063 typer.Reset(new Typer(isolate(), data.graph(), info()->function_type(), |
| 1064 info()->context())); |
| 1064 Run<TyperPhase>(typer.get()); | 1065 Run<TyperPhase>(typer.get()); |
| 1065 RunPrintAndVerify("Typed"); | 1066 RunPrintAndVerify("Typed"); |
| 1066 } | 1067 } |
| 1067 | 1068 |
| 1068 BeginPhaseKind("lowering"); | 1069 BeginPhaseKind("lowering"); |
| 1069 | 1070 |
| 1070 if (info()->is_typing_enabled()) { | 1071 if (info()->is_typing_enabled()) { |
| 1071 // Lower JSOperators where we can determine types. | 1072 // Lower JSOperators where we can determine types. |
| 1072 Run<TypedLoweringPhase>(); | 1073 Run<TypedLoweringPhase>(); |
| 1073 RunPrintAndVerify("Lowered typed"); | 1074 RunPrintAndVerify("Lowered typed"); |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1364 tcf << AsC1VRegisterAllocationData("CodeGen", | 1365 tcf << AsC1VRegisterAllocationData("CodeGen", |
| 1365 data->register_allocation_data()); | 1366 data->register_allocation_data()); |
| 1366 } | 1367 } |
| 1367 | 1368 |
| 1368 data->DeleteRegisterAllocationZone(); | 1369 data->DeleteRegisterAllocationZone(); |
| 1369 } | 1370 } |
| 1370 | 1371 |
| 1371 } // namespace compiler | 1372 } // namespace compiler |
| 1372 } // namespace internal | 1373 } // namespace internal |
| 1373 } // namespace v8 | 1374 } // namespace v8 |
| OLD | NEW |