| 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 | 225 |
| 226 bool may_reoptimize() const { return may_reoptimize_; } | 226 bool may_reoptimize() const { return may_reoptimize_; } |
| 227 | 227 |
| 228 static const int kLocalsOffsetFromFP = (-1 * kWordSize); | 228 static const int kLocalsOffsetFromFP = (-1 * kWordSize); |
| 229 | 229 |
| 230 static Condition FlipCondition(Condition condition); | 230 static Condition FlipCondition(Condition condition); |
| 231 | 231 |
| 232 static bool EvaluateCondition(Condition condition, intptr_t l, intptr_t r); | 232 static bool EvaluateCondition(Condition condition, intptr_t l, intptr_t r); |
| 233 | 233 |
| 234 // Array/list element address computations. | 234 // Array/list element address computations. |
| 235 static intptr_t DataOffsetFor(intptr_t cid); |
| 236 static intptr_t ElementSizeFor(intptr_t cid); |
| 235 static FieldAddress ElementAddressForIntIndex(intptr_t cid, | 237 static FieldAddress ElementAddressForIntIndex(intptr_t cid, |
| 236 Register array, | 238 Register array, |
| 237 intptr_t offset); | 239 intptr_t offset); |
| 238 static FieldAddress ElementAddressForRegIndex(intptr_t cid, | 240 static FieldAddress ElementAddressForRegIndex(intptr_t cid, |
| 239 Register array, | 241 Register array, |
| 240 Register index); | 242 Register index); |
| 241 | 243 |
| 242 private: | 244 private: |
| 243 void EmitFrameEntry(); | 245 void EmitFrameEntry(); |
| 244 | 246 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 // that should be used when deoptimizing we store it in this variable. | 357 // that should be used when deoptimizing we store it in this variable. |
| 356 // In future AddDeoptStub should be moved out of the instruction template. | 358 // In future AddDeoptStub should be moved out of the instruction template. |
| 357 Environment* pending_deoptimization_env_; | 359 Environment* pending_deoptimization_env_; |
| 358 | 360 |
| 359 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 361 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
| 360 }; | 362 }; |
| 361 | 363 |
| 362 } // namespace dart | 364 } // namespace dart |
| 363 | 365 |
| 364 #endif // VM_FLOW_GRAPH_COMPILER_IA32_H_ | 366 #endif // VM_FLOW_GRAPH_COMPILER_IA32_H_ |
| OLD | NEW |