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/platform/elapsed-timer.h" | 10 #include "src/base/platform/elapsed-timer.h" |
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 } | 434 } |
435 }; | 435 }; |
436 | 436 |
437 | 437 |
438 struct SimplifiedLoweringPhase { | 438 struct SimplifiedLoweringPhase { |
439 static const char* phase_name() { return "simplified lowering"; } | 439 static const char* phase_name() { return "simplified lowering"; } |
440 | 440 |
441 void Run(PipelineData* data, Zone* temp_zone) { | 441 void Run(PipelineData* data, Zone* temp_zone) { |
442 SourcePositionTable::Scope pos(data->source_positions(), | 442 SourcePositionTable::Scope pos(data->source_positions(), |
443 SourcePosition::Unknown()); | 443 SourcePosition::Unknown()); |
444 SimplifiedLowering lowering(data->jsgraph()); | 444 SimplifiedLowering lowering(data->jsgraph(), temp_zone); |
445 lowering.LowerAllNodes(); | 445 lowering.LowerAllNodes(); |
446 ValueNumberingReducer vn_reducer(temp_zone); | 446 ValueNumberingReducer vn_reducer(temp_zone); |
447 SimplifiedOperatorReducer simple_reducer(data->jsgraph()); | 447 SimplifiedOperatorReducer simple_reducer(data->jsgraph()); |
448 MachineOperatorReducer machine_reducer(data->jsgraph()); | 448 MachineOperatorReducer machine_reducer(data->jsgraph()); |
449 CommonOperatorReducer common_reducer; | 449 CommonOperatorReducer common_reducer; |
450 GraphReducer graph_reducer(data->graph(), temp_zone); | 450 GraphReducer graph_reducer(data->graph(), temp_zone); |
451 graph_reducer.AddReducer(&vn_reducer); | 451 graph_reducer.AddReducer(&vn_reducer); |
452 graph_reducer.AddReducer(&simple_reducer); | 452 graph_reducer.AddReducer(&simple_reducer); |
453 graph_reducer.AddReducer(&machine_reducer); | 453 graph_reducer.AddReducer(&machine_reducer); |
454 graph_reducer.AddReducer(&common_reducer); | 454 graph_reducer.AddReducer(&common_reducer); |
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1085 } | 1085 } |
1086 | 1086 |
1087 | 1087 |
1088 void Pipeline::TearDown() { | 1088 void Pipeline::TearDown() { |
1089 InstructionOperand::TearDownCaches(); | 1089 InstructionOperand::TearDownCaches(); |
1090 } | 1090 } |
1091 | 1091 |
1092 } // namespace compiler | 1092 } // namespace compiler |
1093 } // namespace internal | 1093 } // namespace internal |
1094 } // namespace v8 | 1094 } // namespace v8 |
OLD | NEW |