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 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
621 }; | 621 }; |
622 | 622 |
623 | 623 |
624 struct TypedLoweringPhase { | 624 struct TypedLoweringPhase { |
625 static const char* phase_name() { return "typed lowering"; } | 625 static const char* phase_name() { return "typed lowering"; } |
626 | 626 |
627 void Run(PipelineData* data, Zone* temp_zone) { | 627 void Run(PipelineData* data, Zone* temp_zone) { |
628 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone); | 628 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone); |
629 DeadCodeElimination dead_code_elimination(&graph_reducer, data->graph(), | 629 DeadCodeElimination dead_code_elimination(&graph_reducer, data->graph(), |
630 data->common()); | 630 data->common()); |
631 LoadElimination load_elimination(&graph_reducer); | 631 LoadElimination load_elimination(&graph_reducer, data->graph(), |
| 632 data->common()); |
632 JSBuiltinReducer builtin_reducer(&graph_reducer, data->jsgraph()); | 633 JSBuiltinReducer builtin_reducer(&graph_reducer, data->jsgraph()); |
633 MaybeHandle<LiteralsArray> literals_array = | 634 MaybeHandle<LiteralsArray> literals_array = |
634 data->info()->is_native_context_specializing() | 635 data->info()->is_native_context_specializing() |
635 ? handle(data->info()->closure()->literals(), data->isolate()) | 636 ? handle(data->info()->closure()->literals(), data->isolate()) |
636 : MaybeHandle<LiteralsArray>(); | 637 : MaybeHandle<LiteralsArray>(); |
637 JSCreateLowering create_lowering( | 638 JSCreateLowering create_lowering( |
638 &graph_reducer, data->info()->dependencies(), data->jsgraph(), | 639 &graph_reducer, data->info()->dependencies(), data->jsgraph(), |
639 literals_array, temp_zone); | 640 literals_array, temp_zone); |
640 JSTypedLowering::Flags typed_lowering_flags = JSTypedLowering::kNoFlags; | 641 JSTypedLowering::Flags typed_lowering_flags = JSTypedLowering::kNoFlags; |
641 if (data->info()->is_deoptimization_enabled()) { | 642 if (data->info()->is_deoptimization_enabled()) { |
(...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1522 } | 1523 } |
1523 | 1524 |
1524 data->DeleteRegisterAllocationZone(); | 1525 data->DeleteRegisterAllocationZone(); |
1525 } | 1526 } |
1526 | 1527 |
1527 Isolate* Pipeline::isolate() const { return info()->isolate(); } | 1528 Isolate* Pipeline::isolate() const { return info()->isolate(); } |
1528 | 1529 |
1529 } // namespace compiler | 1530 } // namespace compiler |
1530 } // namespace internal | 1531 } // namespace internal |
1531 } // namespace v8 | 1532 } // namespace v8 |
OLD | NEW |