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

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

Issue 475763002: VM: Small cleanup in optimizer and intrinsics code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 | « no previous file | runtime/vm/flow_graph_optimizer.cc » ('j') | runtime/vm/flow_graph_optimizer.cc » ('J')
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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 void InsertConversionsFor(Definition* def); 208 void InsertConversionsFor(Definition* def);
209 209
210 void ConvertUse(Value* use, Representation from); 210 void ConvertUse(Value* use, Representation from);
211 void ConvertEnvironmentUse(Value* use, Representation from); 211 void ConvertEnvironmentUse(Value* use, Representation from);
212 212
213 void InsertConversion(Representation from, 213 void InsertConversion(Representation from,
214 Representation to, 214 Representation to,
215 Value* use, 215 Value* use,
216 bool is_environment_use); 216 bool is_environment_use);
217 217
218 bool InstanceCallNeedsClassCheck(InstanceCallInstr* call) const; 218 bool InstanceCallNeedsClassCheck(InstanceCallInstr* call,
219 bool MethodExtractorNeedsClassCheck(InstanceCallInstr* call) const; 219 bool is_method_extractor) const;
220 220
221 bool InlineFloat32x4Getter(InstanceCallInstr* call, 221 bool InlineFloat32x4Getter(InstanceCallInstr* call,
222 MethodRecognizer::Kind getter); 222 MethodRecognizer::Kind getter);
223 bool InlineFloat64x2Getter(InstanceCallInstr* call, 223 bool InlineFloat64x2Getter(InstanceCallInstr* call,
224 MethodRecognizer::Kind getter); 224 MethodRecognizer::Kind getter);
225 bool InlineInt32x4Getter(InstanceCallInstr* call, 225 bool InlineInt32x4Getter(InstanceCallInstr* call,
226 MethodRecognizer::Kind getter); 226 MethodRecognizer::Kind getter);
227 bool InlineFloat32x4BinaryOp(InstanceCallInstr* call, 227 bool InlineFloat32x4BinaryOp(InstanceCallInstr* call,
228 Token::Kind op_kind); 228 Token::Kind op_kind);
229 bool InlineInt32x4BinaryOp(InstanceCallInstr* call, 229 bool InlineInt32x4BinaryOp(InstanceCallInstr* call,
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 // Optimize spill stores inside try-blocks by identifying values that always 503 // Optimize spill stores inside try-blocks by identifying values that always
504 // contain a single known constant at catch block entry. 504 // contain a single known constant at catch block entry.
505 class TryCatchAnalyzer : public AllStatic { 505 class TryCatchAnalyzer : public AllStatic {
506 public: 506 public:
507 static void Optimize(FlowGraph* flow_graph); 507 static void Optimize(FlowGraph* flow_graph);
508 }; 508 };
509 509
510 } // namespace dart 510 } // namespace dart
511 511
512 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ 512 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_optimizer.cc » ('j') | runtime/vm/flow_graph_optimizer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698