| 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 3777 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3788 } | 3788 } |
| 3789 static intptr_t InstanceSize(intptr_t len) { | 3789 static intptr_t InstanceSize(intptr_t len) { |
| 3790 ASSERT(0 <= len && len <= kMaxElements); | 3790 ASSERT(0 <= len && len <= kMaxElements); |
| 3791 return RoundedAllocationSize(sizeof(RawLocalVarDescriptors) | 3791 return RoundedAllocationSize(sizeof(RawLocalVarDescriptors) |
| 3792 + (len * kWordSize) // RawStrings for names. | 3792 + (len * kWordSize) // RawStrings for names. |
| 3793 + (len * sizeof(RawLocalVarDescriptors::VarInfo))); | 3793 + (len * sizeof(RawLocalVarDescriptors::VarInfo))); |
| 3794 } | 3794 } |
| 3795 | 3795 |
| 3796 static RawLocalVarDescriptors* New(intptr_t num_variables); | 3796 static RawLocalVarDescriptors* New(intptr_t num_variables); |
| 3797 | 3797 |
| 3798 static const char* KindToStr(intptr_t kind); | 3798 static const char* KindToCString(RawLocalVarDescriptors::VarInfoKind kind); |
| 3799 | 3799 |
| 3800 private: | 3800 private: |
| 3801 FINAL_HEAP_OBJECT_IMPLEMENTATION(LocalVarDescriptors, Object); | 3801 FINAL_HEAP_OBJECT_IMPLEMENTATION(LocalVarDescriptors, Object); |
| 3802 friend class Class; | 3802 friend class Class; |
| 3803 friend class Object; | 3803 friend class Object; |
| 3804 }; | 3804 }; |
| 3805 | 3805 |
| 3806 | 3806 |
| 3807 class PcDescriptors : public Object { | 3807 class PcDescriptors : public Object { |
| 3808 public: | 3808 public: |
| (...skipping 4314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8123 | 8123 |
| 8124 | 8124 |
| 8125 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 8125 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 8126 intptr_t index) { | 8126 intptr_t index) { |
| 8127 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 8127 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 8128 } | 8128 } |
| 8129 | 8129 |
| 8130 } // namespace dart | 8130 } // namespace dart |
| 8131 | 8131 |
| 8132 #endif // VM_OBJECT_H_ | 8132 #endif // VM_OBJECT_H_ |
| OLD | NEW |