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

Side by Side Diff: src/objects.h

Issue 1414403003: Fix HasProperty/HasElement for Proxies on the prototype chain (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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 | « no previous file | src/objects.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 1811 matching lines...) Expand 10 before | Expand all | Expand 10 after
1822 DECLARE_CAST(JSReceiver) 1822 DECLARE_CAST(JSReceiver)
1823 1823
1824 // ES6 section 7.1.1 ToPrimitive 1824 // ES6 section 7.1.1 ToPrimitive
1825 MUST_USE_RESULT static MaybeHandle<Object> ToPrimitive( 1825 MUST_USE_RESULT static MaybeHandle<Object> ToPrimitive(
1826 Handle<JSReceiver> receiver, 1826 Handle<JSReceiver> receiver,
1827 ToPrimitiveHint hint = ToPrimitiveHint::kDefault); 1827 ToPrimitiveHint hint = ToPrimitiveHint::kDefault);
1828 MUST_USE_RESULT static MaybeHandle<Object> OrdinaryToPrimitive( 1828 MUST_USE_RESULT static MaybeHandle<Object> OrdinaryToPrimitive(
1829 Handle<JSReceiver> receiver, OrdinaryToPrimitiveHint hint); 1829 Handle<JSReceiver> receiver, OrdinaryToPrimitiveHint hint);
1830 1830
1831 // Implementation of [[HasProperty]], ECMA-262 5th edition, section 8.12.6. 1831 // Implementation of [[HasProperty]], ECMA-262 5th edition, section 8.12.6.
1832 MUST_USE_RESULT static Maybe<bool> HasProperty(LookupIterator* it);
1832 MUST_USE_RESULT static inline Maybe<bool> HasProperty( 1833 MUST_USE_RESULT static inline Maybe<bool> HasProperty(
1833 Handle<JSReceiver> object, Handle<Name> name); 1834 Handle<JSReceiver> object, Handle<Name> name);
1834 MUST_USE_RESULT static inline Maybe<bool> HasOwnProperty(Handle<JSReceiver>, 1835 MUST_USE_RESULT static inline Maybe<bool> HasOwnProperty(Handle<JSReceiver>,
1835 Handle<Name> name); 1836 Handle<Name> name);
1836 MUST_USE_RESULT static inline Maybe<bool> HasElement( 1837 MUST_USE_RESULT static inline Maybe<bool> HasElement(
1837 Handle<JSReceiver> object, uint32_t index); 1838 Handle<JSReceiver> object, uint32_t index);
1838 MUST_USE_RESULT static inline Maybe<bool> HasOwnElement( 1839 MUST_USE_RESULT static inline Maybe<bool> HasOwnElement(
1839 Handle<JSReceiver> object, uint32_t index); 1840 Handle<JSReceiver> object, uint32_t index);
1840 1841
1841 // Implementation of [[Delete]], ECMA-262 5th edition, section 8.12.7. 1842 // Implementation of [[Delete]], ECMA-262 5th edition, section 8.12.7.
(...skipping 8960 matching lines...) Expand 10 before | Expand all | Expand 10 after
10802 // (elements + properties) in the current level. 10803 // (elements + properties) in the current level.
10803 int levelLength_ = 0; 10804 int levelLength_ = 0;
10804 10805
10805 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); 10806 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator);
10806 }; 10807 };
10807 10808
10808 } // NOLINT, false-positive due to second-order macros. 10809 } // NOLINT, false-positive due to second-order macros.
10809 } // NOLINT, false-positive due to second-order macros. 10810 } // NOLINT, false-positive due to second-order macros.
10810 10811
10811 #endif // V8_OBJECTS_H_ 10812 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698