| 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 1990 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2001 | 2001 |
| 2002 static MaybeHandle<Context> GetFunctionRealm(Handle<JSReceiver> receiver); | 2002 static MaybeHandle<Context> GetFunctionRealm(Handle<JSReceiver> receiver); |
| 2003 | 2003 |
| 2004 // Get the first non-hidden prototype. | 2004 // Get the first non-hidden prototype. |
| 2005 static inline MaybeHandle<Object> GetPrototype(Isolate* isolate, | 2005 static inline MaybeHandle<Object> GetPrototype(Isolate* isolate, |
| 2006 Handle<JSReceiver> receiver); | 2006 Handle<JSReceiver> receiver); |
| 2007 | 2007 |
| 2008 MUST_USE_RESULT static Maybe<bool> HasInPrototypeChain( | 2008 MUST_USE_RESULT static Maybe<bool> HasInPrototypeChain( |
| 2009 Isolate* isolate, Handle<JSReceiver> object, Handle<Object> proto); | 2009 Isolate* isolate, Handle<JSReceiver> object, Handle<Object> proto); |
| 2010 | 2010 |
| 2011 // Reads all enumerable own properties of source and adds them to target, | 2011 // Reads all enumerable own properties of source and adds them to |
| 2012 // using either Set or CreateDataProperty depending on the use_set argument. | 2012 // target, using either Set or CreateDataProperty depending on the |
| 2013 // use_set argument. This only copies values not present in the |
| 2014 // maybe_excluded_properties list. |
| 2013 MUST_USE_RESULT static Maybe<bool> SetOrCopyDataProperties( | 2015 MUST_USE_RESULT static Maybe<bool> SetOrCopyDataProperties( |
| 2014 Isolate* isolate, Handle<JSReceiver> target, Handle<Object> source, | 2016 Isolate* isolate, Handle<JSReceiver> target, Handle<Object> source, |
| 2015 bool use_set); | 2017 Arguments* excluded_properties = nullptr, bool use_set = true); |
| 2016 | 2018 |
| 2017 // Implementation of [[HasProperty]], ECMA-262 5th edition, section 8.12.6. | 2019 // Implementation of [[HasProperty]], ECMA-262 5th edition, section 8.12.6. |
| 2018 MUST_USE_RESULT static Maybe<bool> HasProperty(LookupIterator* it); | 2020 MUST_USE_RESULT static Maybe<bool> HasProperty(LookupIterator* it); |
| 2019 MUST_USE_RESULT static inline Maybe<bool> HasProperty( | 2021 MUST_USE_RESULT static inline Maybe<bool> HasProperty( |
| 2020 Handle<JSReceiver> object, Handle<Name> name); | 2022 Handle<JSReceiver> object, Handle<Name> name); |
| 2021 MUST_USE_RESULT static inline Maybe<bool> HasElement( | 2023 MUST_USE_RESULT static inline Maybe<bool> HasElement( |
| 2022 Handle<JSReceiver> object, uint32_t index); | 2024 Handle<JSReceiver> object, uint32_t index); |
| 2023 | 2025 |
| 2024 MUST_USE_RESULT static inline Maybe<bool> HasOwnProperty( | 2026 MUST_USE_RESULT static inline Maybe<bool> HasOwnProperty( |
| 2025 Handle<JSReceiver> object, Handle<Name> name); | 2027 Handle<JSReceiver> object, Handle<Name> name); |
| (...skipping 9666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11692 } | 11694 } |
| 11693 }; | 11695 }; |
| 11694 | 11696 |
| 11695 | 11697 |
| 11696 } // NOLINT, false-positive due to second-order macros. | 11698 } // NOLINT, false-positive due to second-order macros. |
| 11697 } // NOLINT, false-positive due to second-order macros. | 11699 } // NOLINT, false-positive due to second-order macros. |
| 11698 | 11700 |
| 11699 #include "src/objects/object-macros-undef.h" | 11701 #include "src/objects/object-macros-undef.h" |
| 11700 | 11702 |
| 11701 #endif // V8_OBJECTS_H_ | 11703 #endif // V8_OBJECTS_H_ |
| OLD | NEW |