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 1032 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1043 // Print a replay of the initial graph. | 1043 // Print a replay of the initial graph. |
1044 GraphReplayPrinter::PrintReplay(data.graph()); | 1044 GraphReplayPrinter::PrintReplay(data.graph()); |
1045 } | 1045 } |
1046 | 1046 |
1047 // Bailout here in case target architecture is not supported. | 1047 // Bailout here in case target architecture is not supported. |
1048 if (!SupportedTarget()) return Handle<Code>::null(); | 1048 if (!SupportedTarget()) return Handle<Code>::null(); |
1049 | 1049 |
1050 SmartPointer<Typer> typer; | 1050 SmartPointer<Typer> typer; |
1051 if (info()->is_typing_enabled()) { | 1051 if (info()->is_typing_enabled()) { |
1052 // Type the graph. | 1052 // Type the graph. |
1053 typer.Reset(new Typer(isolate(), data.graph(), info()->context())); | 1053 typer.Reset(new Typer(isolate(), data.graph(), info()->function_type(), |
| 1054 info()->context())); |
1054 Run<TyperPhase>(typer.get()); | 1055 Run<TyperPhase>(typer.get()); |
1055 RunPrintAndVerify("Typed"); | 1056 RunPrintAndVerify("Typed"); |
1056 } | 1057 } |
1057 | 1058 |
1058 BeginPhaseKind("lowering"); | 1059 BeginPhaseKind("lowering"); |
1059 | 1060 |
1060 if (info()->is_typing_enabled()) { | 1061 if (info()->is_typing_enabled()) { |
1061 // Lower JSOperators where we can determine types. | 1062 // Lower JSOperators where we can determine types. |
1062 Run<TypedLoweringPhase>(); | 1063 Run<TypedLoweringPhase>(); |
1063 RunPrintAndVerify("Lowered typed"); | 1064 RunPrintAndVerify("Lowered typed"); |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1351 tcf << AsC1VRegisterAllocationData("CodeGen", | 1352 tcf << AsC1VRegisterAllocationData("CodeGen", |
1352 data->register_allocation_data()); | 1353 data->register_allocation_data()); |
1353 } | 1354 } |
1354 | 1355 |
1355 data->DeleteRegisterAllocationZone(); | 1356 data->DeleteRegisterAllocationZone(); |
1356 } | 1357 } |
1357 | 1358 |
1358 } // namespace compiler | 1359 } // namespace compiler |
1359 } // namespace internal | 1360 } // namespace internal |
1360 } // namespace v8 | 1361 } // namespace v8 |
OLD | NEW |