Index: src/compiler/pipeline.cc |
diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc |
index fa0ff173b25703d3994b2d428160c953ee14c269..b0a5611f57a1ae35f3e1181e49bcea6094743838 100644 |
--- a/src/compiler/pipeline.cc |
+++ b/src/compiler/pipeline.cc |
@@ -13,6 +13,7 @@ |
#include "src/compiler/instruction-selector.h" |
#include "src/compiler/js-context-specialization.h" |
#include "src/compiler/js-generic-lowering.h" |
+#include "src/compiler/js-inlining.h" |
#include "src/compiler/js-typed-lowering.h" |
#include "src/compiler/register-allocator.h" |
#include "src/compiler/schedule.h" |
@@ -156,6 +157,15 @@ Handle<Code> Pipeline::GenerateCode() { |
VerifyAndPrintGraph(&graph, "Context specialized"); |
} |
+ if (FLAG_turbo_inlining) { |
+ SourcePositionTable::Scope pos_(&source_positions, |
+ SourcePosition::Unknown()); |
+ // 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.
|
+ JSInliner inliner(info(), &jsgraph, context_node); |
+ inliner.Inline(); |
+ VerifyAndPrintGraph(&graph, "Inlined"); |
+ } |
+ |
// Print a replay of the initial graph. |
if (FLAG_print_turbo_replay) { |
GraphReplayPrinter::PrintReplay(&graph); |