Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(374)

Unified Diff: runtime/vm/flow_graph_optimizer.h

Issue 504143003: Support Int32 representation for selected binary operations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/vm/flow_graph_optimizer.h
diff --git a/runtime/vm/flow_graph_optimizer.h b/runtime/vm/flow_graph_optimizer.h
index 376b1e7ab6a1ca2a498a7283746dc9939e639bf3..8f6c260c426bfa0f8d0bfdf7e2197e1d7391e8d7 100644
--- a/runtime/vm/flow_graph_optimizer.h
+++ b/runtime/vm/flow_graph_optimizer.h
@@ -41,6 +41,8 @@ class FlowGraphOptimizer : public FlowGraphVisitor {
void SelectRepresentations();
+ void WidenSmiToInt32();
+
void InferIntRanges();
void SelectIntegerInstructions();
@@ -268,6 +270,8 @@ class LICM : public ValueObject {
void Optimize();
+ void OptimisticallySpecializeSmiPhis();
+
private:
FlowGraph* flow_graph() const { return flow_graph_; }
@@ -275,10 +279,9 @@ class LICM : public ValueObject {
BlockEntryInstr* pre_header,
Instruction* current);
- void TryHoistCheckSmiThroughPhi(ForwardInstructionIterator* it,
- BlockEntryInstr* header,
- BlockEntryInstr* pre_header,
- CheckSmiInstr* current);
+ void TrySpecializeSmiPhi(PhiInstr* phi,
+ BlockEntryInstr* header,
+ BlockEntryInstr* pre_header);
FlowGraph* const flow_graph_;
};

Powered by Google App Engine
This is Rietveld 408576698