Revision: 23442
Author: [email protected]
Date: Wed Aug 27 09:52:32 2014 UTC
Log: Wire up simplified and change lowering in pipeline.
[email protected]
Review URL: https://codereview.chromium.org/511713003
https://code.google.com/p/v8/source/detail?r=23442
Modified:
/branches/bleeding_edge/src/compiler/pipeline.cc
=======================================
--- /branches/bleeding_edge/src/compiler/pipeline.cc Tue Aug 26 15:25:07
2014 UTC
+++ /branches/bleeding_edge/src/compiler/pipeline.cc Wed Aug 27 09:52:32
2014 UTC
@@ -6,6 +6,7 @@
#include "src/base/platform/elapsed-timer.h"
#include "src/compiler/ast-graph-builder.h"
+#include "src/compiler/change-lowering.h"
#include "src/compiler/code-generator.h"
#include "src/compiler/graph-replay.h"
#include "src/compiler/graph-visualizer.h"
@@ -233,6 +234,32 @@
VerifyAndPrintGraph(&graph, "Lowered typed");
}
+ {
+ // Lower simplified operators and insert changes.
+ PhaseStats lowering_stats(info(), PhaseStats::CREATE_GRAPH,
+ "simplified lowering");
+ SourcePositionTable::Scope pos(&source_positions,
+ SourcePosition::Unknown());
+ SimplifiedLowering lowering(&jsgraph);
+ lowering.LowerAllNodes();
+
+ VerifyAndPrintGraph(&graph, "Lowered simplified");
+ }
+ {
+ // Lower changes that have been inserted before.
+ PhaseStats lowering_stats(info(), PhaseStats::CREATE_GRAPH,
+ "change lowering");
+ SourcePositionTable::Scope pos(&source_positions,
+ SourcePosition::Unknown());
+ Linkage linkage(info());
+ MachineOperatorBuilder machine(zone());
+ ChangeLowering lowering(&jsgraph, &linkage, &machine);
+ GraphReducer graph_reducer(&graph);
+ graph_reducer.AddReducer(&lowering);
+ graph_reducer.ReduceGraph();
+
+ VerifyAndPrintGraph(&graph, "Lowered changes");
+ }
}
Handle<Code> code = Handle<Code>::null();
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.