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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 } | 391 } |
392 }; | 392 }; |
393 | 393 |
394 | 394 |
395 struct InliningPhase { | 395 struct InliningPhase { |
396 static const char* phase_name() { return "inlining"; } | 396 static const char* phase_name() { return "inlining"; } |
397 | 397 |
398 void Run(PipelineData* data, Zone* temp_zone) { | 398 void Run(PipelineData* data, Zone* temp_zone) { |
399 SourcePositionTable::Scope pos(data->source_positions(), | 399 SourcePositionTable::Scope pos(data->source_positions(), |
400 SourcePosition::Unknown()); | 400 SourcePosition::Unknown()); |
401 JSInliner inliner(temp_zone, data->info(), data->jsgraph()); | 401 JSInliner inliner(data->info(), data->jsgraph(), temp_zone); |
402 inliner.Inline(); | 402 inliner.Inline(); |
403 } | 403 } |
404 }; | 404 }; |
405 | 405 |
406 | 406 |
407 struct TyperPhase { | 407 struct TyperPhase { |
408 static const char* phase_name() { return "typer"; } | 408 static const char* phase_name() { return "typer"; } |
409 | 409 |
410 void Run(PipelineData* data, Zone* temp_zone) { data->typer()->Run(); } | 410 void Run(PipelineData* data, Zone* temp_zone) { data->typer()->Run(); } |
411 }; | 411 }; |
(...skipping 673 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 |