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

Side by Side Diff: src/objects.h

Issue 1748923003: [proxies] use [[GetPrototypeOf]] trap in for-in (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: merge with master Created 4 years, 9 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/keys.cc ('k') | 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 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 1944 matching lines...) Expand 10 before | Expand all | Expand 10 after
1955 // ES6 [[OwnPropertyKeys]] (modulo return type) 1955 // ES6 [[OwnPropertyKeys]] (modulo return type)
1956 MUST_USE_RESULT static MaybeHandle<FixedArray> OwnPropertyKeys( 1956 MUST_USE_RESULT static MaybeHandle<FixedArray> OwnPropertyKeys(
1957 Handle<JSReceiver> object) { 1957 Handle<JSReceiver> object) {
1958 return GetKeys(object, OWN_ONLY, ALL_PROPERTIES, CONVERT_TO_STRING); 1958 return GetKeys(object, OWN_ONLY, ALL_PROPERTIES, CONVERT_TO_STRING);
1959 } 1959 }
1960 1960
1961 // Computes the enumerable keys for a JSObject. Used for implementing 1961 // Computes the enumerable keys for a JSObject. Used for implementing
1962 // "for (n in object) { }". 1962 // "for (n in object) { }".
1963 MUST_USE_RESULT static MaybeHandle<FixedArray> GetKeys( 1963 MUST_USE_RESULT static MaybeHandle<FixedArray> GetKeys(
1964 Handle<JSReceiver> object, KeyCollectionType type, PropertyFilter filter, 1964 Handle<JSReceiver> object, KeyCollectionType type, PropertyFilter filter,
1965 GetKeysConversion keys_conversion = KEEP_NUMBERS); 1965 GetKeysConversion keys_conversion = KEEP_NUMBERS,
1966 bool filter_proxy_keys_ = true);
1966 1967
1967 MUST_USE_RESULT static MaybeHandle<FixedArray> GetOwnValues( 1968 MUST_USE_RESULT static MaybeHandle<FixedArray> GetOwnValues(
1968 Handle<JSReceiver> object, PropertyFilter filter); 1969 Handle<JSReceiver> object, PropertyFilter filter);
1969 1970
1970 MUST_USE_RESULT static MaybeHandle<FixedArray> GetOwnEntries( 1971 MUST_USE_RESULT static MaybeHandle<FixedArray> GetOwnEntries(
1971 Handle<JSReceiver> object, PropertyFilter filter); 1972 Handle<JSReceiver> object, PropertyFilter filter);
1972 1973
1973 // Layout description. 1974 // Layout description.
1974 static const int kPropertiesOffset = HeapObject::kHeaderSize; 1975 static const int kPropertiesOffset = HeapObject::kHeaderSize;
1975 static const int kHeaderSize = HeapObject::kHeaderSize + kPointerSize; 1976 static const int kHeaderSize = HeapObject::kHeaderSize + kPointerSize;
(...skipping 8920 matching lines...) Expand 10 before | Expand all | Expand 10 after
10896 } 10897 }
10897 return value; 10898 return value;
10898 } 10899 }
10899 }; 10900 };
10900 10901
10901 10902
10902 } // NOLINT, false-positive due to second-order macros. 10903 } // NOLINT, false-positive due to second-order macros.
10903 } // NOLINT, false-positive due to second-order macros. 10904 } // NOLINT, false-positive due to second-order macros.
10904 10905
10905 #endif // V8_OBJECTS_H_ 10906 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/keys.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698