| 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 2129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2140 | 2140 |
| 2141 RawClass* Owner() const; | 2141 RawClass* Owner() const; |
| 2142 RawClass* origin() const; | 2142 RawClass* origin() const; |
| 2143 RawScript* script() const; | 2143 RawScript* script() const; |
| 2144 | 2144 |
| 2145 RawJSRegExp* regexp() const; | 2145 RawJSRegExp* regexp() const; |
| 2146 intptr_t string_specialization_cid() const; | 2146 intptr_t string_specialization_cid() const; |
| 2147 void SetRegExpData(const JSRegExp& regexp, | 2147 void SetRegExpData(const JSRegExp& regexp, |
| 2148 intptr_t string_specialization_cid) const; | 2148 intptr_t string_specialization_cid) const; |
| 2149 | 2149 |
| 2150 RawString* native_name() const; |
| 2151 void set_native_name(const String& name) const; |
| 2152 |
| 2150 RawAbstractType* result_type() const { return raw_ptr()->result_type_; } | 2153 RawAbstractType* result_type() const { return raw_ptr()->result_type_; } |
| 2151 void set_result_type(const AbstractType& value) const; | 2154 void set_result_type(const AbstractType& value) const; |
| 2152 | 2155 |
| 2153 RawAbstractType* ParameterTypeAt(intptr_t index) const; | 2156 RawAbstractType* ParameterTypeAt(intptr_t index) const; |
| 2154 void SetParameterTypeAt(intptr_t index, const AbstractType& value) const; | 2157 void SetParameterTypeAt(intptr_t index, const AbstractType& value) const; |
| 2155 RawArray* parameter_types() const { return raw_ptr()->parameter_types_; } | 2158 RawArray* parameter_types() const { return raw_ptr()->parameter_types_; } |
| 2156 void set_parameter_types(const Array& value) const; | 2159 void set_parameter_types(const Array& value) const; |
| 2157 | 2160 |
| 2158 // Parameter names are valid for all valid parameter indices, and are not | 2161 // Parameter names are valid for all valid parameter indices, and are not |
| 2159 // limited to named optional parameters. | 2162 // limited to named optional parameters. |
| (...skipping 6050 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8210 | 8213 |
| 8211 | 8214 |
| 8212 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 8215 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 8213 intptr_t index) { | 8216 intptr_t index) { |
| 8214 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 8217 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 8215 } | 8218 } |
| 8216 | 8219 |
| 8217 } // namespace dart | 8220 } // namespace dart |
| 8218 | 8221 |
| 8219 #endif // VM_OBJECT_H_ | 8222 #endif // VM_OBJECT_H_ |
| OLD | NEW |