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

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

Issue 10634032: Fixed a typo, one more reason to get rid of StrictCompare vs StrictCompareComp distinction. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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
« no previous file with comments | « no previous file | runtime/vm/flow_graph_optimizer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9
10 namespace dart { 10 namespace dart {
11 11
12 template <typename T> class GrowableArray; 12 template <typename T> class GrowableArray;
13 13
14 class FlowGraphOptimizer : public FlowGraphVisitor { 14 class FlowGraphOptimizer : public FlowGraphVisitor {
15 public: 15 public:
16 explicit FlowGraphOptimizer(const GrowableArray<BlockEntryInstr*>& blocks) 16 explicit FlowGraphOptimizer(const GrowableArray<BlockEntryInstr*>& blocks)
17 : FlowGraphVisitor(blocks) {} 17 : FlowGraphVisitor(blocks) {}
18 virtual ~FlowGraphOptimizer() {} 18 virtual ~FlowGraphOptimizer() {}
19 19
20 void ApplyICData(); 20 void ApplyICData();
21 21
22 virtual void VisitStaticCall(StaticCallComp* comp); 22 virtual void VisitStaticCall(StaticCallComp* comp);
23 virtual void VisitInstanceCall(InstanceCallComp* comp); 23 virtual void VisitInstanceCall(InstanceCallComp* comp);
24 virtual void VisitInstanceSetter(InstanceSetterComp* comp); 24 virtual void VisitInstanceSetter(InstanceSetterComp* comp);
25 virtual void VisitLoadIndexed(LoadIndexedComp* comp); 25 virtual void VisitLoadIndexed(LoadIndexedComp* comp);
26 virtual void VisitStoreIndexed(StoreIndexedComp* comp); 26 virtual void VisitStoreIndexed(StoreIndexedComp* comp);
27 virtual void VisitRelationalOp(RelationalOpComp* comp); 27 virtual void VisitRelationalOp(RelationalOpComp* comp);
28 28
29 virtual void VisitStrictCompareComp(StrictCompareComp* comp); 29 virtual void VisitStrictCompare(StrictCompareComp* comp);
30 virtual void VisitEqualityCompare(EqualityCompareComp* comp); 30 virtual void VisitEqualityCompare(EqualityCompareComp* comp);
31 31
32 virtual void VisitDo(DoInstr* instr); 32 virtual void VisitDo(DoInstr* instr);
33 virtual void VisitBind(BindInstr* instr); 33 virtual void VisitBind(BindInstr* instr);
34 34
35 private: 35 private:
36 void VisitBlocks(); 36 void VisitBlocks();
37 37
38 bool TryReplaceWithBinaryOp(InstanceCallComp* comp, Token::Kind op_kind); 38 bool TryReplaceWithBinaryOp(InstanceCallComp* comp, Token::Kind op_kind);
39 bool TryReplaceWithUnaryOp(InstanceCallComp* comp, Token::Kind op_kind); 39 bool TryReplaceWithUnaryOp(InstanceCallComp* comp, Token::Kind op_kind);
40 40
41 bool TryInlineInstanceGetter(InstanceCallComp* comp); 41 bool TryInlineInstanceGetter(InstanceCallComp* comp);
42 bool TryInlineInstanceSetter(InstanceSetterComp* comp); 42 bool TryInlineInstanceSetter(InstanceSetterComp* comp);
43 43
44 bool TryInlineInstanceMethod(InstanceCallComp* comp); 44 bool TryInlineInstanceMethod(InstanceCallComp* comp);
45 45
46 DISALLOW_COPY_AND_ASSIGN(FlowGraphOptimizer); 46 DISALLOW_COPY_AND_ASSIGN(FlowGraphOptimizer);
47 }; 47 };
48 48
49 } // namespace dart 49 } // namespace dart
50 50
51 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ 51 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698