| 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 6116 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 6127   } | 6127   } | 
| 6128 | 6128 | 
| 6129   static cpp_vtable handle_vtable_; | 6129   static cpp_vtable handle_vtable_; | 
| 6130 | 6130 | 
| 6131   Smi() : Integer() {} | 6131   Smi() : Integer() {} | 
| 6132   BASE_OBJECT_IMPLEMENTATION(Smi, Integer); | 6132   BASE_OBJECT_IMPLEMENTATION(Smi, Integer); | 
| 6133   OBJECT_SERVICE_SUPPORT(Smi); | 6133   OBJECT_SERVICE_SUPPORT(Smi); | 
| 6134   friend class Api;  // For ValueFromRaw | 6134   friend class Api;  // For ValueFromRaw | 
| 6135   friend class Class; | 6135   friend class Class; | 
| 6136   friend class Object; | 6136   friend class Object; | 
|  | 6137   friend class ReusableSmiHandleScope; | 
|  | 6138   friend class Thread; | 
| 6137 }; | 6139 }; | 
| 6138 | 6140 | 
| 6139 | 6141 | 
| 6140 class Mint : public Integer { | 6142 class Mint : public Integer { | 
| 6141  public: | 6143  public: | 
| 6142   static const intptr_t kBits = 63;  // 64-th bit is sign. | 6144   static const intptr_t kBits = 63;  // 64-th bit is sign. | 
| 6143   static const int64_t kMaxValue = | 6145   static const int64_t kMaxValue = | 
| 6144       static_cast<int64_t>(DART_2PART_UINT64_C(0x7FFFFFFF, FFFFFFFF)); | 6146       static_cast<int64_t>(DART_2PART_UINT64_C(0x7FFFFFFF, FFFFFFFF)); | 
| 6145   static const int64_t kMinValue = | 6147   static const int64_t kMinValue = | 
| 6146       static_cast<int64_t>(DART_2PART_UINT64_C(0x80000000, 00000000)); | 6148       static_cast<int64_t>(DART_2PART_UINT64_C(0x80000000, 00000000)); | 
| (...skipping 2370 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 8517 | 8519 | 
| 8518 | 8520 | 
| 8519 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 8521 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 
| 8520                                                intptr_t index) { | 8522                                                intptr_t index) { | 
| 8521   return array.At((index * kEntryLength) + kTargetFunctionIndex); | 8523   return array.At((index * kEntryLength) + kTargetFunctionIndex); | 
| 8522 } | 8524 } | 
| 8523 | 8525 | 
| 8524 }  // namespace dart | 8526 }  // namespace dart | 
| 8525 | 8527 | 
| 8526 #endif  // VM_OBJECT_H_ | 8528 #endif  // VM_OBJECT_H_ | 
| OLD | NEW | 
|---|