| 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 1499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1510 case RawFunction::kConstructor: | 1510 case RawFunction::kConstructor: |
| 1511 return false; | 1511 return false; |
| 1512 default: | 1512 default: |
| 1513 UNREACHABLE(); | 1513 UNREACHABLE(); |
| 1514 return false; | 1514 return false; |
| 1515 } | 1515 } |
| 1516 } | 1516 } |
| 1517 bool IsInFactoryScope() const; | 1517 bool IsInFactoryScope() const; |
| 1518 | 1518 |
| 1519 intptr_t token_pos() const { return raw_ptr()->token_pos_; } | 1519 intptr_t token_pos() const { return raw_ptr()->token_pos_; } |
| 1520 void set_token_pos(intptr_t value) const; |
| 1520 | 1521 |
| 1521 intptr_t end_token_pos() const { return raw_ptr()->end_token_pos_; } | 1522 intptr_t end_token_pos() const { return raw_ptr()->end_token_pos_; } |
| 1522 void set_end_token_pos(intptr_t value) const { | 1523 void set_end_token_pos(intptr_t value) const { |
| 1523 raw_ptr()->end_token_pos_ = value; | 1524 raw_ptr()->end_token_pos_ = value; |
| 1524 } | 1525 } |
| 1525 | 1526 |
| 1526 intptr_t num_fixed_parameters() const { | 1527 intptr_t num_fixed_parameters() const { |
| 1527 return raw_ptr()->num_fixed_parameters_; | 1528 return raw_ptr()->num_fixed_parameters_; |
| 1528 } | 1529 } |
| 1529 void set_num_fixed_parameters(intptr_t value) const; | 1530 void set_num_fixed_parameters(intptr_t value) const; |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1790 class KindBits : | 1791 class KindBits : |
| 1791 public BitField<RawFunction::Kind, kKindTagBit, kKindTagSize> {}; // NOLINT | 1792 public BitField<RawFunction::Kind, kKindTagBit, kKindTagSize> {}; // NOLINT |
| 1792 | 1793 |
| 1793 void set_name(const String& value) const; | 1794 void set_name(const String& value) const; |
| 1794 void set_kind(RawFunction::Kind value) const; | 1795 void set_kind(RawFunction::Kind value) const; |
| 1795 void set_is_static(bool value) const; | 1796 void set_is_static(bool value) const; |
| 1796 void set_is_const(bool value) const; | 1797 void set_is_const(bool value) const; |
| 1797 void set_is_external(bool value) const; | 1798 void set_is_external(bool value) const; |
| 1798 void set_parent_function(const Function& value) const; | 1799 void set_parent_function(const Function& value) const; |
| 1799 void set_owner(const Object& value) const; | 1800 void set_owner(const Object& value) const; |
| 1800 void set_token_pos(intptr_t value) const; | |
| 1801 RawFunction* implicit_closure_function() const; | 1801 RawFunction* implicit_closure_function() const; |
| 1802 void set_implicit_closure_function(const Function& value) const; | 1802 void set_implicit_closure_function(const Function& value) const; |
| 1803 void set_num_optional_parameters(intptr_t value) const; // Encoded value. | 1803 void set_num_optional_parameters(intptr_t value) const; // Encoded value. |
| 1804 void set_kind_tag(intptr_t value) const; | 1804 void set_kind_tag(intptr_t value) const; |
| 1805 void set_data(const Object& value) const; | 1805 void set_data(const Object& value) const; |
| 1806 static RawFunction* New(); | 1806 static RawFunction* New(); |
| 1807 | 1807 |
| 1808 RawString* BuildSignature(bool instantiate, | 1808 RawString* BuildSignature(bool instantiate, |
| 1809 NameVisibility name_visibility, | 1809 NameVisibility name_visibility, |
| 1810 const AbstractTypeArguments& instantiator) const; | 1810 const AbstractTypeArguments& instantiator) const; |
| (...skipping 4184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5995 | 5995 |
| 5996 | 5996 |
| 5997 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 5997 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 5998 intptr_t index) { | 5998 intptr_t index) { |
| 5999 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 5999 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 6000 } | 6000 } |
| 6001 | 6001 |
| 6002 } // namespace dart | 6002 } // namespace dart |
| 6003 | 6003 |
| 6004 #endif // VM_OBJECT_H_ | 6004 #endif // VM_OBJECT_H_ |
| OLD | NEW |