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 "src/base/platform/elapsed-timer.h" | 7 #include "src/base/platform/elapsed-timer.h" |
8 #include "src/compiler/ast-graph-builder.h" | 8 #include "src/compiler/ast-graph-builder.h" |
9 #include "src/compiler/code-generator.h" | 9 #include "src/compiler/code-generator.h" |
10 #include "src/compiler/graph-replay.h" | 10 #include "src/compiler/graph-replay.h" |
11 #include "src/compiler/graph-visualizer.h" | 11 #include "src/compiler/graph-visualizer.h" |
12 #include "src/compiler/instruction.h" | 12 #include "src/compiler/instruction.h" |
13 #include "src/compiler/instruction-selector.h" | 13 #include "src/compiler/instruction-selector.h" |
14 #include "src/compiler/js-context-specialization.h" | 14 #include "src/compiler/js-context-specialization.h" |
15 #include "src/compiler/js-generic-lowering.h" | 15 #include "src/compiler/js-generic-lowering.h" |
16 #include "src/compiler/js-inlining.h" | |
16 #include "src/compiler/js-typed-lowering.h" | 17 #include "src/compiler/js-typed-lowering.h" |
17 #include "src/compiler/register-allocator.h" | 18 #include "src/compiler/register-allocator.h" |
18 #include "src/compiler/schedule.h" | 19 #include "src/compiler/schedule.h" |
19 #include "src/compiler/scheduler.h" | 20 #include "src/compiler/scheduler.h" |
20 #include "src/compiler/simplified-lowering.h" | 21 #include "src/compiler/simplified-lowering.h" |
21 #include "src/compiler/typer.h" | 22 #include "src/compiler/typer.h" |
22 #include "src/compiler/verifier.h" | 23 #include "src/compiler/verifier.h" |
23 #include "src/hydrogen.h" | 24 #include "src/hydrogen.h" |
24 #include "src/ostreams.h" | 25 #include "src/ostreams.h" |
25 | 26 |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
149 | 150 |
150 if (FLAG_context_specialization) { | 151 if (FLAG_context_specialization) { |
151 SourcePositionTable::Scope pos_(&source_positions, | 152 SourcePositionTable::Scope pos_(&source_positions, |
152 SourcePosition::Unknown()); | 153 SourcePosition::Unknown()); |
153 // Specialize the code to the context as aggressively as possible. | 154 // Specialize the code to the context as aggressively as possible. |
154 JSContextSpecializer spec(info(), &jsgraph, context_node); | 155 JSContextSpecializer spec(info(), &jsgraph, context_node); |
155 spec.SpecializeToContext(); | 156 spec.SpecializeToContext(); |
156 VerifyAndPrintGraph(&graph, "Context specialized"); | 157 VerifyAndPrintGraph(&graph, "Context specialized"); |
157 } | 158 } |
158 | 159 |
160 if (FLAG_turbo_inlining) { | |
161 SourcePositionTable::Scope pos_(&source_positions, | |
162 SourcePosition::Unknown()); | |
163 // Specialize the code to the context as aggressively as possible. | |
Michael Starzinger
2014/08/12 20:04:46
nit: Comment seems off, lets either drop it or fix
sigurds
2014/08/14 09:54:42
Done.
| |
164 JSInliner inliner(info(), &jsgraph, context_node); | |
165 inliner.Inline(); | |
166 VerifyAndPrintGraph(&graph, "Inlined"); | |
167 } | |
168 | |
159 // Print a replay of the initial graph. | 169 // Print a replay of the initial graph. |
160 if (FLAG_print_turbo_replay) { | 170 if (FLAG_print_turbo_replay) { |
161 GraphReplayPrinter::PrintReplay(&graph); | 171 GraphReplayPrinter::PrintReplay(&graph); |
162 } | 172 } |
163 | 173 |
164 if (FLAG_turbo_types) { | 174 if (FLAG_turbo_types) { |
165 { | 175 { |
166 // Type the graph. | 176 // Type the graph. |
167 PhaseStats typer_stats(info(), PhaseStats::CREATE_GRAPH, "typer"); | 177 PhaseStats typer_stats(info(), PhaseStats::CREATE_GRAPH, "typer"); |
168 typer.Run(&graph, info()->context()); | 178 typer.Run(&graph, info()->context()); |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
303 } | 313 } |
304 | 314 |
305 | 315 |
306 void Pipeline::TearDown() { | 316 void Pipeline::TearDown() { |
307 InstructionOperand::TearDownCaches(); | 317 InstructionOperand::TearDownCaches(); |
308 } | 318 } |
309 | 319 |
310 } // namespace compiler | 320 } // namespace compiler |
311 } // namespace internal | 321 } // namespace internal |
312 } // namespace v8 | 322 } // namespace v8 |
OLD | NEW |