| 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 2086 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2097 bool HasInstantiatedSignature() const; | 2097 bool HasInstantiatedSignature() const; |
| 2098 | 2098 |
| 2099 // Build a string of the form 'T, {b: B, c: C} representing the user | 2099 // Build a string of the form 'T, {b: B, c: C} representing the user |
| 2100 // visible formal parameters of the function. | 2100 // visible formal parameters of the function. |
| 2101 RawString* UserVisibleFormalParameters() const; | 2101 RawString* UserVisibleFormalParameters() const; |
| 2102 | 2102 |
| 2103 RawClass* Owner() const; | 2103 RawClass* Owner() const; |
| 2104 RawClass* origin() const; | 2104 RawClass* origin() const; |
| 2105 RawScript* script() const; | 2105 RawScript* script() const; |
| 2106 | 2106 |
| 2107 void set_regexp(const JSRegExp& value) const; | |
| 2108 RawJSRegExp* regexp() const; | 2107 RawJSRegExp* regexp() const; |
| 2109 | 2108 intptr_t string_specialization_cid() const; |
| 2110 // Get and set the class id this function is specialized for. Only set for | 2109 void SetRegExpData(const JSRegExp& regexp, |
| 2111 // irregexp functions. | 2110 intptr_t string_specialization_cid) const; |
| 2112 intptr_t regexp_cid() const { return raw_ptr()->regexp_cid_; } | |
| 2113 void set_regexp_cid(intptr_t regexp_cid) const; | |
| 2114 | 2111 |
| 2115 RawAbstractType* result_type() const { return raw_ptr()->result_type_; } | 2112 RawAbstractType* result_type() const { return raw_ptr()->result_type_; } |
| 2116 void set_result_type(const AbstractType& value) const; | 2113 void set_result_type(const AbstractType& value) const; |
| 2117 | 2114 |
| 2118 RawAbstractType* ParameterTypeAt(intptr_t index) const; | 2115 RawAbstractType* ParameterTypeAt(intptr_t index) const; |
| 2119 void SetParameterTypeAt(intptr_t index, const AbstractType& value) const; | 2116 void SetParameterTypeAt(intptr_t index, const AbstractType& value) const; |
| 2120 RawArray* parameter_types() const { return raw_ptr()->parameter_types_; } | 2117 RawArray* parameter_types() const { return raw_ptr()->parameter_types_; } |
| 2121 void set_parameter_types(const Array& value) const; | 2118 void set_parameter_types(const Array& value) const; |
| 2122 | 2119 |
| 2123 // Parameter names are valid for all valid parameter indices, and are not | 2120 // Parameter names are valid for all valid parameter indices, and are not |
| (...skipping 5908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8032 | 8029 |
| 8033 | 8030 |
| 8034 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 8031 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 8035 intptr_t index) { | 8032 intptr_t index) { |
| 8036 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 8033 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 8037 } | 8034 } |
| 8038 | 8035 |
| 8039 } // namespace dart | 8036 } // namespace dart |
| 8040 | 8037 |
| 8041 #endif // VM_OBJECT_H_ | 8038 #endif // VM_OBJECT_H_ |
| OLD | NEW |