| 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/change-lowering.h" | 9 #include "src/compiler/change-lowering.h" |
| 10 #include "src/compiler/code-generator.h" | 10 #include "src/compiler/code-generator.h" |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 | 193 |
| 194 if (info()->is_context_specializing()) { | 194 if (info()->is_context_specializing()) { |
| 195 SourcePositionTable::Scope pos(&source_positions, | 195 SourcePositionTable::Scope pos(&source_positions, |
| 196 SourcePosition::Unknown()); | 196 SourcePosition::Unknown()); |
| 197 // Specialize the code to the context as aggressively as possible. | 197 // Specialize the code to the context as aggressively as possible. |
| 198 JSContextSpecializer spec(info(), &jsgraph, context_node); | 198 JSContextSpecializer spec(info(), &jsgraph, context_node); |
| 199 spec.SpecializeToContext(); | 199 spec.SpecializeToContext(); |
| 200 VerifyAndPrintGraph(&graph, "Context specialized"); | 200 VerifyAndPrintGraph(&graph, "Context specialized"); |
| 201 } | 201 } |
| 202 | 202 |
| 203 if (FLAG_turbo_inlining) { | 203 if (info()->is_inlining_enabled()) { |
| 204 SourcePositionTable::Scope pos(&source_positions, | 204 SourcePositionTable::Scope pos(&source_positions, |
| 205 SourcePosition::Unknown()); | 205 SourcePosition::Unknown()); |
| 206 JSInliner inliner(info(), &jsgraph); | 206 JSInliner inliner(info(), &jsgraph); |
| 207 inliner.Inline(); | 207 inliner.Inline(); |
| 208 VerifyAndPrintGraph(&graph, "Inlined"); | 208 VerifyAndPrintGraph(&graph, "Inlined"); |
| 209 } | 209 } |
| 210 | 210 |
| 211 // Print a replay of the initial graph. | 211 // Print a replay of the initial graph. |
| 212 if (FLAG_print_turbo_replay) { | 212 if (FLAG_print_turbo_replay) { |
| 213 GraphReplayPrinter::PrintReplay(&graph); | 213 GraphReplayPrinter::PrintReplay(&graph); |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 } | 390 } |
| 391 | 391 |
| 392 | 392 |
| 393 void Pipeline::TearDown() { | 393 void Pipeline::TearDown() { |
| 394 InstructionOperand::TearDownCaches(); | 394 InstructionOperand::TearDownCaches(); |
| 395 } | 395 } |
| 396 | 396 |
| 397 } // namespace compiler | 397 } // namespace compiler |
| 398 } // namespace internal | 398 } // namespace internal |
| 399 } // namespace v8 | 399 } // namespace v8 |
| OLD | NEW |