Index: src/compiler/pipeline.cc |
diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc |
index 7a0460807d3274b970596d7d23a12de9104e60f6..382ee86d946e238094c599882c69d156e762525b 100644 |
--- a/src/compiler/pipeline.cc |
+++ b/src/compiler/pipeline.cc |
@@ -170,23 +170,23 @@ Handle<Code> Pipeline::GenerateCode() { |
} |
} |
+ Handle<Code> code = Handle<Code>::null(); |
if (SupportedTarget()) { |
- // Lower any remaining generic JSOperators. |
- PhaseStats lowering_stats(info(), PhaseStats::CREATE_GRAPH, |
- "generic lowering"); |
- MachineOperatorBuilder machine(zone()); |
- JSGenericLowering lowering(info(), &jsgraph, &machine, &source_positions); |
- lowering.LowerAllNodes(); |
- |
- VerifyAndPrintGraph(&graph, "Lowered generic"); |
- } |
+ { |
+ // Lower any remaining generic JSOperators. |
+ PhaseStats lowering_stats(info(), PhaseStats::CREATE_GRAPH, |
+ "generic lowering"); |
+ MachineOperatorBuilder machine(zone()); |
+ JSGenericLowering lowering(info(), &jsgraph, &machine, &source_positions); |
+ lowering.LowerAllNodes(); |
- // Compute a schedule. |
- Schedule* schedule = ComputeSchedule(&graph); |
- TraceSchedule(schedule); |
+ VerifyAndPrintGraph(&graph, "Lowered generic"); |
+ } |
+ |
+ // Compute a schedule. |
+ Schedule* schedule = ComputeSchedule(&graph); |
+ TraceSchedule(schedule); |
- Handle<Code> code = Handle<Code>::null(); |
- if (SupportedTarget()) { |
{ |
// Generate optimized code. |
PhaseStats codegen_stats(info(), PhaseStats::CODEGEN, "codegen"); |
@@ -194,6 +194,7 @@ Handle<Code> Pipeline::GenerateCode() { |
code = GenerateCode(&linkage, &graph, schedule, &source_positions); |
info()->SetCode(code); |
} |
+ |
// Print optimized code. |
v8::internal::CodeGenerator::PrintCode(code, info()); |
} |