| 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 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 DeadCodeElimination dead_code_elimination(&graph_reducer, data->graph(), | 511 DeadCodeElimination dead_code_elimination(&graph_reducer, data->graph(), |
| 512 data->common()); | 512 data->common()); |
| 513 CommonOperatorReducer common_reducer(&graph_reducer, data->graph(), | 513 CommonOperatorReducer common_reducer(&graph_reducer, data->graph(), |
| 514 data->common(), data->machine()); | 514 data->common(), data->machine()); |
| 515 JSGlobalSpecialization global_specialization( | 515 JSGlobalSpecialization global_specialization( |
| 516 &graph_reducer, data->jsgraph(), | 516 &graph_reducer, data->jsgraph(), |
| 517 data->info()->is_deoptimization_enabled() | 517 data->info()->is_deoptimization_enabled() |
| 518 ? JSGlobalSpecialization::kDeoptimizationEnabled | 518 ? JSGlobalSpecialization::kDeoptimizationEnabled |
| 519 : JSGlobalSpecialization::kNoFlags, | 519 : JSGlobalSpecialization::kNoFlags, |
| 520 handle(data->info()->global_object(), data->isolate()), | 520 handle(data->info()->global_object(), data->isolate()), |
| 521 data->info()->dependencies(), temp_zone); | 521 data->info()->dependencies()); |
| 522 AddReducer(data, &graph_reducer, &dead_code_elimination); | 522 AddReducer(data, &graph_reducer, &dead_code_elimination); |
| 523 AddReducer(data, &graph_reducer, &common_reducer); | 523 AddReducer(data, &graph_reducer, &common_reducer); |
| 524 AddReducer(data, &graph_reducer, &global_specialization); | 524 AddReducer(data, &graph_reducer, &global_specialization); |
| 525 graph_reducer.ReduceGraph(); | 525 graph_reducer.ReduceGraph(); |
| 526 } | 526 } |
| 527 }; | 527 }; |
| 528 | 528 |
| 529 | 529 |
| 530 struct InliningPhase { | 530 struct InliningPhase { |
| 531 static const char* phase_name() { return "inlining"; } | 531 static const char* phase_name() { return "inlining"; } |
| (...skipping 919 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1451 tcf << AsC1VRegisterAllocationData("CodeGen", | 1451 tcf << AsC1VRegisterAllocationData("CodeGen", |
| 1452 data->register_allocation_data()); | 1452 data->register_allocation_data()); |
| 1453 } | 1453 } |
| 1454 | 1454 |
| 1455 data->DeleteRegisterAllocationZone(); | 1455 data->DeleteRegisterAllocationZone(); |
| 1456 } | 1456 } |
| 1457 | 1457 |
| 1458 } // namespace compiler | 1458 } // namespace compiler |
| 1459 } // namespace internal | 1459 } // namespace internal |
| 1460 } // namespace v8 | 1460 } // namespace v8 |
| OLD | NEW |