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

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

Issue 11092090: Inline indexed load and store of typed array float64. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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_compiler.cc ('k') | runtime/vm/flow_graph_compiler_ia32.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_COMPILER_IA32_H_ 5 #ifndef VM_FLOW_GRAPH_COMPILER_IA32_H_
6 #define VM_FLOW_GRAPH_COMPILER_IA32_H_ 6 #define VM_FLOW_GRAPH_COMPILER_IA32_H_
7 7
8 #ifndef VM_FLOW_GRAPH_COMPILER_H_ 8 #ifndef VM_FLOW_GRAPH_COMPILER_H_
9 #error Include flow_graph_compiler.h instead of flow_graph_compiler_ia32.h. 9 #error Include flow_graph_compiler.h instead of flow_graph_compiler_ia32.h.
10 #endif 10 #endif
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 } 203 }
204 return current_block_->try_index(); 204 return current_block_->try_index();
205 } 205 }
206 206
207 static const int kLocalsOffsetFromFP = (-1 * kWordSize); 207 static const int kLocalsOffsetFromFP = (-1 * kWordSize);
208 208
209 static Condition FlipCondition(Condition condition); 209 static Condition FlipCondition(Condition condition);
210 210
211 static bool EvaluateCondition(Condition condition, intptr_t l, intptr_t r); 211 static bool EvaluateCondition(Condition condition, intptr_t l, intptr_t r);
212 212
213 // Array/list element address computations.
214 static FieldAddress ElementAddressForIntIndex(intptr_t cid,
215 Register array,
216 intptr_t offset);
217 static FieldAddress ElementAddressForRegIndex(intptr_t cid,
218 Register array,
219 Register index);
220
213 private: 221 private:
214 void GenerateDeferredCode(); 222 void GenerateDeferredCode();
215 223
216 void EmitInstructionPrologue(Instruction* instr); 224 void EmitInstructionPrologue(Instruction* instr);
217 void EmitInstructionEpilogue(Instruction* instr); 225 void EmitInstructionEpilogue(Instruction* instr);
218 226
219 // Emit code to load a Value into register 'dst'. 227 // Emit code to load a Value into register 'dst'.
220 void LoadValue(Register dst, Value* value); 228 void LoadValue(Register dst, Value* value);
221 229
222 void EmitStaticCall(const Function& function, 230 void EmitStaticCall(const Function& function,
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 // that should be used when deoptimizing we store it in this variable. 326 // that should be used when deoptimizing we store it in this variable.
319 // In future AddDeoptStub should be moved out of the instruction template. 327 // In future AddDeoptStub should be moved out of the instruction template.
320 Environment* pending_deoptimization_env_; 328 Environment* pending_deoptimization_env_;
321 329
322 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); 330 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
323 }; 331 };
324 332
325 } // namespace dart 333 } // namespace dart
326 334
327 #endif // VM_FLOW_GRAPH_COMPILER_IA32_H_ 335 #endif // VM_FLOW_GRAPH_COMPILER_IA32_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler.cc ('k') | runtime/vm/flow_graph_compiler_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698