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 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 DeadCodeElimination dead_code_elimination(&graph_reducer, data->graph(), | 512 DeadCodeElimination dead_code_elimination(&graph_reducer, data->graph(), |
513 data->common()); | 513 data->common()); |
514 CommonOperatorReducer common_reducer(&graph_reducer, data->graph(), | 514 CommonOperatorReducer common_reducer(&graph_reducer, data->graph(), |
515 data->common(), data->machine()); | 515 data->common(), data->machine()); |
516 JSGlobalSpecialization global_specialization( | 516 JSGlobalSpecialization global_specialization( |
517 &graph_reducer, data->jsgraph(), | 517 &graph_reducer, data->jsgraph(), |
518 data->info()->is_deoptimization_enabled() | 518 data->info()->is_deoptimization_enabled() |
519 ? JSGlobalSpecialization::kDeoptimizationEnabled | 519 ? JSGlobalSpecialization::kDeoptimizationEnabled |
520 : JSGlobalSpecialization::kNoFlags, | 520 : JSGlobalSpecialization::kNoFlags, |
521 handle(data->info()->global_object(), data->isolate()), | 521 handle(data->info()->global_object(), data->isolate()), |
522 data->info()->dependencies()); | 522 data->info()->dependencies(), temp_zone); |
523 AddReducer(data, &graph_reducer, &dead_code_elimination); | 523 AddReducer(data, &graph_reducer, &dead_code_elimination); |
524 AddReducer(data, &graph_reducer, &common_reducer); | 524 AddReducer(data, &graph_reducer, &common_reducer); |
525 AddReducer(data, &graph_reducer, &global_specialization); | 525 AddReducer(data, &graph_reducer, &global_specialization); |
526 graph_reducer.ReduceGraph(); | 526 graph_reducer.ReduceGraph(); |
527 } | 527 } |
528 }; | 528 }; |
529 | 529 |
530 | 530 |
531 struct InliningPhase { | 531 struct InliningPhase { |
532 static const char* phase_name() { return "inlining"; } | 532 static const char* phase_name() { return "inlining"; } |
(...skipping 938 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1471 tcf << AsC1VRegisterAllocationData("CodeGen", | 1471 tcf << AsC1VRegisterAllocationData("CodeGen", |
1472 data->register_allocation_data()); | 1472 data->register_allocation_data()); |
1473 } | 1473 } |
1474 | 1474 |
1475 data->DeleteRegisterAllocationZone(); | 1475 data->DeleteRegisterAllocationZone(); |
1476 } | 1476 } |
1477 | 1477 |
1478 } // namespace compiler | 1478 } // namespace compiler |
1479 } // namespace internal | 1479 } // namespace internal |
1480 } // namespace v8 | 1480 } // namespace v8 |
OLD | NEW |