| 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/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 1947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1958 return GetKeys(object, JSReceiver::OWN_ONLY, ALL_PROPERTIES, | 1958 return GetKeys(object, JSReceiver::OWN_ONLY, ALL_PROPERTIES, |
| 1959 CONVERT_TO_STRING); | 1959 CONVERT_TO_STRING); |
| 1960 } | 1960 } |
| 1961 | 1961 |
| 1962 // Computes the enumerable keys for a JSObject. Used for implementing | 1962 // Computes the enumerable keys for a JSObject. Used for implementing |
| 1963 // "for (n in object) { }". | 1963 // "for (n in object) { }". |
| 1964 MUST_USE_RESULT static MaybeHandle<FixedArray> GetKeys( | 1964 MUST_USE_RESULT static MaybeHandle<FixedArray> GetKeys( |
| 1965 Handle<JSReceiver> object, KeyCollectionType type, PropertyFilter filter, | 1965 Handle<JSReceiver> object, KeyCollectionType type, PropertyFilter filter, |
| 1966 GetKeysConversion keys_conversion = KEEP_NUMBERS); | 1966 GetKeysConversion keys_conversion = KEEP_NUMBERS); |
| 1967 | 1967 |
| 1968 MUST_USE_RESULT static MaybeHandle<FixedArray> GetOwnValues( |
| 1969 Handle<JSReceiver> object, PropertyFilter filter, |
| 1970 GetKeysConversion keys_conversion = KEEP_NUMBERS); |
| 1971 |
| 1972 MUST_USE_RESULT static MaybeHandle<FixedArray> GetOwnEntries( |
| 1973 Handle<JSReceiver> object, PropertyFilter filter, |
| 1974 GetKeysConversion keys_conversion = KEEP_NUMBERS); |
| 1975 |
| 1968 // Layout description. | 1976 // Layout description. |
| 1969 static const int kPropertiesOffset = HeapObject::kHeaderSize; | 1977 static const int kPropertiesOffset = HeapObject::kHeaderSize; |
| 1970 static const int kHeaderSize = HeapObject::kHeaderSize + kPointerSize; | 1978 static const int kHeaderSize = HeapObject::kHeaderSize + kPointerSize; |
| 1971 | 1979 |
| 1972 private: | 1980 private: |
| 1973 DISALLOW_IMPLICIT_CONSTRUCTORS(JSReceiver); | 1981 DISALLOW_IMPLICIT_CONSTRUCTORS(JSReceiver); |
| 1974 }; | 1982 }; |
| 1975 | 1983 |
| 1976 | 1984 |
| 1977 // The JSObject describes real heap allocated JavaScript objects with | 1985 // The JSObject describes real heap allocated JavaScript objects with |
| (...skipping 8827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10805 } | 10813 } |
| 10806 return value; | 10814 return value; |
| 10807 } | 10815 } |
| 10808 }; | 10816 }; |
| 10809 | 10817 |
| 10810 | 10818 |
| 10811 } // NOLINT, false-positive due to second-order macros. | 10819 } // NOLINT, false-positive due to second-order macros. |
| 10812 } // NOLINT, false-positive due to second-order macros. | 10820 } // NOLINT, false-positive due to second-order macros. |
| 10813 | 10821 |
| 10814 #endif // V8_OBJECTS_H_ | 10822 #endif // V8_OBJECTS_H_ |
| OLD | NEW |