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 2085223002: Add HasOwnProperty with array indexes (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 4 years, 6 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/api.cc ('k') | 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/assert-scope.h" 10 #include "src/assert-scope.h"
(...skipping 1836 matching lines...) Expand 10 before | Expand all | Expand 10 after
1847 1847
1848 // Implementation of [[HasProperty]], ECMA-262 5th edition, section 8.12.6. 1848 // Implementation of [[HasProperty]], ECMA-262 5th edition, section 8.12.6.
1849 MUST_USE_RESULT static Maybe<bool> HasProperty(LookupIterator* it); 1849 MUST_USE_RESULT static Maybe<bool> HasProperty(LookupIterator* it);
1850 MUST_USE_RESULT static inline Maybe<bool> HasProperty( 1850 MUST_USE_RESULT static inline Maybe<bool> HasProperty(
1851 Handle<JSReceiver> object, Handle<Name> name); 1851 Handle<JSReceiver> object, Handle<Name> name);
1852 MUST_USE_RESULT static inline Maybe<bool> HasElement( 1852 MUST_USE_RESULT static inline Maybe<bool> HasElement(
1853 Handle<JSReceiver> object, uint32_t index); 1853 Handle<JSReceiver> object, uint32_t index);
1854 1854
1855 MUST_USE_RESULT static inline Maybe<bool> HasOwnProperty( 1855 MUST_USE_RESULT static inline Maybe<bool> HasOwnProperty(
1856 Handle<JSReceiver> object, Handle<Name> name); 1856 Handle<JSReceiver> object, Handle<Name> name);
1857 MUST_USE_RESULT static inline Maybe<bool> HasOwnProperty(
1858 Handle<JSReceiver> object, uint32_t index);
1857 1859
1858 MUST_USE_RESULT static inline MaybeHandle<Object> GetProperty( 1860 MUST_USE_RESULT static inline MaybeHandle<Object> GetProperty(
1859 Isolate* isolate, Handle<JSReceiver> receiver, const char* key); 1861 Isolate* isolate, Handle<JSReceiver> receiver, const char* key);
1860 MUST_USE_RESULT static inline MaybeHandle<Object> GetProperty( 1862 MUST_USE_RESULT static inline MaybeHandle<Object> GetProperty(
1861 Handle<JSReceiver> receiver, Handle<Name> name); 1863 Handle<JSReceiver> receiver, Handle<Name> name);
1862 MUST_USE_RESULT static inline MaybeHandle<Object> GetElement( 1864 MUST_USE_RESULT static inline MaybeHandle<Object> GetElement(
1863 Isolate* isolate, Handle<JSReceiver> receiver, uint32_t index); 1865 Isolate* isolate, Handle<JSReceiver> receiver, uint32_t index);
1864 1866
1865 // Implementation of ES6 [[Delete]] 1867 // Implementation of ES6 [[Delete]]
1866 MUST_USE_RESULT static Maybe<bool> DeletePropertyOrElement( 1868 MUST_USE_RESULT static Maybe<bool> DeletePropertyOrElement(
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
1944 // Returns the constructor name (the name (possibly, inferred name) of the 1946 // Returns the constructor name (the name (possibly, inferred name) of the
1945 // function that was used to instantiate the object). 1947 // function that was used to instantiate the object).
1946 static Handle<String> GetConstructorName(Handle<JSReceiver> receiver); 1948 static Handle<String> GetConstructorName(Handle<JSReceiver> receiver);
1947 1949
1948 Context* GetCreationContext(); 1950 Context* GetCreationContext();
1949 1951
1950 MUST_USE_RESULT static inline Maybe<PropertyAttributes> GetPropertyAttributes( 1952 MUST_USE_RESULT static inline Maybe<PropertyAttributes> GetPropertyAttributes(
1951 Handle<JSReceiver> object, Handle<Name> name); 1953 Handle<JSReceiver> object, Handle<Name> name);
1952 MUST_USE_RESULT static inline Maybe<PropertyAttributes> 1954 MUST_USE_RESULT static inline Maybe<PropertyAttributes>
1953 GetOwnPropertyAttributes(Handle<JSReceiver> object, Handle<Name> name); 1955 GetOwnPropertyAttributes(Handle<JSReceiver> object, Handle<Name> name);
1956 MUST_USE_RESULT static inline Maybe<PropertyAttributes>
1957 GetOwnPropertyAttributes(Handle<JSReceiver> object, uint32_t index);
1954 1958
1955 MUST_USE_RESULT static inline Maybe<PropertyAttributes> GetElementAttributes( 1959 MUST_USE_RESULT static inline Maybe<PropertyAttributes> GetElementAttributes(
1956 Handle<JSReceiver> object, uint32_t index); 1960 Handle<JSReceiver> object, uint32_t index);
1957 MUST_USE_RESULT static inline Maybe<PropertyAttributes> 1961 MUST_USE_RESULT static inline Maybe<PropertyAttributes>
1958 GetOwnElementAttributes(Handle<JSReceiver> object, uint32_t index); 1962 GetOwnElementAttributes(Handle<JSReceiver> object, uint32_t index);
1959 1963
1960 MUST_USE_RESULT static Maybe<PropertyAttributes> GetPropertyAttributes( 1964 MUST_USE_RESULT static Maybe<PropertyAttributes> GetPropertyAttributes(
1961 LookupIterator* it); 1965 LookupIterator* it);
1962 1966
1963 // Set the object's prototype (only JSReceiver and null are allowed values). 1967 // Set the object's prototype (only JSReceiver and null are allowed values).
(...skipping 8843 matching lines...) Expand 10 before | Expand all | Expand 10 after
10807 } 10811 }
10808 return value; 10812 return value;
10809 } 10813 }
10810 }; 10814 };
10811 10815
10812 10816
10813 } // NOLINT, false-positive due to second-order macros. 10817 } // NOLINT, false-positive due to second-order macros.
10814 } // NOLINT, false-positive due to second-order macros. 10818 } // NOLINT, false-positive due to second-order macros.
10815 10819
10816 #endif // V8_OBJECTS_H_ 10820 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698