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

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

Issue 11642003: Create and cache method extraction stub in the ICData. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: lazyly inject extractors as getters into class 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 | « runtime/vm/flow_graph_builder.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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 void InsertConversionsFor(Definition* def); 83 void InsertConversionsFor(Definition* def);
84 84
85 void InsertConversion(Representation from, 85 void InsertConversion(Representation from,
86 Representation to, 86 Representation to,
87 Instruction* instr, 87 Instruction* instr,
88 Value* use, 88 Value* use,
89 Definition* def, 89 Definition* def,
90 Instruction* deopt_target); 90 Instruction* deopt_target);
91 91
92 bool InstanceCallNeedsClassCheck(InstanceCallInstr* call) const; 92 bool InstanceCallNeedsClassCheck(InstanceCallInstr* call) const;
93 bool MethodExtractorNeedsClassCheck(InstanceCallInstr* call) const;
93 94
94 void InlineImplicitInstanceGetter(InstanceCallInstr* call); 95 void InlineImplicitInstanceGetter(InstanceCallInstr* call);
95 void InlineArrayLengthGetter(InstanceCallInstr* call, 96 void InlineArrayLengthGetter(InstanceCallInstr* call,
96 intptr_t length_offset, 97 intptr_t length_offset,
97 bool is_immutable, 98 bool is_immutable,
98 MethodRecognizer::Kind kind); 99 MethodRecognizer::Kind kind);
99 void InlineGrowableArrayCapacityGetter(InstanceCallInstr* call); 100 void InlineGrowableArrayCapacityGetter(InstanceCallInstr* call);
100 void InlineStringLengthGetter(InstanceCallInstr* call); 101 void InlineStringLengthGetter(InstanceCallInstr* call);
101 void InlineStringIsEmptyGetter(InstanceCallInstr* call); 102 void InlineStringIsEmptyGetter(InstanceCallInstr* call);
102 103
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 236
236 // Worklists of blocks and definitions. 237 // Worklists of blocks and definitions.
237 GrowableArray<BlockEntryInstr*> block_worklist_; 238 GrowableArray<BlockEntryInstr*> block_worklist_;
238 GrowableArray<Definition*> definition_worklist_; 239 GrowableArray<Definition*> definition_worklist_;
239 }; 240 };
240 241
241 242
242 } // namespace dart 243 } // namespace dart
243 244
244 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ 245 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/flow_graph_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698