| 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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 static RawClass* icdata_class() { return icdata_class_; } | 327 static RawClass* icdata_class() { return icdata_class_; } |
| 328 static RawClass* megamorphic_cache_class() { | 328 static RawClass* megamorphic_cache_class() { |
| 329 return megamorphic_cache_class_; | 329 return megamorphic_cache_class_; |
| 330 } | 330 } |
| 331 static RawClass* subtypetestcache_class() { return subtypetestcache_class_; } | 331 static RawClass* subtypetestcache_class() { return subtypetestcache_class_; } |
| 332 | 332 |
| 333 static RawError* Init(Isolate* isolate); | 333 static RawError* Init(Isolate* isolate); |
| 334 static void InitFromSnapshot(Isolate* isolate); | 334 static void InitFromSnapshot(Isolate* isolate); |
| 335 static void InitOnce(); | 335 static void InitOnce(); |
| 336 static void RegisterSingletonClassNames(); | 336 static void RegisterSingletonClassNames(); |
| 337 static void CreateInternalMetaData(); |
| 337 static void MakeUnusedSpaceTraversable(const Object& obj, | 338 static void MakeUnusedSpaceTraversable(const Object& obj, |
| 338 intptr_t original_size, | 339 intptr_t original_size, |
| 339 intptr_t used_size); | 340 intptr_t used_size); |
| 340 | 341 |
| 341 static intptr_t InstanceSize() { | 342 static intptr_t InstanceSize() { |
| 342 return RoundedAllocationSize(sizeof(RawObject)); | 343 return RoundedAllocationSize(sizeof(RawObject)); |
| 343 } | 344 } |
| 344 | 345 |
| 345 static const ClassId kClassId = kObjectCid; | 346 static const ClassId kClassId = kObjectCid; |
| 346 | 347 |
| (...skipping 5903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6250 | 6251 |
| 6251 | 6252 |
| 6252 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6253 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 6253 intptr_t index) { | 6254 intptr_t index) { |
| 6254 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6255 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 6255 } | 6256 } |
| 6256 | 6257 |
| 6257 } // namespace dart | 6258 } // namespace dart |
| 6258 | 6259 |
| 6259 #endif // VM_OBJECT_H_ | 6260 #endif // VM_OBJECT_H_ |
| OLD | NEW |