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

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

Issue 20125005: Allow SIMD types to be used on mips (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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') | 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 bool TryReplaceWithLoadIndexed(InstanceCallInstr* call); 80 bool TryReplaceWithLoadIndexed(InstanceCallInstr* call);
81 81
82 bool TryReplaceWithBinaryOp(InstanceCallInstr* call, Token::Kind op_kind); 82 bool TryReplaceWithBinaryOp(InstanceCallInstr* call, Token::Kind op_kind);
83 bool TryReplaceWithUnaryOp(InstanceCallInstr* call, Token::Kind op_kind); 83 bool TryReplaceWithUnaryOp(InstanceCallInstr* call, Token::Kind op_kind);
84 84
85 bool TryInlineInstanceGetter(InstanceCallInstr* call); 85 bool TryInlineInstanceGetter(InstanceCallInstr* call);
86 bool TryInlineInstanceSetter(InstanceCallInstr* call, 86 bool TryInlineInstanceSetter(InstanceCallInstr* call,
87 const ICData& unary_ic_data); 87 const ICData& unary_ic_data);
88 88
89 bool TryInlineInstanceMethod(InstanceCallInstr* call); 89 bool TryInlineInstanceMethod(InstanceCallInstr* call);
90 bool TryInlineFloat32x4Constructor(StaticCallInstr* call,
91 MethodRecognizer::Kind recognized_kind);
92 bool TryInlineUint32x4Constructor(StaticCallInstr* call,
93 MethodRecognizer::Kind recognized_kind);
90 bool TryInlineFloat32x4Method(InstanceCallInstr* call, 94 bool TryInlineFloat32x4Method(InstanceCallInstr* call,
91 MethodRecognizer::Kind recognized_kind); 95 MethodRecognizer::Kind recognized_kind);
92 bool TryInlineUint32x4Method(InstanceCallInstr* call, 96 bool TryInlineUint32x4Method(InstanceCallInstr* call,
93 MethodRecognizer::Kind recognized_kind); 97 MethodRecognizer::Kind recognized_kind);
94 void ReplaceWithInstanceOf(InstanceCallInstr* instr); 98 void ReplaceWithInstanceOf(InstanceCallInstr* instr);
95 void ReplaceWithTypeCast(InstanceCallInstr* instr); 99 void ReplaceWithTypeCast(InstanceCallInstr* instr);
96 100
97 LoadIndexedInstr* BuildStringCodeUnitAt(InstanceCallInstr* call, 101 LoadIndexedInstr* BuildStringCodeUnitAt(InstanceCallInstr* call,
98 intptr_t cid); 102 intptr_t cid);
99 103
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 Instruction* insert_before, 145 Instruction* insert_before,
142 Instruction* deopt_target); 146 Instruction* deopt_target);
143 147
144 bool InstanceCallNeedsClassCheck(InstanceCallInstr* call) const; 148 bool InstanceCallNeedsClassCheck(InstanceCallInstr* call) const;
145 bool MethodExtractorNeedsClassCheck(InstanceCallInstr* call) const; 149 bool MethodExtractorNeedsClassCheck(InstanceCallInstr* call) const;
146 150
147 bool InlineFloat32x4Getter(InstanceCallInstr* call, 151 bool InlineFloat32x4Getter(InstanceCallInstr* call,
148 MethodRecognizer::Kind getter); 152 MethodRecognizer::Kind getter);
149 bool InlineUint32x4Getter(InstanceCallInstr* call, 153 bool InlineUint32x4Getter(InstanceCallInstr* call,
150 MethodRecognizer::Kind getter); 154 MethodRecognizer::Kind getter);
151 155 bool InlineFloat32x4BinaryOp(InstanceCallInstr* call,
156 Token::Kind op_kind);
157 bool InlineUint32x4BinaryOp(InstanceCallInstr* call,
158 Token::Kind op_kind);
152 void InlineImplicitInstanceGetter(InstanceCallInstr* call); 159 void InlineImplicitInstanceGetter(InstanceCallInstr* call);
153 void InlineArrayLengthGetter(InstanceCallInstr* call, 160 void InlineArrayLengthGetter(InstanceCallInstr* call,
154 intptr_t length_offset, 161 intptr_t length_offset,
155 bool is_immutable, 162 bool is_immutable,
156 MethodRecognizer::Kind kind); 163 MethodRecognizer::Kind kind);
157 void InlineGrowableArrayCapacityGetter(InstanceCallInstr* call); 164 void InlineGrowableArrayCapacityGetter(InstanceCallInstr* call);
158 void InlineStringLengthGetter(InstanceCallInstr* call); 165 void InlineStringLengthGetter(InstanceCallInstr* call);
159 void InlineStringIsEmptyGetter(InstanceCallInstr* call); 166 void InlineStringIsEmptyGetter(InstanceCallInstr* call);
160 void InlineObjectCid(InstanceCallInstr* call); 167 void InlineObjectCid(InstanceCallInstr* call);
161 168
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 // Optimize spill stores inside try-blocks by identifying values that always 370 // Optimize spill stores inside try-blocks by identifying values that always
364 // contain a single known constant at catch block entry. 371 // contain a single known constant at catch block entry.
365 class TryCatchAnalyzer : public AllStatic { 372 class TryCatchAnalyzer : public AllStatic {
366 public: 373 public:
367 static void Optimize(FlowGraph* flow_graph); 374 static void Optimize(FlowGraph* flow_graph);
368 }; 375 };
369 376
370 } // namespace dart 377 } // namespace dart
371 378
372 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ 379 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698