OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 1811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1822 DECLARE_CAST(JSReceiver) | 1822 DECLARE_CAST(JSReceiver) |
1823 | 1823 |
1824 // ES6 section 7.1.1 ToPrimitive | 1824 // ES6 section 7.1.1 ToPrimitive |
1825 MUST_USE_RESULT static MaybeHandle<Object> ToPrimitive( | 1825 MUST_USE_RESULT static MaybeHandle<Object> ToPrimitive( |
1826 Handle<JSReceiver> receiver, | 1826 Handle<JSReceiver> receiver, |
1827 ToPrimitiveHint hint = ToPrimitiveHint::kDefault); | 1827 ToPrimitiveHint hint = ToPrimitiveHint::kDefault); |
1828 MUST_USE_RESULT static MaybeHandle<Object> OrdinaryToPrimitive( | 1828 MUST_USE_RESULT static MaybeHandle<Object> OrdinaryToPrimitive( |
1829 Handle<JSReceiver> receiver, OrdinaryToPrimitiveHint hint); | 1829 Handle<JSReceiver> receiver, OrdinaryToPrimitiveHint hint); |
1830 | 1830 |
1831 // Implementation of [[HasProperty]], ECMA-262 5th edition, section 8.12.6. | 1831 // Implementation of [[HasProperty]], ECMA-262 5th edition, section 8.12.6. |
| 1832 MUST_USE_RESULT static Maybe<bool> HasProperty(LookupIterator* it); |
1832 MUST_USE_RESULT static inline Maybe<bool> HasProperty( | 1833 MUST_USE_RESULT static inline Maybe<bool> HasProperty( |
1833 Handle<JSReceiver> object, Handle<Name> name); | 1834 Handle<JSReceiver> object, Handle<Name> name); |
1834 MUST_USE_RESULT static inline Maybe<bool> HasOwnProperty(Handle<JSReceiver>, | 1835 MUST_USE_RESULT static inline Maybe<bool> HasOwnProperty(Handle<JSReceiver>, |
1835 Handle<Name> name); | 1836 Handle<Name> name); |
1836 MUST_USE_RESULT static inline Maybe<bool> HasElement( | 1837 MUST_USE_RESULT static inline Maybe<bool> HasElement( |
1837 Handle<JSReceiver> object, uint32_t index); | 1838 Handle<JSReceiver> object, uint32_t index); |
1838 MUST_USE_RESULT static inline Maybe<bool> HasOwnElement( | 1839 MUST_USE_RESULT static inline Maybe<bool> HasOwnElement( |
1839 Handle<JSReceiver> object, uint32_t index); | 1840 Handle<JSReceiver> object, uint32_t index); |
1840 | 1841 |
1841 // Implementation of [[Delete]], ECMA-262 5th edition, section 8.12.7. | 1842 // Implementation of [[Delete]], ECMA-262 5th edition, section 8.12.7. |
(...skipping 8960 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10802 // (elements + properties) in the current level. | 10803 // (elements + properties) in the current level. |
10803 int levelLength_ = 0; | 10804 int levelLength_ = 0; |
10804 | 10805 |
10805 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); | 10806 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); |
10806 }; | 10807 }; |
10807 | 10808 |
10808 } // NOLINT, false-positive due to second-order macros. | 10809 } // NOLINT, false-positive due to second-order macros. |
10809 } // NOLINT, false-positive due to second-order macros. | 10810 } // NOLINT, false-positive due to second-order macros. |
10810 | 10811 |
10811 #endif // V8_OBJECTS_H_ | 10812 #endif // V8_OBJECTS_H_ |
OLD | NEW |