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

Side by Side Diff: runtime/vm/flow_graph_optimizer.h

Issue 16813002: Make constant propagation to fold x == x and re-run type propagation for better range analysis. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_FLOW_GRAPH_OPTIMIZER_H_ 5 #ifndef VM_FLOW_GRAPH_OPTIMIZER_H_
6 #define VM_FLOW_GRAPH_OPTIMIZER_H_ 6 #define VM_FLOW_GRAPH_OPTIMIZER_H_
7 7
8 #include "vm/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 #include "vm/flow_graph.h" 9 #include "vm/flow_graph.h"
10 10
(...skipping 24 matching lines...) Expand all
35 // shift can be a truncating Smi shift-left and result is always Smi. 35 // shift can be a truncating Smi shift-left and result is always Smi.
36 void TryOptimizeLeftShiftWithBitAndPattern(); 36 void TryOptimizeLeftShiftWithBitAndPattern();
37 37
38 // Returns true if any instructions were canonicalized away. 38 // Returns true if any instructions were canonicalized away.
39 bool Canonicalize(); 39 bool Canonicalize();
40 40
41 void EliminateDeadPhis(); 41 void EliminateDeadPhis();
42 42
43 void SelectRepresentations(); 43 void SelectRepresentations();
44 44
45 void UnboxPhis();
46
47 void InferSmiRanges(); 45 void InferSmiRanges();
48 46
49 void AnalyzeTryCatch(); 47 void AnalyzeTryCatch();
50 48
51 // Remove environments from the instructions which do not deoptimize. 49 // Remove environments from the instructions which do not deoptimize.
52 void EliminateEnvironments(); 50 void EliminateEnvironments();
53 51
54 virtual void VisitStaticCall(StaticCallInstr* instr); 52 virtual void VisitStaticCall(StaticCallInstr* instr);
55 virtual void VisitInstanceCall(InstanceCallInstr* instr); 53 virtual void VisitInstanceCall(InstanceCallInstr* instr);
56 virtual void VisitRelationalOp(RelationalOpInstr* instr); 54 virtual void VisitRelationalOp(RelationalOpInstr* instr);
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 // Optimize spill stores inside try-blocks by identifying values that always 365 // Optimize spill stores inside try-blocks by identifying values that always
368 // contain a single known constant at catch block entry. 366 // contain a single known constant at catch block entry.
369 class TryCatchAnalyzer : public AllStatic { 367 class TryCatchAnalyzer : public AllStatic {
370 public: 368 public:
371 static void Optimize(FlowGraph* flow_graph); 369 static void Optimize(FlowGraph* flow_graph);
372 }; 370 };
373 371
374 } // namespace dart 372 } // namespace dart
375 373
376 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ 374 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698