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" |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 GraphReducer graph_reducer(&graph); | 179 GraphReducer graph_reducer(&graph); |
180 graph_reducer.AddReducer(&phi_reducer); | 180 graph_reducer.AddReducer(&phi_reducer); |
181 graph_reducer.ReduceGraph(); | 181 graph_reducer.ReduceGraph(); |
182 // TODO(mstarzinger): Running reducer once ought to be enough for everyone. | 182 // TODO(mstarzinger): Running reducer once ought to be enough for everyone. |
183 graph_reducer.ReduceGraph(); | 183 graph_reducer.ReduceGraph(); |
184 graph_reducer.ReduceGraph(); | 184 graph_reducer.ReduceGraph(); |
185 } | 185 } |
186 | 186 |
187 VerifyAndPrintGraph(&graph, "Initial untyped"); | 187 VerifyAndPrintGraph(&graph, "Initial untyped"); |
188 | 188 |
189 if (context_specialization_) { | 189 if (info()->is_context_specializing()) { |
190 SourcePositionTable::Scope pos(&source_positions, | 190 SourcePositionTable::Scope pos(&source_positions, |
191 SourcePosition::Unknown()); | 191 SourcePosition::Unknown()); |
192 // Specialize the code to the context as aggressively as possible. | 192 // Specialize the code to the context as aggressively as possible. |
193 JSContextSpecializer spec(info(), &jsgraph, context_node); | 193 JSContextSpecializer spec(info(), &jsgraph, context_node); |
194 spec.SpecializeToContext(); | 194 spec.SpecializeToContext(); |
195 VerifyAndPrintGraph(&graph, "Context specialized"); | 195 VerifyAndPrintGraph(&graph, "Context specialized"); |
196 } | 196 } |
197 | 197 |
198 if (FLAG_turbo_inlining) { | 198 if (FLAG_turbo_inlining) { |
199 SourcePositionTable::Scope pos(&source_positions, | 199 SourcePositionTable::Scope pos(&source_positions, |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 } | 359 } |
360 | 360 |
361 | 361 |
362 void Pipeline::TearDown() { | 362 void Pipeline::TearDown() { |
363 InstructionOperand::TearDownCaches(); | 363 InstructionOperand::TearDownCaches(); |
364 } | 364 } |
365 | 365 |
366 } // namespace compiler | 366 } // namespace compiler |
367 } // namespace internal | 367 } // namespace internal |
368 } // namespace v8 | 368 } // namespace v8 |
OLD | NEW |