| 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 3927 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3938 ASSERT(descriptors.IsOld()); | 3938 ASSERT(descriptors.IsOld()); |
| 3939 StorePointer(&raw_ptr()->pc_descriptors_, descriptors.raw()); | 3939 StorePointer(&raw_ptr()->pc_descriptors_, descriptors.raw()); |
| 3940 } | 3940 } |
| 3941 | 3941 |
| 3942 // Array of DeoptInfo objects. | 3942 // Array of DeoptInfo objects. |
| 3943 RawArray* deopt_info_array() const { | 3943 RawArray* deopt_info_array() const { |
| 3944 return raw_ptr()->deopt_info_array_; | 3944 return raw_ptr()->deopt_info_array_; |
| 3945 } | 3945 } |
| 3946 void set_deopt_info_array(const Array& array) const; | 3946 void set_deopt_info_array(const Array& array) const; |
| 3947 | 3947 |
| 3948 RawArray* object_table() const { | |
| 3949 return raw_ptr()->object_table_; | |
| 3950 } | |
| 3951 void set_object_table(const Array& array) const; | |
| 3952 | |
| 3953 RawArray* stackmaps() const { | 3948 RawArray* stackmaps() const { |
| 3954 return raw_ptr()->stackmaps_; | 3949 return raw_ptr()->stackmaps_; |
| 3955 } | 3950 } |
| 3956 void set_stackmaps(const Array& maps) const; | 3951 void set_stackmaps(const Array& maps) const; |
| 3957 RawStackmap* GetStackmap( | 3952 RawStackmap* GetStackmap( |
| 3958 uint32_t pc_offset, Array* stackmaps, Stackmap* map) const; | 3953 uint32_t pc_offset, Array* stackmaps, Stackmap* map) const; |
| 3959 | 3954 |
| 3960 enum { | 3955 enum { |
| 3961 kSCallTableOffsetEntry = 0, | 3956 kSCallTableOffsetEntry = 0, |
| 3962 kSCallTableFunctionEntry = 1, | 3957 kSCallTableFunctionEntry = 1, |
| (...skipping 3812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7775 | 7770 |
| 7776 | 7771 |
| 7777 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 7772 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 7778 intptr_t index) { | 7773 intptr_t index) { |
| 7779 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 7774 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 7780 } | 7775 } |
| 7781 | 7776 |
| 7782 } // namespace dart | 7777 } // namespace dart |
| 7783 | 7778 |
| 7784 #endif // VM_OBJECT_H_ | 7779 #endif // VM_OBJECT_H_ |
| OLD | NEW |