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 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
504 DeadCodeElimination dead_code_elimination(&graph_reducer, data->graph(), | 504 DeadCodeElimination dead_code_elimination(&graph_reducer, data->graph(), |
505 data->common()); | 505 data->common()); |
506 CommonOperatorReducer common_reducer(&graph_reducer, data->graph(), | 506 CommonOperatorReducer common_reducer(&graph_reducer, data->graph(), |
507 data->common(), data->machine()); | 507 data->common(), data->machine()); |
508 JSGlobalSpecialization global_specialization( | 508 JSGlobalSpecialization global_specialization( |
509 &graph_reducer, data->jsgraph(), | 509 &graph_reducer, data->jsgraph(), |
510 data->info()->is_deoptimization_enabled() | 510 data->info()->is_deoptimization_enabled() |
511 ? JSGlobalSpecialization::kDeoptimizationEnabled | 511 ? JSGlobalSpecialization::kDeoptimizationEnabled |
512 : JSGlobalSpecialization::kNoFlags, | 512 : JSGlobalSpecialization::kNoFlags, |
513 handle(data->info()->global_object(), data->isolate()), | 513 handle(data->info()->global_object(), data->isolate()), |
514 data->info()->dependencies()); | 514 data->info()->dependencies(), temp_zone); |
515 AddReducer(data, &graph_reducer, &dead_code_elimination); | 515 AddReducer(data, &graph_reducer, &dead_code_elimination); |
516 AddReducer(data, &graph_reducer, &common_reducer); | 516 AddReducer(data, &graph_reducer, &common_reducer); |
517 AddReducer(data, &graph_reducer, &global_specialization); | 517 AddReducer(data, &graph_reducer, &global_specialization); |
518 graph_reducer.ReduceGraph(); | 518 graph_reducer.ReduceGraph(); |
519 } | 519 } |
520 }; | 520 }; |
521 | 521 |
522 | 522 |
523 struct InliningPhase { | 523 struct InliningPhase { |
524 static const char* phase_name() { return "inlining"; } | 524 static const char* phase_name() { return "inlining"; } |
(...skipping 919 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1444 tcf << AsC1VRegisterAllocationData("CodeGen", | 1444 tcf << AsC1VRegisterAllocationData("CodeGen", |
1445 data->register_allocation_data()); | 1445 data->register_allocation_data()); |
1446 } | 1446 } |
1447 | 1447 |
1448 data->DeleteRegisterAllocationZone(); | 1448 data->DeleteRegisterAllocationZone(); |
1449 } | 1449 } |
1450 | 1450 |
1451 } // namespace compiler | 1451 } // namespace compiler |
1452 } // namespace internal | 1452 } // namespace internal |
1453 } // namespace v8 | 1453 } // namespace v8 |
OLD | NEW |