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

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

Issue 11746024: Optimize instanceof: if all results are true and tests can be done using class only replace instanc… (Closed) Base URL: http://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') | 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 93
94 void InlineImplicitInstanceGetter(InstanceCallInstr* call); 94 void InlineImplicitInstanceGetter(InstanceCallInstr* call);
95 void InlineArrayLengthGetter(InstanceCallInstr* call, 95 void InlineArrayLengthGetter(InstanceCallInstr* call,
96 intptr_t length_offset, 96 intptr_t length_offset,
97 bool is_immutable, 97 bool is_immutable,
98 MethodRecognizer::Kind kind); 98 MethodRecognizer::Kind kind);
99 void InlineGrowableArrayCapacityGetter(InstanceCallInstr* call); 99 void InlineGrowableArrayCapacityGetter(InstanceCallInstr* call);
100 void InlineStringLengthGetter(InstanceCallInstr* call); 100 void InlineStringLengthGetter(InstanceCallInstr* call);
101 void InlineStringIsEmptyGetter(InstanceCallInstr* call); 101 void InlineStringIsEmptyGetter(InstanceCallInstr* call);
102 102
103 RawBool* InstanceOfAsBool(const ICData& ic_data,
104 const AbstractType& type) const;
105
106
103 FlowGraph* flow_graph_; 107 FlowGraph* flow_graph_;
104 108
105 DISALLOW_COPY_AND_ASSIGN(FlowGraphOptimizer); 109 DISALLOW_COPY_AND_ASSIGN(FlowGraphOptimizer);
106 }; 110 };
107 111
108 112
109 class ParsedFunction; 113 class ParsedFunction;
110 114
111 115
112 class FlowGraphTypePropagator : public FlowGraphVisitor { 116 class FlowGraphTypePropagator : public FlowGraphVisitor {
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 235
232 // Worklists of blocks and definitions. 236 // Worklists of blocks and definitions.
233 GrowableArray<BlockEntryInstr*> block_worklist_; 237 GrowableArray<BlockEntryInstr*> block_worklist_;
234 GrowableArray<Definition*> definition_worklist_; 238 GrowableArray<Definition*> definition_worklist_;
235 }; 239 };
236 240
237 241
238 } // namespace dart 242 } // namespace dart
239 243
240 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ 244 #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