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

Side by Side Diff: src/objects.h

Issue 2620943002: [ESnext] Implement Object Rest (Closed)
Patch Set: Remove comment 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
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 2001 matching lines...) Expand 10 before | Expand all | Expand 10 after
2012 static inline MaybeHandle<Object> GetPrototype(Isolate* isolate, 2012 static inline MaybeHandle<Object> GetPrototype(Isolate* isolate,
2013 Handle<JSReceiver> receiver); 2013 Handle<JSReceiver> receiver);
2014 2014
2015 MUST_USE_RESULT static Maybe<bool> HasInPrototypeChain( 2015 MUST_USE_RESULT static Maybe<bool> HasInPrototypeChain(
2016 Isolate* isolate, Handle<JSReceiver> object, Handle<Object> proto); 2016 Isolate* isolate, Handle<JSReceiver> object, Handle<Object> proto);
2017 2017
2018 // Reads all enumerable own properties of source and adds them to target, 2018 // Reads all enumerable own properties of source and adds them to target,
2019 // using either Set or CreateDataProperty depending on the use_set argument. 2019 // using either Set or CreateDataProperty depending on the use_set argument.
2020 MUST_USE_RESULT static Maybe<bool> SetOrCopyDataProperties( 2020 MUST_USE_RESULT static Maybe<bool> SetOrCopyDataProperties(
2021 Isolate* isolate, Handle<JSReceiver> target, Handle<Object> source, 2021 Isolate* isolate, Handle<JSReceiver> target, Handle<Object> source,
2022 bool use_set); 2022 MaybeHandle<JSArray> maybe_excluded_properties = MaybeHandle<JSArray>(),
2023 bool use_set = true);
2023 2024
2024 // Implementation of [[HasProperty]], ECMA-262 5th edition, section 8.12.6. 2025 // Implementation of [[HasProperty]], ECMA-262 5th edition, section 8.12.6.
2025 MUST_USE_RESULT static Maybe<bool> HasProperty(LookupIterator* it); 2026 MUST_USE_RESULT static Maybe<bool> HasProperty(LookupIterator* it);
2026 MUST_USE_RESULT static inline Maybe<bool> HasProperty( 2027 MUST_USE_RESULT static inline Maybe<bool> HasProperty(
2027 Handle<JSReceiver> object, Handle<Name> name); 2028 Handle<JSReceiver> object, Handle<Name> name);
2028 MUST_USE_RESULT static inline Maybe<bool> HasElement( 2029 MUST_USE_RESULT static inline Maybe<bool> HasElement(
2029 Handle<JSReceiver> object, uint32_t index); 2030 Handle<JSReceiver> object, uint32_t index);
2030 2031
2031 MUST_USE_RESULT static inline Maybe<bool> HasOwnProperty( 2032 MUST_USE_RESULT static inline Maybe<bool> HasOwnProperty(
2032 Handle<JSReceiver> object, Handle<Name> name); 2033 Handle<JSReceiver> object, Handle<Name> name);
(...skipping 9714 matching lines...) Expand 10 before | Expand all | Expand 10 after
11747 } 11748 }
11748 }; 11749 };
11749 11750
11750 11751
11751 } // NOLINT, false-positive due to second-order macros. 11752 } // NOLINT, false-positive due to second-order macros.
11752 } // NOLINT, false-positive due to second-order macros. 11753 } // NOLINT, false-positive due to second-order macros.
11753 11754
11754 #include "src/objects/object-macros-undef.h" 11755 #include "src/objects/object-macros-undef.h"
11755 11756
11756 #endif // V8_OBJECTS_H_ 11757 #endif // V8_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698