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

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

Issue 132163005: Version 1.1.0-dev.5.7 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/dart/
Patch Set: Created 6 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_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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 // Add a class check for a call's first argument immediately before the 169 // Add a class check for a call's first argument immediately before the
170 // call, using the call's IC data to determine the check, and the call's 170 // call, using the call's IC data to determine the check, and the call's
171 // deopt ID and deoptimization environment if the check fails. 171 // deopt ID and deoptimization environment if the check fails.
172 void AddReceiverCheck(InstanceCallInstr* call); 172 void AddReceiverCheck(InstanceCallInstr* call);
173 173
174 void ReplaceCall(Definition* call, Definition* replacement); 174 void ReplaceCall(Definition* call, Definition* replacement);
175 175
176 void InsertConversionsFor(Definition* def); 176 void InsertConversionsFor(Definition* def);
177 177
178 void ConvertUse(Value* use, Representation from); 178 void ConvertUse(Value* use, Representation from);
179 void ConvertEnvironmentUse(Value* use, Representation from);
179 180
180 void InsertConversion(Representation from, 181 void InsertConversion(Representation from,
181 Representation to, 182 Representation to,
182 Value* use, 183 Value* use,
183 Instruction* insert_before, 184 bool is_environment_use);
184 Instruction* deopt_target);
185 185
186 bool InstanceCallNeedsClassCheck(InstanceCallInstr* call) const; 186 bool InstanceCallNeedsClassCheck(InstanceCallInstr* call) const;
187 bool MethodExtractorNeedsClassCheck(InstanceCallInstr* call) const; 187 bool MethodExtractorNeedsClassCheck(InstanceCallInstr* call) const;
188 188
189 bool InlineFloat32x4Getter(InstanceCallInstr* call, 189 bool InlineFloat32x4Getter(InstanceCallInstr* call,
190 MethodRecognizer::Kind getter); 190 MethodRecognizer::Kind getter);
191 bool InlineInt32x4Getter(InstanceCallInstr* call, 191 bool InlineInt32x4Getter(InstanceCallInstr* call,
192 MethodRecognizer::Kind getter); 192 MethodRecognizer::Kind getter);
193 bool InlineFloat32x4BinaryOp(InstanceCallInstr* call, 193 bool InlineFloat32x4BinaryOp(InstanceCallInstr* call,
194 Token::Kind op_kind); 194 Token::Kind op_kind);
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 // Optimize spill stores inside try-blocks by identifying values that always 389 // Optimize spill stores inside try-blocks by identifying values that always
390 // contain a single known constant at catch block entry. 390 // contain a single known constant at catch block entry.
391 class TryCatchAnalyzer : public AllStatic { 391 class TryCatchAnalyzer : public AllStatic {
392 public: 392 public:
393 static void Optimize(FlowGraph* flow_graph); 393 static void Optimize(FlowGraph* flow_graph);
394 }; 394 };
395 395
396 } // namespace dart 396 } // namespace dart
397 397
398 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ 398 #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