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 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 | 412 |
413 struct TypedLoweringPhase { | 413 struct TypedLoweringPhase { |
414 static const char* phase_name() { return "typed lowering"; } | 414 static const char* phase_name() { return "typed lowering"; } |
415 | 415 |
416 void Run(PipelineData* data, Zone* temp_zone) { | 416 void Run(PipelineData* data, Zone* temp_zone) { |
417 SourcePositionTable::Scope pos(data->source_positions(), | 417 SourcePositionTable::Scope pos(data->source_positions(), |
418 SourcePosition::Unknown()); | 418 SourcePosition::Unknown()); |
419 ValueNumberingReducer vn_reducer(temp_zone); | 419 ValueNumberingReducer vn_reducer(temp_zone); |
420 LoadElimination load_elimination; | 420 LoadElimination load_elimination; |
421 JSBuiltinReducer builtin_reducer(data->jsgraph()); | 421 JSBuiltinReducer builtin_reducer(data->jsgraph()); |
422 JSTypedLowering typed_lowering(data->jsgraph()); | 422 JSTypedLowering typed_lowering(data->jsgraph(), temp_zone); |
423 SimplifiedOperatorReducer simple_reducer(data->jsgraph()); | 423 SimplifiedOperatorReducer simple_reducer(data->jsgraph()); |
424 GraphReducer graph_reducer(data->graph(), temp_zone); | 424 GraphReducer graph_reducer(data->graph(), temp_zone); |
425 graph_reducer.AddReducer(&vn_reducer); | 425 graph_reducer.AddReducer(&vn_reducer); |
426 graph_reducer.AddReducer(&builtin_reducer); | 426 graph_reducer.AddReducer(&builtin_reducer); |
427 graph_reducer.AddReducer(&typed_lowering); | 427 graph_reducer.AddReducer(&typed_lowering); |
428 graph_reducer.AddReducer(&load_elimination); | 428 graph_reducer.AddReducer(&load_elimination); |
429 graph_reducer.AddReducer(&simple_reducer); | 429 graph_reducer.AddReducer(&simple_reducer); |
430 graph_reducer.ReduceGraph(); | 430 graph_reducer.ReduceGraph(); |
431 } | 431 } |
432 }; | 432 }; |
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1077 } | 1077 } |
1078 | 1078 |
1079 | 1079 |
1080 void Pipeline::TearDown() { | 1080 void Pipeline::TearDown() { |
1081 InstructionOperand::TearDownCaches(); | 1081 InstructionOperand::TearDownCaches(); |
1082 } | 1082 } |
1083 | 1083 |
1084 } // namespace compiler | 1084 } // namespace compiler |
1085 } // namespace internal | 1085 } // namespace internal |
1086 } // namespace v8 | 1086 } // namespace v8 |
OLD | NEW |