| 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 <limits> | 8 #include <limits> |
| 9 #include "include/dart_api.h" | 9 #include "include/dart_api.h" |
| 10 #include "platform/assert.h" | 10 #include "platform/assert.h" |
| (...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 741 RawString* UserVisibleName() const; | 741 RawString* UserVisibleName() const; |
| 742 | 742 |
| 743 virtual RawString* DictionaryName() const { return Name(); } | 743 virtual RawString* DictionaryName() const { return Name(); } |
| 744 | 744 |
| 745 RawScript* script() const { return raw_ptr()->script_; } | 745 RawScript* script() const { return raw_ptr()->script_; } |
| 746 void set_script(const Script& value) const; | 746 void set_script(const Script& value) const; |
| 747 | 747 |
| 748 intptr_t token_pos() const { return raw_ptr()->token_pos_; } | 748 intptr_t token_pos() const { return raw_ptr()->token_pos_; } |
| 749 void set_token_pos(intptr_t value) const; | 749 void set_token_pos(intptr_t value) const; |
| 750 | 750 |
| 751 intptr_t ComputeEndTokenPos() const; |
| 752 |
| 751 // This class represents the signature class of a closure function if | 753 // This class represents the signature class of a closure function if |
| 752 // signature_function() is not null. | 754 // signature_function() is not null. |
| 753 // The associated function may be a closure function (with code) or a | 755 // The associated function may be a closure function (with code) or a |
| 754 // signature function (without code) solely describing the result type and | 756 // signature function (without code) solely describing the result type and |
| 755 // parameter types of the signature. | 757 // parameter types of the signature. |
| 756 RawFunction* signature_function() const { | 758 RawFunction* signature_function() const { |
| 757 return raw_ptr()->signature_function_; | 759 return raw_ptr()->signature_function_; |
| 758 } | 760 } |
| 759 static intptr_t signature_function_offset() { | 761 static intptr_t signature_function_offset() { |
| 760 return OFFSET_OF(RawClass, signature_function_); | 762 return OFFSET_OF(RawClass, signature_function_); |
| (...skipping 6389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7150 | 7152 |
| 7151 | 7153 |
| 7152 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 7154 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 7153 intptr_t index) { | 7155 intptr_t index) { |
| 7154 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 7156 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 7155 } | 7157 } |
| 7156 | 7158 |
| 7157 } // namespace dart | 7159 } // namespace dart |
| 7158 | 7160 |
| 7159 #endif // VM_OBJECT_H_ | 7161 #endif // VM_OBJECT_H_ |
| OLD | NEW |