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

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

Issue 59073003: Version 0.8.10.4 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month 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 | « dart/runtime/vm/flow_graph_compiler.cc ('k') | dart/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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 103
104 bool TryReplaceWithRelationalOp(InstanceCallInstr* call, Token::Kind op_kind); 104 bool TryReplaceWithRelationalOp(InstanceCallInstr* call, Token::Kind op_kind);
105 105
106 bool TryInlineInstanceGetter(InstanceCallInstr* call); 106 bool TryInlineInstanceGetter(InstanceCallInstr* call);
107 bool TryInlineInstanceSetter(InstanceCallInstr* call, 107 bool TryInlineInstanceSetter(InstanceCallInstr* call,
108 const ICData& unary_ic_data); 108 const ICData& unary_ic_data);
109 109
110 bool TryInlineInstanceMethod(InstanceCallInstr* call); 110 bool TryInlineInstanceMethod(InstanceCallInstr* call);
111 bool TryInlineFloat32x4Constructor(StaticCallInstr* call, 111 bool TryInlineFloat32x4Constructor(StaticCallInstr* call,
112 MethodRecognizer::Kind recognized_kind); 112 MethodRecognizer::Kind recognized_kind);
113 bool TryInlineUint32x4Constructor(StaticCallInstr* call, 113 bool TryInlineInt32x4Constructor(StaticCallInstr* call,
114 MethodRecognizer::Kind recognized_kind); 114 MethodRecognizer::Kind recognized_kind);
115 bool TryInlineFloat32x4Method(InstanceCallInstr* call, 115 bool TryInlineFloat32x4Method(InstanceCallInstr* call,
116 MethodRecognizer::Kind recognized_kind); 116 MethodRecognizer::Kind recognized_kind);
117 bool TryInlineUint32x4Method(InstanceCallInstr* call, 117 bool TryInlineInt32x4Method(InstanceCallInstr* call,
118 MethodRecognizer::Kind recognized_kind); 118 MethodRecognizer::Kind recognized_kind);
119 void ReplaceWithInstanceOf(InstanceCallInstr* instr); 119 void ReplaceWithInstanceOf(InstanceCallInstr* instr);
120 void ReplaceWithTypeCast(InstanceCallInstr* instr); 120 void ReplaceWithTypeCast(InstanceCallInstr* instr);
121 121
122 LoadIndexedInstr* BuildStringCodeUnitAt(InstanceCallInstr* call, 122 LoadIndexedInstr* BuildStringCodeUnitAt(InstanceCallInstr* call,
123 intptr_t cid); 123 intptr_t cid);
124 124
125 bool InlineByteArrayViewLoad(Instruction* call, 125 bool InlineByteArrayViewLoad(Instruction* call,
126 Definition* receiver, 126 Definition* receiver,
127 intptr_t array_cid, 127 intptr_t array_cid,
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 Representation to, 180 Representation to,
181 Value* use, 181 Value* use,
182 Instruction* insert_before, 182 Instruction* insert_before,
183 Instruction* deopt_target); 183 Instruction* deopt_target);
184 184
185 bool InstanceCallNeedsClassCheck(InstanceCallInstr* call) const; 185 bool InstanceCallNeedsClassCheck(InstanceCallInstr* call) const;
186 bool MethodExtractorNeedsClassCheck(InstanceCallInstr* call) const; 186 bool MethodExtractorNeedsClassCheck(InstanceCallInstr* call) const;
187 187
188 bool InlineFloat32x4Getter(InstanceCallInstr* call, 188 bool InlineFloat32x4Getter(InstanceCallInstr* call,
189 MethodRecognizer::Kind getter); 189 MethodRecognizer::Kind getter);
190 bool InlineUint32x4Getter(InstanceCallInstr* call, 190 bool InlineInt32x4Getter(InstanceCallInstr* call,
191 MethodRecognizer::Kind getter); 191 MethodRecognizer::Kind getter);
192 bool InlineFloat32x4BinaryOp(InstanceCallInstr* call, 192 bool InlineFloat32x4BinaryOp(InstanceCallInstr* call,
193 Token::Kind op_kind); 193 Token::Kind op_kind);
194 bool InlineUint32x4BinaryOp(InstanceCallInstr* call, 194 bool InlineInt32x4BinaryOp(InstanceCallInstr* call,
195 Token::Kind op_kind); 195 Token::Kind op_kind);
196 void InlineImplicitInstanceGetter(InstanceCallInstr* call); 196 void InlineImplicitInstanceGetter(InstanceCallInstr* call);
197 197
198 RawBool* InstanceOfAsBool(const ICData& ic_data, 198 RawBool* InstanceOfAsBool(const ICData& ic_data,
199 const AbstractType& type) const; 199 const AbstractType& type) const;
200 200
201 void ReplaceWithMathCFunction(InstanceCallInstr* call, 201 void ReplaceWithMathCFunction(InstanceCallInstr* call,
202 MethodRecognizer::Kind recognized_kind); 202 MethodRecognizer::Kind recognized_kind);
203 203
204 // Visit an equality compare. The current instruction can be the 204 // Visit an equality compare. The current instruction can be the
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 // Optimize spill stores inside try-blocks by identifying values that always 399 // Optimize spill stores inside try-blocks by identifying values that always
400 // contain a single known constant at catch block entry. 400 // contain a single known constant at catch block entry.
401 class TryCatchAnalyzer : public AllStatic { 401 class TryCatchAnalyzer : public AllStatic {
402 public: 402 public:
403 static void Optimize(FlowGraph* flow_graph); 403 static void Optimize(FlowGraph* flow_graph);
404 }; 404 };
405 405
406 } // namespace dart 406 } // namespace dart
407 407
408 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ 408 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_
OLDNEW
« no previous file with comments | « dart/runtime/vm/flow_graph_compiler.cc ('k') | dart/runtime/vm/flow_graph_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698