| 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_OBJECT_H_ | 5 #ifndef VM_OBJECT_H_ |
| 6 #define VM_OBJECT_H_ | 6 #define VM_OBJECT_H_ |
| 7 | 7 |
| 8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
| 9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
| 10 #include "platform/utils.h" | 10 #include "platform/utils.h" |
| (...skipping 7878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7889 TYPED_GETTER_SETTER(Uint64, uint64_t) | 7889 TYPED_GETTER_SETTER(Uint64, uint64_t) |
| 7890 TYPED_GETTER_SETTER(Float32, float) | 7890 TYPED_GETTER_SETTER(Float32, float) |
| 7891 TYPED_GETTER_SETTER(Float64, double) | 7891 TYPED_GETTER_SETTER(Float64, double) |
| 7892 TYPED_GETTER_SETTER(Float32x4, simd128_value_t) | 7892 TYPED_GETTER_SETTER(Float32x4, simd128_value_t) |
| 7893 TYPED_GETTER_SETTER(Int32x4, simd128_value_t) | 7893 TYPED_GETTER_SETTER(Int32x4, simd128_value_t) |
| 7894 TYPED_GETTER_SETTER(Float64x2, simd128_value_t) | 7894 TYPED_GETTER_SETTER(Float64x2, simd128_value_t) |
| 7895 | 7895 |
| 7896 #undef TYPED_GETTER_SETTER | 7896 #undef TYPED_GETTER_SETTER |
| 7897 | 7897 |
| 7898 FinalizablePersistentHandle* AddFinalizer( | 7898 FinalizablePersistentHandle* AddFinalizer( |
| 7899 void* peer, Dart_WeakPersistentHandleFinalizer callback) const; | 7899 void* peer, |
| 7900 Dart_WeakPersistentHandleFinalizer callback, |
| 7901 intptr_t external_size) const; |
| 7900 | 7902 |
| 7901 static intptr_t length_offset() { | 7903 static intptr_t length_offset() { |
| 7902 return OFFSET_OF(RawExternalTypedData, length_); | 7904 return OFFSET_OF(RawExternalTypedData, length_); |
| 7903 } | 7905 } |
| 7904 | 7906 |
| 7905 static intptr_t data_offset() { | 7907 static intptr_t data_offset() { |
| 7906 return OFFSET_OF(RawExternalTypedData, data_); | 7908 return OFFSET_OF(RawExternalTypedData, data_); |
| 7907 } | 7909 } |
| 7908 | 7910 |
| 7909 static intptr_t InstanceSize() { | 7911 static intptr_t InstanceSize() { |
| (...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8779 | 8781 |
| 8780 inline void TypeArguments::SetHash(intptr_t value) const { | 8782 inline void TypeArguments::SetHash(intptr_t value) const { |
| 8781 // This is only safe because we create a new Smi, which does not cause | 8783 // This is only safe because we create a new Smi, which does not cause |
| 8782 // heap allocation. | 8784 // heap allocation. |
| 8783 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); | 8785 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); |
| 8784 } | 8786 } |
| 8785 | 8787 |
| 8786 } // namespace dart | 8788 } // namespace dart |
| 8787 | 8789 |
| 8788 #endif // VM_OBJECT_H_ | 8790 #endif // VM_OBJECT_H_ |
| OLD | NEW |