| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |