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 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 1985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1996 | 1996 |
1997 MUST_USE_RESULT static Maybe<bool> HasInPrototypeChain( | 1997 MUST_USE_RESULT static Maybe<bool> HasInPrototypeChain( |
1998 Isolate* isolate, Handle<JSReceiver> object, Handle<Object> proto); | 1998 Isolate* isolate, Handle<JSReceiver> object, Handle<Object> proto); |
1999 | 1999 |
2000 // Reads all enumerable own properties of source and adds them to | 2000 // Reads all enumerable own properties of source and adds them to |
2001 // target, using either Set or CreateDataProperty depending on the | 2001 // target, using either Set or CreateDataProperty depending on the |
2002 // use_set argument. This only copies values not present in the | 2002 // use_set argument. This only copies values not present in the |
2003 // maybe_excluded_properties list. | 2003 // maybe_excluded_properties list. |
2004 MUST_USE_RESULT static Maybe<bool> SetOrCopyDataProperties( | 2004 MUST_USE_RESULT static Maybe<bool> SetOrCopyDataProperties( |
2005 Isolate* isolate, Handle<JSReceiver> target, Handle<Object> source, | 2005 Isolate* isolate, Handle<JSReceiver> target, Handle<Object> source, |
2006 const ScopedVector<Handle<Name>>* excluded_properties = nullptr, | 2006 const ScopedVector<Handle<Object>>* excluded_properties = nullptr, |
2007 bool use_set = true); | 2007 bool use_set = true); |
2008 | 2008 |
2009 // Implementation of [[HasProperty]], ECMA-262 5th edition, section 8.12.6. | 2009 // Implementation of [[HasProperty]], ECMA-262 5th edition, section 8.12.6. |
2010 MUST_USE_RESULT static Maybe<bool> HasProperty(LookupIterator* it); | 2010 MUST_USE_RESULT static Maybe<bool> HasProperty(LookupIterator* it); |
2011 MUST_USE_RESULT static inline Maybe<bool> HasProperty( | 2011 MUST_USE_RESULT static inline Maybe<bool> HasProperty( |
2012 Handle<JSReceiver> object, Handle<Name> name); | 2012 Handle<JSReceiver> object, Handle<Name> name); |
2013 MUST_USE_RESULT static inline Maybe<bool> HasElement( | 2013 MUST_USE_RESULT static inline Maybe<bool> HasElement( |
2014 Handle<JSReceiver> object, uint32_t index); | 2014 Handle<JSReceiver> object, uint32_t index); |
2015 | 2015 |
2016 MUST_USE_RESULT static inline Maybe<bool> HasOwnProperty( | 2016 MUST_USE_RESULT static inline Maybe<bool> HasOwnProperty( |
(...skipping 9634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11651 } | 11651 } |
11652 }; | 11652 }; |
11653 | 11653 |
11654 | 11654 |
11655 } // NOLINT, false-positive due to second-order macros. | 11655 } // NOLINT, false-positive due to second-order macros. |
11656 } // NOLINT, false-positive due to second-order macros. | 11656 } // NOLINT, false-positive due to second-order macros. |
11657 | 11657 |
11658 #include "src/objects/object-macros-undef.h" | 11658 #include "src/objects/object-macros-undef.h" |
11659 | 11659 |
11660 #endif // V8_OBJECTS_H_ | 11660 #endif // V8_OBJECTS_H_ |
OLD | NEW |