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 2057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2068 TokenPosition token_pos, | 2068 TokenPosition token_pos, |
2069 bool is_static_call) const; | 2069 bool is_static_call) const; |
2070 | 2070 |
2071 // Initialize the preallocated empty ICData entry arrays. | 2071 // Initialize the preallocated empty ICData entry arrays. |
2072 static void InitOnce(); | 2072 static void InitOnce(); |
2073 | 2073 |
2074 enum { | 2074 enum { |
2075 kCachedICDataArrayCount = 4 | 2075 kCachedICDataArrayCount = 4 |
2076 }; | 2076 }; |
2077 | 2077 |
| 2078 #if defined(TAG_IC_DATA) |
| 2079 void set_tag(intptr_t value) const; |
| 2080 intptr_t tag() const { return raw_ptr()->tag_; } |
| 2081 #endif |
| 2082 |
2078 private: | 2083 private: |
2079 static RawICData* New(); | 2084 static RawICData* New(); |
2080 | 2085 |
2081 RawArray* ic_data() const { | 2086 RawArray* ic_data() const { |
2082 return raw_ptr()->ic_data_; | 2087 return raw_ptr()->ic_data_; |
2083 } | 2088 } |
2084 | 2089 |
2085 void set_owner(const Function& value) const; | 2090 void set_owner(const Function& value) const; |
2086 void set_target_name(const String& value) const; | 2091 void set_target_name(const String& value) const; |
2087 void set_arguments_descriptor(const Array& value) const; | 2092 void set_arguments_descriptor(const Array& value) const; |
(...skipping 6346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8434 | 8439 |
8435 | 8440 |
8436 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 8441 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
8437 intptr_t index) { | 8442 intptr_t index) { |
8438 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 8443 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
8439 } | 8444 } |
8440 | 8445 |
8441 } // namespace dart | 8446 } // namespace dart |
8442 | 8447 |
8443 #endif // VM_OBJECT_H_ | 8448 #endif // VM_OBJECT_H_ |
OLD | NEW |