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

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

Issue 11886044: Set statically known ResultCid for AllocateObject. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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') | runtime/vm/il_printer.cc » ('J')
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 void InsertBefore(Instruction* next, 47 void InsertBefore(Instruction* next,
48 Instruction* instr, 48 Instruction* instr,
49 Environment* env, 49 Environment* env,
50 Definition::UseKind use_kind); 50 Definition::UseKind use_kind);
51 51
52 private: 52 private:
53 // Attempt to build ICData for call using propagated class-ids. 53 // Attempt to build ICData for call using propagated class-ids.
54 bool TryCreateICData(InstanceCallInstr* call); 54 bool TryCreateICData(InstanceCallInstr* call);
55 55
56 void SpecializePolymophicInstanceCall(PolymorphicInstanceCallInstr* call);
Florian Schneider 2013/01/15 13:46:58 /s/Polymophic/Polymorphic/g
57
56 intptr_t PrepareIndexedOp(InstanceCallInstr* call, 58 intptr_t PrepareIndexedOp(InstanceCallInstr* call,
57 intptr_t class_id, 59 intptr_t class_id,
58 Value** array, 60 Value** array,
59 Value** index); 61 Value** index);
60 bool TryReplaceWithStoreIndexed(InstanceCallInstr* call); 62 bool TryReplaceWithStoreIndexed(InstanceCallInstr* call);
61 bool TryReplaceWithLoadIndexed(InstanceCallInstr* call); 63 bool TryReplaceWithLoadIndexed(InstanceCallInstr* call);
62 64
63 bool TryReplaceWithBinaryOp(InstanceCallInstr* call, Token::Kind op_kind); 65 bool TryReplaceWithBinaryOp(InstanceCallInstr* call, Token::Kind op_kind);
64 bool TryReplaceWithUnaryOp(InstanceCallInstr* call, Token::Kind op_kind); 66 bool TryReplaceWithUnaryOp(InstanceCallInstr* call, Token::Kind op_kind);
65 67
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 237
236 // Worklists of blocks and definitions. 238 // Worklists of blocks and definitions.
237 GrowableArray<BlockEntryInstr*> block_worklist_; 239 GrowableArray<BlockEntryInstr*> block_worklist_;
238 GrowableArray<Definition*> definition_worklist_; 240 GrowableArray<Definition*> definition_worklist_;
239 }; 241 };
240 242
241 243
242 } // namespace dart 244 } // namespace dart
243 245
244 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ 246 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_optimizer.cc » ('j') | runtime/vm/il_printer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698