| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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_DEOPT_INSTRUCTIONS_H_ | 5 #ifndef VM_DEOPT_INSTRUCTIONS_H_ |
| 6 #define VM_DEOPT_INSTRUCTIONS_H_ | 6 #define VM_DEOPT_INSTRUCTIONS_H_ |
| 7 | 7 |
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
| 9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
| 10 #include "vm/code_generator.h" | 10 #include "vm/code_generator.h" |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 } | 127 } |
| 128 | 128 |
| 129 void DeferFloat32x4Materialization(simd128_value_t value, | 129 void DeferFloat32x4Materialization(simd128_value_t value, |
| 130 RawFloat32x4** slot) { | 130 RawFloat32x4** slot) { |
| 131 deferred_boxes_ = new DeferredFloat32x4( | 131 deferred_boxes_ = new DeferredFloat32x4( |
| 132 value, | 132 value, |
| 133 reinterpret_cast<RawInstance**>(slot), | 133 reinterpret_cast<RawInstance**>(slot), |
| 134 deferred_boxes_); | 134 deferred_boxes_); |
| 135 } | 135 } |
| 136 | 136 |
| 137 void DeferUint32x4Materialization(simd128_value_t value, | 137 void DeferInt32x4Materialization(simd128_value_t value, |
| 138 RawUint32x4** slot) { | 138 RawInt32x4** slot) { |
| 139 deferred_boxes_ = new DeferredUint32x4( | 139 deferred_boxes_ = new DeferredInt32x4( |
| 140 value, | 140 value, |
| 141 reinterpret_cast<RawInstance**>(slot), | 141 reinterpret_cast<RawInstance**>(slot), |
| 142 deferred_boxes_); | 142 deferred_boxes_); |
| 143 } | 143 } |
| 144 | 144 |
| 145 DeferredObject* GetDeferredObject(intptr_t idx) const { | 145 DeferredObject* GetDeferredObject(intptr_t idx) const { |
| 146 return deferred_objects_[idx]; | 146 return deferred_objects_[idx]; |
| 147 } | 147 } |
| 148 | 148 |
| 149 private: | 149 private: |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 // the deopt-info array. | 203 // the deopt-info array. |
| 204 class DeoptInstr : public ZoneAllocated { | 204 class DeoptInstr : public ZoneAllocated { |
| 205 public: | 205 public: |
| 206 enum Kind { | 206 enum Kind { |
| 207 kRetAddress, | 207 kRetAddress, |
| 208 kConstant, | 208 kConstant, |
| 209 kRegister, | 209 kRegister, |
| 210 kFpuRegister, | 210 kFpuRegister, |
| 211 kInt64FpuRegister, | 211 kInt64FpuRegister, |
| 212 kFloat32x4FpuRegister, | 212 kFloat32x4FpuRegister, |
| 213 kUint32x4FpuRegister, | 213 kInt32x4FpuRegister, |
| 214 kStackSlot, | 214 kStackSlot, |
| 215 kDoubleStackSlot, | 215 kDoubleStackSlot, |
| 216 kInt64StackSlot, | 216 kInt64StackSlot, |
| 217 kFloat32x4StackSlot, | 217 kFloat32x4StackSlot, |
| 218 kUint32x4StackSlot, | 218 kInt32x4StackSlot, |
| 219 kPcMarker, | 219 kPcMarker, |
| 220 kPp, | 220 kPp, |
| 221 kCallerFp, | 221 kCallerFp, |
| 222 kCallerPp, | 222 kCallerPp, |
| 223 kCallerPc, | 223 kCallerPc, |
| 224 kSuffix, | 224 kSuffix, |
| 225 kMaterializedObjectRef, | 225 kMaterializedObjectRef, |
| 226 kMaterializeObject | 226 kMaterializeObject |
| 227 }; | 227 }; |
| 228 | 228 |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 DeoptInfo* info, | 372 DeoptInfo* info, |
| 373 Smi* reason); | 373 Smi* reason); |
| 374 | 374 |
| 375 private: | 375 private: |
| 376 static const intptr_t kEntrySize = 3; | 376 static const intptr_t kEntrySize = 3; |
| 377 }; | 377 }; |
| 378 | 378 |
| 379 } // namespace dart | 379 } // namespace dart |
| 380 | 380 |
| 381 #endif // VM_DEOPT_INSTRUCTIONS_H_ | 381 #endif // VM_DEOPT_INSTRUCTIONS_H_ |
| OLD | NEW |