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

Side by Side Diff: src/objects.h

Issue 2103033002: Version 5.2.361.27 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@5.2
Patch Set: Created 4 years, 5 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 1825 matching lines...) Expand 10 before | Expand all | Expand 10 after
1836 1836
1837 // Implementation of [[HasProperty]], ECMA-262 5th edition, section 8.12.6. 1837 // Implementation of [[HasProperty]], ECMA-262 5th edition, section 8.12.6.
1838 MUST_USE_RESULT static Maybe<bool> HasProperty(LookupIterator* it); 1838 MUST_USE_RESULT static Maybe<bool> HasProperty(LookupIterator* it);
1839 MUST_USE_RESULT static inline Maybe<bool> HasProperty( 1839 MUST_USE_RESULT static inline Maybe<bool> HasProperty(
1840 Handle<JSReceiver> object, Handle<Name> name); 1840 Handle<JSReceiver> object, Handle<Name> name);
1841 MUST_USE_RESULT static inline Maybe<bool> HasElement( 1841 MUST_USE_RESULT static inline Maybe<bool> HasElement(
1842 Handle<JSReceiver> object, uint32_t index); 1842 Handle<JSReceiver> object, uint32_t index);
1843 1843
1844 MUST_USE_RESULT static inline Maybe<bool> HasOwnProperty( 1844 MUST_USE_RESULT static inline Maybe<bool> HasOwnProperty(
1845 Handle<JSReceiver> object, Handle<Name> name); 1845 Handle<JSReceiver> object, Handle<Name> name);
1846 MUST_USE_RESULT static inline Maybe<bool> HasOwnProperty(
1847 Handle<JSReceiver> object, uint32_t index);
1846 1848
1847 MUST_USE_RESULT static inline MaybeHandle<Object> GetProperty( 1849 MUST_USE_RESULT static inline MaybeHandle<Object> GetProperty(
1848 Isolate* isolate, Handle<JSReceiver> receiver, const char* key); 1850 Isolate* isolate, Handle<JSReceiver> receiver, const char* key);
1849 MUST_USE_RESULT static inline MaybeHandle<Object> GetProperty( 1851 MUST_USE_RESULT static inline MaybeHandle<Object> GetProperty(
1850 Handle<JSReceiver> receiver, Handle<Name> name); 1852 Handle<JSReceiver> receiver, Handle<Name> name);
1851 MUST_USE_RESULT static inline MaybeHandle<Object> GetElement( 1853 MUST_USE_RESULT static inline MaybeHandle<Object> GetElement(
1852 Isolate* isolate, Handle<JSReceiver> receiver, uint32_t index); 1854 Isolate* isolate, Handle<JSReceiver> receiver, uint32_t index);
1853 1855
1854 // Implementation of ES6 [[Delete]] 1856 // Implementation of ES6 [[Delete]]
1855 MUST_USE_RESULT static Maybe<bool> DeletePropertyOrElement( 1857 MUST_USE_RESULT static Maybe<bool> DeletePropertyOrElement(
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
1933 // Returns the constructor name (the name (possibly, inferred name) of the 1935 // Returns the constructor name (the name (possibly, inferred name) of the
1934 // function that was used to instantiate the object). 1936 // function that was used to instantiate the object).
1935 static Handle<String> GetConstructorName(Handle<JSReceiver> receiver); 1937 static Handle<String> GetConstructorName(Handle<JSReceiver> receiver);
1936 1938
1937 Context* GetCreationContext(); 1939 Context* GetCreationContext();
1938 1940
1939 MUST_USE_RESULT static inline Maybe<PropertyAttributes> GetPropertyAttributes( 1941 MUST_USE_RESULT static inline Maybe<PropertyAttributes> GetPropertyAttributes(
1940 Handle<JSReceiver> object, Handle<Name> name); 1942 Handle<JSReceiver> object, Handle<Name> name);
1941 MUST_USE_RESULT static inline Maybe<PropertyAttributes> 1943 MUST_USE_RESULT static inline Maybe<PropertyAttributes>
1942 GetOwnPropertyAttributes(Handle<JSReceiver> object, Handle<Name> name); 1944 GetOwnPropertyAttributes(Handle<JSReceiver> object, Handle<Name> name);
1945 MUST_USE_RESULT static inline Maybe<PropertyAttributes>
1946 GetOwnPropertyAttributes(Handle<JSReceiver> object, uint32_t index);
1943 1947
1944 MUST_USE_RESULT static inline Maybe<PropertyAttributes> GetElementAttributes( 1948 MUST_USE_RESULT static inline Maybe<PropertyAttributes> GetElementAttributes(
1945 Handle<JSReceiver> object, uint32_t index); 1949 Handle<JSReceiver> object, uint32_t index);
1946 MUST_USE_RESULT static inline Maybe<PropertyAttributes> 1950 MUST_USE_RESULT static inline Maybe<PropertyAttributes>
1947 GetOwnElementAttributes(Handle<JSReceiver> object, uint32_t index); 1951 GetOwnElementAttributes(Handle<JSReceiver> object, uint32_t index);
1948 1952
1949 MUST_USE_RESULT static Maybe<PropertyAttributes> GetPropertyAttributes( 1953 MUST_USE_RESULT static Maybe<PropertyAttributes> GetPropertyAttributes(
1950 LookupIterator* it); 1954 LookupIterator* it);
1951 1955
1952 // Set the object's prototype (only JSReceiver and null are allowed values). 1956 // Set the object's prototype (only JSReceiver and null are allowed values).
(...skipping 8813 matching lines...) Expand 10 before | Expand all | Expand 10 after
10766 } 10770 }
10767 return value; 10771 return value;
10768 } 10772 }
10769 }; 10773 };
10770 10774
10771 10775
10772 } // NOLINT, false-positive due to second-order macros. 10776 } // NOLINT, false-positive due to second-order macros.
10773 } // NOLINT, false-positive due to second-order macros. 10777 } // NOLINT, false-positive due to second-order macros.
10774 10778
10775 #endif // V8_OBJECTS_H_ 10779 #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