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

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

Issue 23756002: Allow inlining of methods that have an intrinsic translation. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 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 InlineGrowableArrayCapacityGetter(InstanceCallInstr* call);
160 void InlineStringIsEmptyGetter(InstanceCallInstr* call);
161 void InlineObjectCid(InstanceCallInstr* call);
162 159
163 RawBool* InstanceOfAsBool(const ICData& ic_data, 160 RawBool* InstanceOfAsBool(const ICData& ic_data,
164 const AbstractType& type) const; 161 const AbstractType& type) const;
165 162
166 void ReplaceWithMathCFunction(InstanceCallInstr* call, 163 void ReplaceWithMathCFunction(InstanceCallInstr* call,
167 MethodRecognizer::Kind recognized_kind); 164 MethodRecognizer::Kind recognized_kind);
168 165
169 void HandleComparison(ComparisonInstr* comp, 166 void HandleComparison(ComparisonInstr* comp,
170 const ICData& ic_data, 167 const ICData& ic_data,
171 Instruction* current_instruction); 168 Instruction* current_instruction);
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 // Optimize spill stores inside try-blocks by identifying values that always 370 // Optimize spill stores inside try-blocks by identifying values that always
374 // contain a single known constant at catch block entry. 371 // contain a single known constant at catch block entry.
375 class TryCatchAnalyzer : public AllStatic { 372 class TryCatchAnalyzer : public AllStatic {
376 public: 373 public:
377 static void Optimize(FlowGraph* flow_graph); 374 static void Optimize(FlowGraph* flow_graph);
378 }; 375 };
379 376
380 } // namespace dart 377 } // namespace dart
381 378
382 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ 379 #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