Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(382)

Side by Side Diff: src/objects.h

Issue 2620943002: [ESnext] Implement Object Rest (Closed)
Patch Set: add todo and test Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/messages.h ('k') | src/objects.cc » ('j') | src/objects.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/messages.h ('k') | src/objects.cc » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698