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

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: 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
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); 160 void InlineStringLengthGetter(InstanceCallInstr* call);
165 void InlineStringIsEmptyGetter(InstanceCallInstr* call); 161 void InlineStringIsEmptyGetter(InstanceCallInstr* call);
166 void InlineObjectCid(InstanceCallInstr* call); 162 void InlineObjectCid(InstanceCallInstr* call);
167 163
168 RawBool* InstanceOfAsBool(const ICData& ic_data, 164 RawBool* InstanceOfAsBool(const ICData& ic_data,
169 const AbstractType& type) const; 165 const AbstractType& type) const;
170 166
171 void ReplaceWithMathCFunction(InstanceCallInstr* call, 167 void ReplaceWithMathCFunction(InstanceCallInstr* call,
172 MethodRecognizer::Kind recognized_kind); 168 MethodRecognizer::Kind recognized_kind);
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 // Optimize spill stores inside try-blocks by identifying values that always 374 // Optimize spill stores inside try-blocks by identifying values that always
379 // contain a single known constant at catch block entry. 375 // contain a single known constant at catch block entry.
380 class TryCatchAnalyzer : public AllStatic { 376 class TryCatchAnalyzer : public AllStatic {
381 public: 377 public:
382 static void Optimize(FlowGraph* flow_graph); 378 static void Optimize(FlowGraph* flow_graph);
383 }; 379 };
384 380
385 } // namespace dart 381 } // namespace dart
386 382
387 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ 383 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698