| 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_DEFERRED_OBJECTS_H_ | 5 #ifndef VM_DEFERRED_OBJECTS_H_ |
| 6 #define VM_DEFERRED_OBJECTS_H_ | 6 #define VM_DEFERRED_OBJECTS_H_ |
| 7 | 7 |
| 8 #include "platform/globals.h" | 8 #include "platform/globals.h" |
| 9 | 9 |
| 10 namespace dart { | 10 namespace dart { |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 | 79 |
| 80 simd128_value_t value() const { return value_; } | 80 simd128_value_t value() const { return value_; } |
| 81 | 81 |
| 82 private: | 82 private: |
| 83 const simd128_value_t value_; | 83 const simd128_value_t value_; |
| 84 | 84 |
| 85 DISALLOW_COPY_AND_ASSIGN(DeferredFloat32x4); | 85 DISALLOW_COPY_AND_ASSIGN(DeferredFloat32x4); |
| 86 }; | 86 }; |
| 87 | 87 |
| 88 | 88 |
| 89 class DeferredUint32x4 : public DeferredSlot { | 89 class DeferredInt32x4 : public DeferredSlot { |
| 90 public: | 90 public: |
| 91 DeferredUint32x4(simd128_value_t value, RawInstance** slot, | 91 DeferredInt32x4(simd128_value_t value, RawInstance** slot, |
| 92 DeferredSlot* next) | 92 DeferredSlot* next) |
| 93 : DeferredSlot(slot, next), value_(value) { } | 93 : DeferredSlot(slot, next), value_(value) { } |
| 94 | 94 |
| 95 virtual void Materialize(); | 95 virtual void Materialize(); |
| 96 | 96 |
| 97 simd128_value_t value() const { return value_; } | 97 simd128_value_t value() const { return value_; } |
| 98 | 98 |
| 99 private: | 99 private: |
| 100 const simd128_value_t value_; | 100 const simd128_value_t value_; |
| 101 | 101 |
| 102 DISALLOW_COPY_AND_ASSIGN(DeferredUint32x4); | 102 DISALLOW_COPY_AND_ASSIGN(DeferredInt32x4); |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 | 105 |
| 106 // Describes a slot that contains a reference to an object that had its | 106 // Describes a slot that contains a reference to an object that had its |
| 107 // allocation removed by AllocationSinking pass. | 107 // allocation removed by AllocationSinking pass. |
| 108 // Object itself is described and materialized by DeferredObject. | 108 // Object itself is described and materialized by DeferredObject. |
| 109 class DeferredObjectRef : public DeferredSlot { | 109 class DeferredObjectRef : public DeferredSlot { |
| 110 public: | 110 public: |
| 111 DeferredObjectRef(intptr_t index, RawInstance** slot, DeferredSlot* next) | 111 DeferredObjectRef(intptr_t index, RawInstance** slot, DeferredSlot* next) |
| 112 : DeferredSlot(slot, next), index_(index) { } | 112 : DeferredSlot(slot, next), index_(index) { } |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 | 178 |
| 179 // Object materialized from this description. | 179 // Object materialized from this description. |
| 180 const Instance* object_; | 180 const Instance* object_; |
| 181 | 181 |
| 182 DISALLOW_COPY_AND_ASSIGN(DeferredObject); | 182 DISALLOW_COPY_AND_ASSIGN(DeferredObject); |
| 183 }; | 183 }; |
| 184 | 184 |
| 185 } // namespace dart | 185 } // namespace dart |
| 186 | 186 |
| 187 #endif // VM_DEFERRED_OBJECTS_H_ | 187 #endif // VM_DEFERRED_OBJECTS_H_ |
| OLD | NEW |