| 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 3965 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3976 | 3976 |
| 3977 friend class Code; | 3977 friend class Code; |
| 3978 | 3978 |
| 3979 DISALLOW_COPY_AND_ASSIGN(Comments); | 3979 DISALLOW_COPY_AND_ASSIGN(Comments); |
| 3980 }; | 3980 }; |
| 3981 | 3981 |
| 3982 | 3982 |
| 3983 const Comments& comments() const; | 3983 const Comments& comments() const; |
| 3984 void set_comments(const Comments& comments) const; | 3984 void set_comments(const Comments& comments) const; |
| 3985 | 3985 |
| 3986 RawObject* return_address_metadata() const { |
| 3987 return raw_ptr()->return_address_metadata_; |
| 3988 } |
| 3989 // Sets |return_address_metadata|. |
| 3990 void SetPrologueOffset(intptr_t offset) const; |
| 3991 // Returns -1 if no prologue offset is available. |
| 3992 intptr_t GetPrologueOffset() const; |
| 3993 |
| 3986 enum InlinedIntervalEntries { | 3994 enum InlinedIntervalEntries { |
| 3987 kInlIntStart = 0, | 3995 kInlIntStart = 0, |
| 3988 kInlIntInliningId = 1, | 3996 kInlIntInliningId = 1, |
| 3989 kInlIntCallerId = 2, | 3997 kInlIntCallerId = 2, |
| 3990 kInlIntNumEntries = 3, | 3998 kInlIntNumEntries = 3, |
| 3991 }; | 3999 }; |
| 3992 | 4000 |
| 3993 RawArray* inlined_intervals() const { | 4001 RawArray* GetInlinedIntervals() const; |
| 3994 return raw_ptr()->inlined_intervals_; | 4002 void SetInlinedIntervals(const Array& value) const; |
| 3995 } | |
| 3996 void set_inlined_intervals(const Array& value) const; | |
| 3997 | 4003 |
| 3998 RawArray* inlined_id_to_function() const { | 4004 RawArray* GetInlinedIdToFunction() const; |
| 3999 return raw_ptr()->inlined_id_to_function_; | 4005 void SetInlinedIdToFunction(const Array& value) const; |
| 4000 } | |
| 4001 void set_inlined_id_to_function(const Array& value) const; | |
| 4002 | 4006 |
| 4003 void GetInlinedFunctionsAt( | 4007 void GetInlinedFunctionsAt( |
| 4004 intptr_t offset, GrowableArray<Function*>* fs) const; | 4008 intptr_t offset, GrowableArray<Function*>* fs) const; |
| 4005 | 4009 |
| 4006 void DumpInlinedIntervals() const; | 4010 void DumpInlinedIntervals() const; |
| 4007 | 4011 |
| 4008 RawLocalVarDescriptors* var_descriptors() const { | 4012 RawLocalVarDescriptors* var_descriptors() const { |
| 4009 return raw_ptr()->var_descriptors_; | 4013 return raw_ptr()->var_descriptors_; |
| 4010 } | 4014 } |
| 4011 void set_var_descriptors(const LocalVarDescriptors& value) const { | 4015 void set_var_descriptors(const LocalVarDescriptors& value) const { |
| (...skipping 3733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7745 | 7749 |
| 7746 | 7750 |
| 7747 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 7751 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 7748 intptr_t index) { | 7752 intptr_t index) { |
| 7749 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 7753 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 7750 } | 7754 } |
| 7751 | 7755 |
| 7752 } // namespace dart | 7756 } // namespace dart |
| 7753 | 7757 |
| 7754 #endif // VM_OBJECT_H_ | 7758 #endif // VM_OBJECT_H_ |
| OLD | NEW |