Chromium Code Reviews| 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 1981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1992 | 1992 |
| 1993 static MaybeHandle<Context> GetFunctionRealm(Handle<JSReceiver> receiver); | 1993 static MaybeHandle<Context> GetFunctionRealm(Handle<JSReceiver> receiver); |
| 1994 | 1994 |
| 1995 // Get the first non-hidden prototype. | 1995 // Get the first non-hidden prototype. |
| 1996 static inline MaybeHandle<Object> GetPrototype(Isolate* isolate, | 1996 static inline MaybeHandle<Object> GetPrototype(Isolate* isolate, |
| 1997 Handle<JSReceiver> receiver); | 1997 Handle<JSReceiver> receiver); |
| 1998 | 1998 |
| 1999 MUST_USE_RESULT static Maybe<bool> HasInPrototypeChain( | 1999 MUST_USE_RESULT static Maybe<bool> HasInPrototypeChain( |
| 2000 Isolate* isolate, Handle<JSReceiver> object, Handle<Object> proto); | 2000 Isolate* isolate, Handle<JSReceiver> object, Handle<Object> proto); |
| 2001 | 2001 |
| 2002 MUST_USE_RESULT static Maybe<bool> SetOrCopyDataProperties( | |
|
adamk
2016/12/29 18:32:46
Please give this a comment.
gsathya
2017/01/05 22:18:36
Done.
| |
| 2003 Isolate* isolate, Handle<JSReceiver> target, Handle<Object> source, | |
| 2004 bool use_set); | |
| 2005 | |
| 2002 // Implementation of [[HasProperty]], ECMA-262 5th edition, section 8.12.6. | 2006 // Implementation of [[HasProperty]], ECMA-262 5th edition, section 8.12.6. |
| 2003 MUST_USE_RESULT static Maybe<bool> HasProperty(LookupIterator* it); | 2007 MUST_USE_RESULT static Maybe<bool> HasProperty(LookupIterator* it); |
| 2004 MUST_USE_RESULT static inline Maybe<bool> HasProperty( | 2008 MUST_USE_RESULT static inline Maybe<bool> HasProperty( |
| 2005 Handle<JSReceiver> object, Handle<Name> name); | 2009 Handle<JSReceiver> object, Handle<Name> name); |
| 2006 MUST_USE_RESULT static inline Maybe<bool> HasElement( | 2010 MUST_USE_RESULT static inline Maybe<bool> HasElement( |
| 2007 Handle<JSReceiver> object, uint32_t index); | 2011 Handle<JSReceiver> object, uint32_t index); |
| 2008 | 2012 |
| 2009 MUST_USE_RESULT static inline Maybe<bool> HasOwnProperty( | 2013 MUST_USE_RESULT static inline Maybe<bool> HasOwnProperty( |
| 2010 Handle<JSReceiver> object, Handle<Name> name); | 2014 Handle<JSReceiver> object, Handle<Name> name); |
| 2011 MUST_USE_RESULT static inline Maybe<bool> HasOwnProperty( | 2015 MUST_USE_RESULT static inline Maybe<bool> HasOwnProperty( |
| (...skipping 9697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 11709 } | 11713 } |
| 11710 }; | 11714 }; |
| 11711 | 11715 |
| 11712 | 11716 |
| 11713 } // NOLINT, false-positive due to second-order macros. | 11717 } // NOLINT, false-positive due to second-order macros. |
| 11714 } // NOLINT, false-positive due to second-order macros. | 11718 } // NOLINT, false-positive due to second-order macros. |
| 11715 | 11719 |
| 11716 #include "src/objects/object-macros-undef.h" | 11720 #include "src/objects/object-macros-undef.h" |
| 11717 | 11721 |
| 11718 #endif // V8_OBJECTS_H_ | 11722 #endif // V8_OBJECTS_H_ |
| OLD | NEW |