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

Side by Side Diff: src/objects.h

Issue 1532723005: [proxies] Fix Object.prototype.hasOwnProperty (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address comment Created 5 years 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-inl.h » ('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 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 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 1788 matching lines...) Expand 10 before | Expand all | Expand 10 after
1799 ToPrimitiveHint hint = ToPrimitiveHint::kDefault); 1799 ToPrimitiveHint hint = ToPrimitiveHint::kDefault);
1800 MUST_USE_RESULT static MaybeHandle<Object> OrdinaryToPrimitive( 1800 MUST_USE_RESULT static MaybeHandle<Object> OrdinaryToPrimitive(
1801 Handle<JSReceiver> receiver, OrdinaryToPrimitiveHint hint); 1801 Handle<JSReceiver> receiver, OrdinaryToPrimitiveHint hint);
1802 1802
1803 static MaybeHandle<Context> GetFunctionRealm(Handle<JSReceiver> receiver); 1803 static MaybeHandle<Context> GetFunctionRealm(Handle<JSReceiver> receiver);
1804 1804
1805 // Implementation of [[HasProperty]], ECMA-262 5th edition, section 8.12.6. 1805 // Implementation of [[HasProperty]], ECMA-262 5th edition, section 8.12.6.
1806 MUST_USE_RESULT static Maybe<bool> HasProperty(LookupIterator* it); 1806 MUST_USE_RESULT static Maybe<bool> HasProperty(LookupIterator* it);
1807 MUST_USE_RESULT static inline Maybe<bool> HasProperty( 1807 MUST_USE_RESULT static inline Maybe<bool> HasProperty(
1808 Handle<JSReceiver> object, Handle<Name> name); 1808 Handle<JSReceiver> object, Handle<Name> name);
1809 MUST_USE_RESULT static inline Maybe<bool> HasOwnProperty(Handle<JSReceiver>,
1810 Handle<Name> name);
1811 MUST_USE_RESULT static inline Maybe<bool> HasElement( 1809 MUST_USE_RESULT static inline Maybe<bool> HasElement(
1812 Handle<JSReceiver> object, uint32_t index); 1810 Handle<JSReceiver> object, uint32_t index);
1813 MUST_USE_RESULT static inline Maybe<bool> HasOwnElement( 1811
1814 Handle<JSReceiver> object, uint32_t index); 1812 MUST_USE_RESULT static inline Maybe<bool> HasOwnProperty(
1813 Handle<JSReceiver> object, Handle<Name> name);
1815 1814
1816 // Implementation of ES6 [[Delete]] 1815 // Implementation of ES6 [[Delete]]
1817 MUST_USE_RESULT static Maybe<bool> DeletePropertyOrElement( 1816 MUST_USE_RESULT static Maybe<bool> DeletePropertyOrElement(
1818 Handle<JSReceiver> object, Handle<Name> name, 1817 Handle<JSReceiver> object, Handle<Name> name,
1819 LanguageMode language_mode = SLOPPY); 1818 LanguageMode language_mode = SLOPPY);
1820 MUST_USE_RESULT static Maybe<bool> DeleteProperty( 1819 MUST_USE_RESULT static Maybe<bool> DeleteProperty(
1821 Handle<JSReceiver> object, Handle<Name> name, 1820 Handle<JSReceiver> object, Handle<Name> name,
1822 LanguageMode language_mode = SLOPPY); 1821 LanguageMode language_mode = SLOPPY);
1823 MUST_USE_RESULT static Maybe<bool> DeleteProperty(LookupIterator* it, 1822 MUST_USE_RESULT static Maybe<bool> DeleteProperty(LookupIterator* it,
1824 LanguageMode language_mode); 1823 LanguageMode language_mode);
(...skipping 8884 matching lines...) Expand 10 before | Expand all | Expand 10 after
10709 } 10708 }
10710 return value; 10709 return value;
10711 } 10710 }
10712 }; 10711 };
10713 10712
10714 10713
10715 } // NOLINT, false-positive due to second-order macros. 10714 } // NOLINT, false-positive due to second-order macros.
10716 } // NOLINT, false-positive due to second-order macros. 10715 } // NOLINT, false-positive due to second-order macros.
10717 10716
10718 #endif // V8_OBJECTS_H_ 10717 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698