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

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
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.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 #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 intptr_t PrepareIndexedOp(InstanceCallInstr* call,
48 intptr_t class_id,
49 Value** array,
50 Value** index);
51 bool TryReplaceWithStoreIndexed(InstanceCallInstr* call);
52 bool TryReplaceWithLoadIndexed(InstanceCallInstr* call);
53
48 bool TryReplaceWithBinaryOp(InstanceCallInstr* call, Token::Kind op_kind); 54 bool TryReplaceWithBinaryOp(InstanceCallInstr* call, Token::Kind op_kind);
49 bool TryReplaceWithUnaryOp(InstanceCallInstr* call, Token::Kind op_kind); 55 bool TryReplaceWithUnaryOp(InstanceCallInstr* call, Token::Kind op_kind);
50 56
51 bool TryInlineInstanceGetter(InstanceCallInstr* call); 57 bool TryInlineInstanceGetter(InstanceCallInstr* call);
52 bool TryInlineInstanceSetter(InstanceCallInstr* call); 58 bool TryInlineInstanceSetter(InstanceCallInstr* call);
53 59
54 bool TryInlineInstanceMethod(InstanceCallInstr* call); 60 bool TryInlineInstanceMethod(InstanceCallInstr* call);
55 61
56 void AddCheckClass(InstanceCallInstr* call, Value* value); 62 void AddCheckClass(InstanceCallInstr* call, Value* value);
57 63
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 213
208 // Worklists of blocks and definitions. 214 // Worklists of blocks and definitions.
209 GrowableArray<BlockEntryInstr*> block_worklist_; 215 GrowableArray<BlockEntryInstr*> block_worklist_;
210 GrowableArray<Definition*> definition_worklist_; 216 GrowableArray<Definition*> definition_worklist_;
211 }; 217 };
212 218
213 219
214 } // namespace dart 220 } // namespace dart
215 221
216 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ 222 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | runtime/vm/flow_graph_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698