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

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

Issue 10700111: Eliminate the type distinction between BindInstr and DoInstr. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Eliminate an unnecessary virtual function. Created 8 years, 5 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 | « runtime/vm/flow_graph_builder.cc ('k') | 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 {
(...skipping 11 matching lines...) Expand all
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 VisitStrictCompare(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);
33 virtual void VisitBind(BindInstr* instr); 32 virtual void VisitBind(BindInstr* instr);
34 33
35 private: 34 private:
36 void VisitBlocks(); 35 void VisitBlocks();
37 36
38 bool TryReplaceWithBinaryOp(InstanceCallComp* comp, Token::Kind op_kind); 37 bool TryReplaceWithBinaryOp(InstanceCallComp* comp, Token::Kind op_kind);
39 bool TryReplaceWithUnaryOp(InstanceCallComp* comp, Token::Kind op_kind); 38 bool TryReplaceWithUnaryOp(InstanceCallComp* comp, Token::Kind op_kind);
40 39
41 bool TryInlineInstanceGetter(InstanceCallComp* comp); 40 bool TryInlineInstanceGetter(InstanceCallComp* comp);
42 bool TryInlineInstanceSetter(InstanceSetterComp* comp); 41 bool TryInlineInstanceSetter(InstanceSetterComp* comp);
(...skipping 18 matching lines...) Expand all
61 private: 60 private:
62 const GrowableArray<BlockEntryInstr*>& blocks_; 61 const GrowableArray<BlockEntryInstr*>& blocks_;
63 bool is_leaf_; 62 bool is_leaf_;
64 63
65 DISALLOW_COPY_AND_ASSIGN(FlowGraphAnalyzer); 64 DISALLOW_COPY_AND_ASSIGN(FlowGraphAnalyzer);
66 }; 65 };
67 66
68 } // namespace dart 67 } // namespace dart
69 68
70 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ 69 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/flow_graph_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698