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

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

Issue 22839003: Polymorphic inlining for some recognized methods in the optimizing compiler. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: fixed modulo performance regression Created 7 years, 4 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_inliner.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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 149
150 bool InlineFloat32x4Getter(InstanceCallInstr* call, 150 bool InlineFloat32x4Getter(InstanceCallInstr* call,
151 MethodRecognizer::Kind getter); 151 MethodRecognizer::Kind getter);
152 bool InlineUint32x4Getter(InstanceCallInstr* call, 152 bool InlineUint32x4Getter(InstanceCallInstr* call,
153 MethodRecognizer::Kind getter); 153 MethodRecognizer::Kind getter);
154 bool InlineFloat32x4BinaryOp(InstanceCallInstr* call, 154 bool InlineFloat32x4BinaryOp(InstanceCallInstr* call,
155 Token::Kind op_kind); 155 Token::Kind op_kind);
156 bool InlineUint32x4BinaryOp(InstanceCallInstr* call, 156 bool InlineUint32x4BinaryOp(InstanceCallInstr* call,
157 Token::Kind op_kind); 157 Token::Kind op_kind);
158 void InlineImplicitInstanceGetter(InstanceCallInstr* call); 158 void InlineImplicitInstanceGetter(InstanceCallInstr* call);
159 void InlineArrayLengthGetter(InstanceCallInstr* call,
160 intptr_t length_offset,
161 bool is_immutable,
162 MethodRecognizer::Kind kind);
163 void InlineGrowableArrayCapacityGetter(InstanceCallInstr* call); 159 void InlineGrowableArrayCapacityGetter(InstanceCallInstr* call);
164 void InlineStringLengthGetter(InstanceCallInstr* call);
165 void InlineStringIsEmptyGetter(InstanceCallInstr* call); 160 void InlineStringIsEmptyGetter(InstanceCallInstr* call);
166 void InlineObjectCid(InstanceCallInstr* call); 161 void InlineObjectCid(InstanceCallInstr* call);
167 162
168 RawBool* InstanceOfAsBool(const ICData& ic_data, 163 RawBool* InstanceOfAsBool(const ICData& ic_data,
169 const AbstractType& type) const; 164 const AbstractType& type) const;
170 165
171 void ReplaceWithMathCFunction(InstanceCallInstr* call, 166 void ReplaceWithMathCFunction(InstanceCallInstr* call,
172 MethodRecognizer::Kind recognized_kind); 167 MethodRecognizer::Kind recognized_kind);
173 168
174 void HandleComparison(ComparisonInstr* comp, 169 void HandleComparison(ComparisonInstr* comp,
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 // Optimize spill stores inside try-blocks by identifying values that always 373 // Optimize spill stores inside try-blocks by identifying values that always
379 // contain a single known constant at catch block entry. 374 // contain a single known constant at catch block entry.
380 class TryCatchAnalyzer : public AllStatic { 375 class TryCatchAnalyzer : public AllStatic {
381 public: 376 public:
382 static void Optimize(FlowGraph* flow_graph); 377 static void Optimize(FlowGraph* flow_graph);
383 }; 378 };
384 379
385 } // namespace dart 380 } // namespace dart
386 381
387 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ 382 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_inliner.cc ('k') | runtime/vm/flow_graph_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698