| 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 5033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5044 TYPED_GETTER_SETTER(Int8, int8_t) | 5044 TYPED_GETTER_SETTER(Int8, int8_t) |
| 5045 TYPED_GETTER_SETTER(Uint8, uint8_t) | 5045 TYPED_GETTER_SETTER(Uint8, uint8_t) |
| 5046 TYPED_GETTER_SETTER(Int16, int16_t) | 5046 TYPED_GETTER_SETTER(Int16, int16_t) |
| 5047 TYPED_GETTER_SETTER(Uint16, uint16_t) | 5047 TYPED_GETTER_SETTER(Uint16, uint16_t) |
| 5048 TYPED_GETTER_SETTER(Int32, int32_t) | 5048 TYPED_GETTER_SETTER(Int32, int32_t) |
| 5049 TYPED_GETTER_SETTER(Uint32, uint32_t) | 5049 TYPED_GETTER_SETTER(Uint32, uint32_t) |
| 5050 TYPED_GETTER_SETTER(Int64, int64_t) | 5050 TYPED_GETTER_SETTER(Int64, int64_t) |
| 5051 TYPED_GETTER_SETTER(Uint64, uint64_t) | 5051 TYPED_GETTER_SETTER(Uint64, uint64_t) |
| 5052 TYPED_GETTER_SETTER(Float32, float) | 5052 TYPED_GETTER_SETTER(Float32, float) |
| 5053 TYPED_GETTER_SETTER(Float64, double) | 5053 TYPED_GETTER_SETTER(Float64, double) |
| 5054 TYPED_GETTER_SETTER(Float32x4, simd128_value_t) | |
| 5055 | 5054 |
| 5056 static intptr_t length_offset() { | 5055 static intptr_t length_offset() { |
| 5057 return OFFSET_OF(RawTypedData, length_); | 5056 return OFFSET_OF(RawTypedData, length_); |
| 5058 } | 5057 } |
| 5059 | 5058 |
| 5060 static intptr_t data_offset() { | 5059 static intptr_t data_offset() { |
| 5061 return OFFSET_OF(RawTypedData, data_); | 5060 return OFFSET_OF(RawTypedData, data_); |
| 5062 } | 5061 } |
| 5063 | 5062 |
| 5064 static intptr_t InstanceSize() { | 5063 static intptr_t InstanceSize() { |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5141 TYPED_GETTER_SETTER(Int8, int8_t) | 5140 TYPED_GETTER_SETTER(Int8, int8_t) |
| 5142 TYPED_GETTER_SETTER(Uint8, uint8_t) | 5141 TYPED_GETTER_SETTER(Uint8, uint8_t) |
| 5143 TYPED_GETTER_SETTER(Int16, int16_t) | 5142 TYPED_GETTER_SETTER(Int16, int16_t) |
| 5144 TYPED_GETTER_SETTER(Uint16, uint16_t) | 5143 TYPED_GETTER_SETTER(Uint16, uint16_t) |
| 5145 TYPED_GETTER_SETTER(Int32, int32_t) | 5144 TYPED_GETTER_SETTER(Int32, int32_t) |
| 5146 TYPED_GETTER_SETTER(Uint32, uint32_t) | 5145 TYPED_GETTER_SETTER(Uint32, uint32_t) |
| 5147 TYPED_GETTER_SETTER(Int64, int64_t) | 5146 TYPED_GETTER_SETTER(Int64, int64_t) |
| 5148 TYPED_GETTER_SETTER(Uint64, uint64_t) | 5147 TYPED_GETTER_SETTER(Uint64, uint64_t) |
| 5149 TYPED_GETTER_SETTER(Float32, float) | 5148 TYPED_GETTER_SETTER(Float32, float) |
| 5150 TYPED_GETTER_SETTER(Float64, double) | 5149 TYPED_GETTER_SETTER(Float64, double) |
| 5151 TYPED_GETTER_SETTER(Float32x4, simd128_value_t); | |
| 5152 | 5150 |
| 5153 FinalizablePersistentHandle* AddFinalizer( | 5151 FinalizablePersistentHandle* AddFinalizer( |
| 5154 void* peer, Dart_WeakPersistentHandleFinalizer callback) const; | 5152 void* peer, Dart_WeakPersistentHandleFinalizer callback) const; |
| 5155 | 5153 |
| 5156 static intptr_t length_offset() { | 5154 static intptr_t length_offset() { |
| 5157 return OFFSET_OF(RawExternalTypedData, length_); | 5155 return OFFSET_OF(RawExternalTypedData, length_); |
| 5158 } | 5156 } |
| 5159 | 5157 |
| 5160 static intptr_t data_offset() { | 5158 static intptr_t data_offset() { |
| 5161 return OFFSET_OF(RawExternalTypedData, data_); | 5159 return OFFSET_OF(RawExternalTypedData, data_); |
| (...skipping 1773 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6935 | 6933 |
| 6936 | 6934 |
| 6937 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6935 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 6938 intptr_t index) { | 6936 intptr_t index) { |
| 6939 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6937 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 6940 } | 6938 } |
| 6941 | 6939 |
| 6942 } // namespace dart | 6940 } // namespace dart |
| 6943 | 6941 |
| 6944 #endif // VM_OBJECT_H_ | 6942 #endif // VM_OBJECT_H_ |
| OLD | NEW |