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

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

Issue 11092090: Inline indexed load and store of typed array float64. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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 26 matching lines...) Expand all
37 virtual void VisitRelationalOp(RelationalOpInstr* instr); 37 virtual void VisitRelationalOp(RelationalOpInstr* instr);
38 virtual void VisitEqualityCompare(EqualityCompareInstr* instr); 38 virtual void VisitEqualityCompare(EqualityCompareInstr* instr);
39 virtual void VisitBranch(BranchInstr* instr); 39 virtual void VisitBranch(BranchInstr* instr);
40 40
41 void InsertBefore(Instruction* next, 41 void InsertBefore(Instruction* next,
42 Instruction* instr, 42 Instruction* instr,
43 Environment* env, 43 Environment* env,
44 Definition::UseKind use_kind); 44 Definition::UseKind use_kind);
45 45
46 private: 46 private:
47 bool TryReplaceWithArrayOp(InstanceCallInstr* call, Token::Kind op_kind); 47 Value* PrepareIndexedOp(InstanceCallInstr* call, intptr_t class_id);
48 bool TryReplaceWithStoreIndexed(InstanceCallInstr* call);
49 bool TryReplaceWithLoadIndexed(InstanceCallInstr* call);
50
48 bool TryReplaceWithBinaryOp(InstanceCallInstr* call, Token::Kind op_kind); 51 bool TryReplaceWithBinaryOp(InstanceCallInstr* call, Token::Kind op_kind);
49 bool TryReplaceWithUnaryOp(InstanceCallInstr* call, Token::Kind op_kind); 52 bool TryReplaceWithUnaryOp(InstanceCallInstr* call, Token::Kind op_kind);
50 53
51 bool TryInlineInstanceGetter(InstanceCallInstr* call); 54 bool TryInlineInstanceGetter(InstanceCallInstr* call);
52 bool TryInlineInstanceSetter(InstanceCallInstr* call); 55 bool TryInlineInstanceSetter(InstanceCallInstr* call);
53 56
54 bool TryInlineInstanceMethod(InstanceCallInstr* call); 57 bool TryInlineInstanceMethod(InstanceCallInstr* call);
55 58
56 void AddCheckClass(InstanceCallInstr* call, Value* value); 59 void AddCheckClass(InstanceCallInstr* call, Value* value);
57 60
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 210
208 // Worklists of blocks and definitions. 211 // Worklists of blocks and definitions.
209 GrowableArray<BlockEntryInstr*> block_worklist_; 212 GrowableArray<BlockEntryInstr*> block_worklist_;
210 GrowableArray<Definition*> definition_worklist_; 213 GrowableArray<Definition*> definition_worklist_;
211 }; 214 };
212 215
213 216
214 } // namespace dart 217 } // namespace dart
215 218
216 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ 219 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698