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

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

Issue 12178019: Add a use list iterator that allows mutation of current. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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') | runtime/vm/intermediate_language.h » ('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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 void InsertAfter(Instruction* prev, 80 void InsertAfter(Instruction* prev,
81 Instruction* instr, 81 Instruction* instr,
82 Environment* env, 82 Environment* env,
83 Definition::UseKind use_kind); 83 Definition::UseKind use_kind);
84 84
85 void InsertConversionsFor(Definition* def); 85 void InsertConversionsFor(Definition* def);
86 86
87 void InsertConversion(Representation from, 87 void InsertConversion(Representation from,
88 Representation to, 88 Representation to,
89 Instruction* instr,
90 Value* use, 89 Value* use,
91 Definition* def, 90 Instruction* insert_before,
92 Instruction* deopt_target); 91 Instruction* deopt_target);
93 92
94 bool InstanceCallNeedsClassCheck(InstanceCallInstr* call) const; 93 bool InstanceCallNeedsClassCheck(InstanceCallInstr* call) const;
95 bool MethodExtractorNeedsClassCheck(InstanceCallInstr* call) const; 94 bool MethodExtractorNeedsClassCheck(InstanceCallInstr* call) const;
96 95
97 void InlineImplicitInstanceGetter(InstanceCallInstr* call); 96 void InlineImplicitInstanceGetter(InstanceCallInstr* call);
98 void InlineArrayLengthGetter(InstanceCallInstr* call, 97 void InlineArrayLengthGetter(InstanceCallInstr* call,
99 intptr_t length_offset, 98 intptr_t length_offset,
100 bool is_immutable, 99 bool is_immutable,
101 MethodRecognizer::Kind kind); 100 MethodRecognizer::Kind kind);
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 239
241 // Worklists of blocks and definitions. 240 // Worklists of blocks and definitions.
242 GrowableArray<BlockEntryInstr*> block_worklist_; 241 GrowableArray<BlockEntryInstr*> block_worklist_;
243 GrowableArray<Definition*> definition_worklist_; 242 GrowableArray<Definition*> definition_worklist_;
244 }; 243 };
245 244
246 245
247 } // namespace dart 246 } // namespace dart
248 247
249 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ 248 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_optimizer.cc » ('j') | runtime/vm/intermediate_language.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698