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 2056 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2067 intptr_t deopt_id, | 2067 intptr_t deopt_id, |
2068 intptr_t num_args_tested); | 2068 intptr_t num_args_tested); |
2069 | 2069 |
2070 static void WriteSentinel(const Array& data, intptr_t test_entry_length); | 2070 static void WriteSentinel(const Array& data, intptr_t test_entry_length); |
2071 | 2071 |
2072 // A cache of VM heap allocated preinitialized empty ic data entry arrays. | 2072 // A cache of VM heap allocated preinitialized empty ic data entry arrays. |
2073 static RawArray* cached_icdata_arrays_[kCachedICDataArrayCount]; | 2073 static RawArray* cached_icdata_arrays_[kCachedICDataArrayCount]; |
2074 | 2074 |
2075 FINAL_HEAP_OBJECT_IMPLEMENTATION(ICData, Object); | 2075 FINAL_HEAP_OBJECT_IMPLEMENTATION(ICData, Object); |
2076 friend class Class; | 2076 friend class Class; |
2077 friend class SnapshotReader; | |
2078 friend class SnapshotWriter; | 2077 friend class SnapshotWriter; |
2079 }; | 2078 }; |
2080 | 2079 |
2081 | 2080 |
2082 class Function : public Object { | 2081 class Function : public Object { |
2083 public: | 2082 public: |
2084 RawString* name() const { return raw_ptr()->name_; } | 2083 RawString* name() const { return raw_ptr()->name_; } |
2085 RawString* PrettyName() const; | 2084 RawString* PrettyName() const; |
2086 RawString* UserVisibleName() const; | 2085 RawString* UserVisibleName() const; |
2087 RawString* QualifiedPrettyName() const; | 2086 RawString* QualifiedPrettyName() const; |
(...skipping 6109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8197 | 8196 |
8198 | 8197 |
8199 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 8198 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
8200 intptr_t index) { | 8199 intptr_t index) { |
8201 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 8200 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
8202 } | 8201 } |
8203 | 8202 |
8204 } // namespace dart | 8203 } // namespace dart |
8205 | 8204 |
8206 #endif // VM_OBJECT_H_ | 8205 #endif // VM_OBJECT_H_ |
OLD | NEW |