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

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

Issue 12317011: Inline ByteArray._setIndexed in the flow graph optimizer. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: fixed assert with ICData::New Created 7 years, 10 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 #include "vm/flow_graph.h" 9 #include "vm/flow_graph.h"
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // Attempt to build ICData for call using propagated class-ids. 55 // Attempt to build ICData for call using propagated class-ids.
56 bool TryCreateICData(InstanceCallInstr* call); 56 bool TryCreateICData(InstanceCallInstr* call);
57 57
58 void SpecializePolymorphicInstanceCall(PolymorphicInstanceCallInstr* call); 58 void SpecializePolymorphicInstanceCall(PolymorphicInstanceCallInstr* call);
59 59
60 intptr_t PrepareIndexedOp(InstanceCallInstr* call, 60 intptr_t PrepareIndexedOp(InstanceCallInstr* call,
61 intptr_t class_id, 61 intptr_t class_id,
62 Definition** array, 62 Definition** array,
63 Definition** index); 63 Definition** index);
64 bool TryReplaceWithStoreIndexed(InstanceCallInstr* call); 64 bool TryReplaceWithStoreIndexed(InstanceCallInstr* call);
65 bool TryInlineByteArraySetIndexed(InstanceCallInstr* call);
66 void BuildStoreIndexed(InstanceCallInstr* call,
67 const ICData& value_check,
68 intptr_t class_id);
65 bool TryReplaceWithLoadIndexed(InstanceCallInstr* call); 69 bool TryReplaceWithLoadIndexed(InstanceCallInstr* call);
66 70
67 bool TryReplaceWithBinaryOp(InstanceCallInstr* call, Token::Kind op_kind); 71 bool TryReplaceWithBinaryOp(InstanceCallInstr* call, Token::Kind op_kind);
68 bool TryReplaceWithUnaryOp(InstanceCallInstr* call, Token::Kind op_kind); 72 bool TryReplaceWithUnaryOp(InstanceCallInstr* call, Token::Kind op_kind);
69 73
70 bool TryInlineInstanceGetter(InstanceCallInstr* call); 74 bool TryInlineInstanceGetter(InstanceCallInstr* call);
71 bool TryInlineInstanceSetter(InstanceCallInstr* call, 75 bool TryInlineInstanceSetter(InstanceCallInstr* call,
72 const ICData& unary_ic_data); 76 const ICData& unary_ic_data);
73 77
74 bool TryInlineInstanceMethod(InstanceCallInstr* call); 78 bool TryInlineInstanceMethod(InstanceCallInstr* call);
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 234
231 // Worklists of blocks and definitions. 235 // Worklists of blocks and definitions.
232 GrowableArray<BlockEntryInstr*> block_worklist_; 236 GrowableArray<BlockEntryInstr*> block_worklist_;
233 GrowableArray<Definition*> definition_worklist_; 237 GrowableArray<Definition*> definition_worklist_;
234 }; 238 };
235 239
236 240
237 } // namespace dart 241 } // namespace dart
238 242
239 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ 243 #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