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

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

Issue 11275110: Do not recompute unary_checks repeatedly. Add special (and quicker) way to check for method overrid… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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/cha.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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 intptr_t class_id, 56 intptr_t class_id,
57 Value** array, 57 Value** array,
58 Value** index); 58 Value** index);
59 bool TryReplaceWithStoreIndexed(InstanceCallInstr* call); 59 bool TryReplaceWithStoreIndexed(InstanceCallInstr* call);
60 bool TryReplaceWithLoadIndexed(InstanceCallInstr* call); 60 bool TryReplaceWithLoadIndexed(InstanceCallInstr* call);
61 61
62 bool TryReplaceWithBinaryOp(InstanceCallInstr* call, Token::Kind op_kind); 62 bool TryReplaceWithBinaryOp(InstanceCallInstr* call, Token::Kind op_kind);
63 bool TryReplaceWithUnaryOp(InstanceCallInstr* call, Token::Kind op_kind); 63 bool TryReplaceWithUnaryOp(InstanceCallInstr* call, Token::Kind op_kind);
64 64
65 bool TryInlineInstanceGetter(InstanceCallInstr* call); 65 bool TryInlineInstanceGetter(InstanceCallInstr* call);
66 bool TryInlineInstanceSetter(InstanceCallInstr* call); 66 bool TryInlineInstanceSetter(InstanceCallInstr* call,
67 const ICData& unary_ic_data);
67 68
68 bool TryInlineInstanceMethod(InstanceCallInstr* call); 69 bool TryInlineInstanceMethod(InstanceCallInstr* call);
69 70
70 void AddCheckClass(InstanceCallInstr* call, Value* value); 71 void AddCheckClass(InstanceCallInstr* call, Value* value);
71 72
72 void InsertAfter(Instruction* prev, 73 void InsertAfter(Instruction* prev,
73 Instruction* instr, 74 Instruction* instr,
74 Environment* env, 75 Environment* env,
75 Definition::UseKind use_kind); 76 Definition::UseKind use_kind);
76 77
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 225
225 // Worklists of blocks and definitions. 226 // Worklists of blocks and definitions.
226 GrowableArray<BlockEntryInstr*> block_worklist_; 227 GrowableArray<BlockEntryInstr*> block_worklist_;
227 GrowableArray<Definition*> definition_worklist_; 228 GrowableArray<Definition*> definition_worklist_;
228 }; 229 };
229 230
230 231
231 } // namespace dart 232 } // namespace dart
232 233
233 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ 234 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_
OLDNEW
« no previous file with comments | « runtime/vm/cha.cc ('k') | runtime/vm/flow_graph_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698