| 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 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 AddReducer(data, &graph_reducer, &common_reducer); | 535 AddReducer(data, &graph_reducer, &common_reducer); |
| 536 if (data->info()->is_frame_specializing()) { | 536 if (data->info()->is_frame_specializing()) { |
| 537 AddReducer(data, &graph_reducer, &frame_specialization); | 537 AddReducer(data, &graph_reducer, &frame_specialization); |
| 538 } | 538 } |
| 539 if (data->info()->is_native_context_specializing()) { | 539 if (data->info()->is_native_context_specializing()) { |
| 540 AddReducer(data, &graph_reducer, &global_specialization); | 540 AddReducer(data, &graph_reducer, &global_specialization); |
| 541 } | 541 } |
| 542 AddReducer(data, &graph_reducer, &context_specialization); | 542 AddReducer(data, &graph_reducer, &context_specialization); |
| 543 AddReducer(data, &graph_reducer, &inlining); | 543 AddReducer(data, &graph_reducer, &inlining); |
| 544 graph_reducer.ReduceGraph(); | 544 graph_reducer.ReduceGraph(); |
| 545 inlining.ProcessCandidates(); |
| 545 } | 546 } |
| 546 }; | 547 }; |
| 547 | 548 |
| 548 | 549 |
| 549 struct TyperPhase { | 550 struct TyperPhase { |
| 550 static const char* phase_name() { return "typer"; } | 551 static const char* phase_name() { return "typer"; } |
| 551 | 552 |
| 552 void Run(PipelineData* data, Zone* temp_zone, Typer* typer) { | 553 void Run(PipelineData* data, Zone* temp_zone, Typer* typer) { |
| 553 NodeVector roots(temp_zone); | 554 NodeVector roots(temp_zone); |
| 554 data->jsgraph()->GetCachedNodes(&roots); | 555 data->jsgraph()->GetCachedNodes(&roots); |
| (...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1430 tcf << AsC1VRegisterAllocationData("CodeGen", | 1431 tcf << AsC1VRegisterAllocationData("CodeGen", |
| 1431 data->register_allocation_data()); | 1432 data->register_allocation_data()); |
| 1432 } | 1433 } |
| 1433 | 1434 |
| 1434 data->DeleteRegisterAllocationZone(); | 1435 data->DeleteRegisterAllocationZone(); |
| 1435 } | 1436 } |
| 1436 | 1437 |
| 1437 } // namespace compiler | 1438 } // namespace compiler |
| 1438 } // namespace internal | 1439 } // namespace internal |
| 1439 } // namespace v8 | 1440 } // namespace v8 |
| OLD | NEW |