| OLD | NEW |
| 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 1940 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1951 // ES6 [[OwnPropertyKeys]] (modulo return type) | 1951 // ES6 [[OwnPropertyKeys]] (modulo return type) |
| 1952 MUST_USE_RESULT static MaybeHandle<FixedArray> OwnPropertyKeys( | 1952 MUST_USE_RESULT static MaybeHandle<FixedArray> OwnPropertyKeys( |
| 1953 Handle<JSReceiver> object) { | 1953 Handle<JSReceiver> object) { |
| 1954 return GetKeys(object, OWN_ONLY, ALL_PROPERTIES, CONVERT_TO_STRING); | 1954 return GetKeys(object, OWN_ONLY, ALL_PROPERTIES, CONVERT_TO_STRING); |
| 1955 } | 1955 } |
| 1956 | 1956 |
| 1957 // Computes the enumerable keys for a JSObject. Used for implementing | 1957 // Computes the enumerable keys for a JSObject. Used for implementing |
| 1958 // "for (n in object) { }". | 1958 // "for (n in object) { }". |
| 1959 MUST_USE_RESULT static MaybeHandle<FixedArray> GetKeys( | 1959 MUST_USE_RESULT static MaybeHandle<FixedArray> GetKeys( |
| 1960 Handle<JSReceiver> object, KeyCollectionType type, PropertyFilter filter, | 1960 Handle<JSReceiver> object, KeyCollectionType type, PropertyFilter filter, |
| 1961 GetKeysConversion keys_conversion = KEEP_NUMBERS); | 1961 GetKeysConversion keys_conversion = KEEP_NUMBERS, |
| 1962 bool filter_proxy_keys_ = true); |
| 1962 | 1963 |
| 1963 MUST_USE_RESULT static MaybeHandle<FixedArray> GetOwnValues( | 1964 MUST_USE_RESULT static MaybeHandle<FixedArray> GetOwnValues( |
| 1964 Handle<JSReceiver> object, PropertyFilter filter); | 1965 Handle<JSReceiver> object, PropertyFilter filter); |
| 1965 | 1966 |
| 1966 MUST_USE_RESULT static MaybeHandle<FixedArray> GetOwnEntries( | 1967 MUST_USE_RESULT static MaybeHandle<FixedArray> GetOwnEntries( |
| 1967 Handle<JSReceiver> object, PropertyFilter filter); | 1968 Handle<JSReceiver> object, PropertyFilter filter); |
| 1968 | 1969 |
| 1969 // Layout description. | 1970 // Layout description. |
| 1970 static const int kPropertiesOffset = HeapObject::kHeaderSize; | 1971 static const int kPropertiesOffset = HeapObject::kHeaderSize; |
| 1971 static const int kHeaderSize = HeapObject::kHeaderSize + kPointerSize; | 1972 static const int kHeaderSize = HeapObject::kHeaderSize + kPointerSize; |
| (...skipping 8915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10887 } | 10888 } |
| 10888 return value; | 10889 return value; |
| 10889 } | 10890 } |
| 10890 }; | 10891 }; |
| 10891 | 10892 |
| 10892 | 10893 |
| 10893 } // NOLINT, false-positive due to second-order macros. | 10894 } // NOLINT, false-positive due to second-order macros. |
| 10894 } // NOLINT, false-positive due to second-order macros. | 10895 } // NOLINT, false-positive due to second-order macros. |
| 10895 | 10896 |
| 10896 #endif // V8_OBJECTS_H_ | 10897 #endif // V8_OBJECTS_H_ |
| OLD | NEW |