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 1984 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1995 | 1995 |
1996 static MaybeHandle<Context> GetFunctionRealm(Handle<JSReceiver> receiver); | 1996 static MaybeHandle<Context> GetFunctionRealm(Handle<JSReceiver> receiver); |
1997 | 1997 |
1998 // Get the first non-hidden prototype. | 1998 // Get the first non-hidden prototype. |
1999 static inline MaybeHandle<Object> GetPrototype(Isolate* isolate, | 1999 static inline MaybeHandle<Object> GetPrototype(Isolate* isolate, |
2000 Handle<JSReceiver> receiver); | 2000 Handle<JSReceiver> receiver); |
2001 | 2001 |
2002 MUST_USE_RESULT static Maybe<bool> HasInPrototypeChain( | 2002 MUST_USE_RESULT static Maybe<bool> HasInPrototypeChain( |
2003 Isolate* isolate, Handle<JSReceiver> object, Handle<Object> proto); | 2003 Isolate* isolate, Handle<JSReceiver> object, Handle<Object> proto); |
2004 | 2004 |
| 2005 // Reads all enumerable own properties of source and adds them to target, |
| 2006 // using either Set or CreateDataProperty depending on the use_set argument. |
| 2007 MUST_USE_RESULT static Maybe<bool> SetOrCopyDataProperties( |
| 2008 Isolate* isolate, Handle<JSReceiver> target, Handle<Object> source, |
| 2009 bool use_set); |
| 2010 |
2005 // Implementation of [[HasProperty]], ECMA-262 5th edition, section 8.12.6. | 2011 // Implementation of [[HasProperty]], ECMA-262 5th edition, section 8.12.6. |
2006 MUST_USE_RESULT static Maybe<bool> HasProperty(LookupIterator* it); | 2012 MUST_USE_RESULT static Maybe<bool> HasProperty(LookupIterator* it); |
2007 MUST_USE_RESULT static inline Maybe<bool> HasProperty( | 2013 MUST_USE_RESULT static inline Maybe<bool> HasProperty( |
2008 Handle<JSReceiver> object, Handle<Name> name); | 2014 Handle<JSReceiver> object, Handle<Name> name); |
2009 MUST_USE_RESULT static inline Maybe<bool> HasElement( | 2015 MUST_USE_RESULT static inline Maybe<bool> HasElement( |
2010 Handle<JSReceiver> object, uint32_t index); | 2016 Handle<JSReceiver> object, uint32_t index); |
2011 | 2017 |
2012 MUST_USE_RESULT static inline Maybe<bool> HasOwnProperty( | 2018 MUST_USE_RESULT static inline Maybe<bool> HasOwnProperty( |
2013 Handle<JSReceiver> object, Handle<Name> name); | 2019 Handle<JSReceiver> object, Handle<Name> name); |
2014 MUST_USE_RESULT static inline Maybe<bool> HasOwnProperty( | 2020 MUST_USE_RESULT static inline Maybe<bool> HasOwnProperty( |
(...skipping 9730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11745 } | 11751 } |
11746 }; | 11752 }; |
11747 | 11753 |
11748 | 11754 |
11749 } // NOLINT, false-positive due to second-order macros. | 11755 } // NOLINT, false-positive due to second-order macros. |
11750 } // NOLINT, false-positive due to second-order macros. | 11756 } // NOLINT, false-positive due to second-order macros. |
11751 | 11757 |
11752 #include "src/objects/object-macros-undef.h" | 11758 #include "src/objects/object-macros-undef.h" |
11753 | 11759 |
11754 #endif // V8_OBJECTS_H_ | 11760 #endif // V8_OBJECTS_H_ |
OLD | NEW |