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 1317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1328 static RawInstantiatedTypeArguments* New(); | 1328 static RawInstantiatedTypeArguments* New(); |
1329 | 1329 |
1330 HEAP_OBJECT_IMPLEMENTATION(InstantiatedTypeArguments, AbstractTypeArguments); | 1330 HEAP_OBJECT_IMPLEMENTATION(InstantiatedTypeArguments, AbstractTypeArguments); |
1331 friend class Class; | 1331 friend class Class; |
1332 }; | 1332 }; |
1333 | 1333 |
1334 | 1334 |
1335 class Function : public Object { | 1335 class Function : public Object { |
1336 public: | 1336 public: |
1337 RawString* name() const { return raw_ptr()->name_; } | 1337 RawString* name() const { return raw_ptr()->name_; } |
| 1338 RawString* UserVisibleName() const; |
| 1339 RawString* QualifiedUserVisibleName() const; |
1338 | 1340 |
1339 // Build a string of the form '<T, R>(T, [b: B, c: C]) => R' representing the | 1341 // Build a string of the form '<T, R>(T, [b: B, c: C]) => R' representing the |
1340 // internal signature of the given function. | 1342 // internal signature of the given function. |
1341 RawString* Signature() const { | 1343 RawString* Signature() const { |
1342 const bool instantiate = false; | 1344 const bool instantiate = false; |
1343 return BuildSignature(instantiate, kInternalName, TypeArguments::Handle()); | 1345 return BuildSignature(instantiate, kInternalName, TypeArguments::Handle()); |
1344 } | 1346 } |
1345 | 1347 |
1346 // Build a string of the form '(A, [b: B, c: C]) => D' representing the | 1348 // Build a string of the form '(A, [b: B, c: C]) => D' representing the |
1347 // signature of the given function, where all generic types (e.g. '<T, R>' in | 1349 // signature of the given function, where all generic types (e.g. '<T, R>' in |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1661 Error* malformed_error) const; | 1663 Error* malformed_error) const; |
1662 | 1664 |
1663 HEAP_OBJECT_IMPLEMENTATION(Function, Object); | 1665 HEAP_OBJECT_IMPLEMENTATION(Function, Object); |
1664 friend class Class; | 1666 friend class Class; |
1665 }; | 1667 }; |
1666 | 1668 |
1667 | 1669 |
1668 class Field : public Object { | 1670 class Field : public Object { |
1669 public: | 1671 public: |
1670 RawString* name() const { return raw_ptr()->name_; } | 1672 RawString* name() const { return raw_ptr()->name_; } |
| 1673 RawString* UserVisibleName() const; |
| 1674 |
1671 bool is_static() const { return raw_ptr()->is_static_; } | 1675 bool is_static() const { return raw_ptr()->is_static_; } |
1672 bool is_final() const { return raw_ptr()->is_final_; } | 1676 bool is_final() const { return raw_ptr()->is_final_; } |
1673 bool is_const() const { return raw_ptr()->is_const_; } | 1677 bool is_const() const { return raw_ptr()->is_const_; } |
1674 | 1678 |
1675 inline intptr_t Offset() const; | 1679 inline intptr_t Offset() const; |
1676 inline void SetOffset(intptr_t value) const; | 1680 inline void SetOffset(intptr_t value) const; |
1677 | 1681 |
1678 RawInstance* value() const; | 1682 RawInstance* value() const; |
1679 void set_value(const Instance& value) const; | 1683 void set_value(const Instance& value) const; |
1680 | 1684 |
(...skipping 3770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5451 if (this->CharAt(i) != str.CharAt(begin_index + i)) { | 5455 if (this->CharAt(i) != str.CharAt(begin_index + i)) { |
5452 return false; | 5456 return false; |
5453 } | 5457 } |
5454 } | 5458 } |
5455 return true; | 5459 return true; |
5456 } | 5460 } |
5457 | 5461 |
5458 } // namespace dart | 5462 } // namespace dart |
5459 | 5463 |
5460 #endif // VM_OBJECT_H_ | 5464 #endif // VM_OBJECT_H_ |
OLD | NEW |