| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
| 6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
| 7 | 7 |
| 8 #include <iosfwd> | 8 #include <iosfwd> |
| 9 | 9 |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 8554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8565 // Equality operations. | 8565 // Equality operations. |
| 8566 inline bool Equals(Name* other); | 8566 inline bool Equals(Name* other); |
| 8567 inline static bool Equals(Handle<Name> one, Handle<Name> two); | 8567 inline static bool Equals(Handle<Name> one, Handle<Name> two); |
| 8568 | 8568 |
| 8569 // Conversion. | 8569 // Conversion. |
| 8570 inline bool AsArrayIndex(uint32_t* index); | 8570 inline bool AsArrayIndex(uint32_t* index); |
| 8571 | 8571 |
| 8572 // If the name is private, it can only name own properties. | 8572 // If the name is private, it can only name own properties. |
| 8573 inline bool IsPrivate(); | 8573 inline bool IsPrivate(); |
| 8574 | 8574 |
| 8575 // If the name is a non-flat string, this method returns a flat version of the | 8575 inline bool IsUniqueName() const; |
| 8576 // string. Otherwise it'll just return the input. | |
| 8577 static inline Handle<Name> Flatten(Handle<Name> name, | |
| 8578 PretenureFlag pretenure = NOT_TENURED); | |
| 8579 | 8576 |
| 8580 // Return a string version of this name that is converted according to the | 8577 // Return a string version of this name that is converted according to the |
| 8581 // rules described in ES6 section 9.2.11. | 8578 // rules described in ES6 section 9.2.11. |
| 8582 MUST_USE_RESULT static MaybeHandle<String> ToFunctionName(Handle<Name> name); | 8579 MUST_USE_RESULT static MaybeHandle<String> ToFunctionName(Handle<Name> name); |
| 8583 | 8580 |
| 8584 DECLARE_CAST(Name) | 8581 DECLARE_CAST(Name) |
| 8585 | 8582 |
| 8586 DECLARE_PRINTER(Name) | 8583 DECLARE_PRINTER(Name) |
| 8587 #if TRACE_MAPS | 8584 #if TRACE_MAPS |
| 8588 void NameShortPrint(); | 8585 void NameShortPrint(); |
| (...skipping 2248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10837 } | 10834 } |
| 10838 return value; | 10835 return value; |
| 10839 } | 10836 } |
| 10840 }; | 10837 }; |
| 10841 | 10838 |
| 10842 | 10839 |
| 10843 } // NOLINT, false-positive due to second-order macros. | 10840 } // NOLINT, false-positive due to second-order macros. |
| 10844 } // NOLINT, false-positive due to second-order macros. | 10841 } // NOLINT, false-positive due to second-order macros. |
| 10845 | 10842 |
| 10846 #endif // V8_OBJECTS_H_ | 10843 #endif // V8_OBJECTS_H_ |
| OLD | NEW |