OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 1911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1922 inline static Handle<Smi> GetOrCreateIdentityHash( | 1922 inline static Handle<Smi> GetOrCreateIdentityHash( |
1923 Handle<JSReceiver> object); | 1923 Handle<JSReceiver> object); |
1924 | 1924 |
1925 enum KeyCollectionType { OWN_ONLY, INCLUDE_PROTOS }; | 1925 enum KeyCollectionType { OWN_ONLY, INCLUDE_PROTOS }; |
1926 | 1926 |
1927 // Computes the enumerable keys for a JSObject. Used for implementing | 1927 // Computes the enumerable keys for a JSObject. Used for implementing |
1928 // "for (n in object) { }". | 1928 // "for (n in object) { }". |
1929 MUST_USE_RESULT static MaybeHandle<FixedArray> GetKeys( | 1929 MUST_USE_RESULT static MaybeHandle<FixedArray> GetKeys( |
1930 Handle<JSReceiver> object, KeyCollectionType type, | 1930 Handle<JSReceiver> object, KeyCollectionType type, |
1931 KeyFilter filter = SKIP_SYMBOLS, | 1931 KeyFilter filter = SKIP_SYMBOLS, |
1932 GetKeysConversion getConversion = KEEP_NUMBERS, | 1932 GetKeysConversion keys_conversion = KEEP_NUMBERS, |
1933 Enumerability enum_policy = RESPECT_ENUMERABILITY); | 1933 Enumerability enum_policy = RESPECT_ENUMERABILITY); |
1934 | 1934 |
1935 private: | 1935 private: |
1936 DISALLOW_IMPLICIT_CONSTRUCTORS(JSReceiver); | 1936 DISALLOW_IMPLICIT_CONSTRUCTORS(JSReceiver); |
1937 }; | 1937 }; |
1938 | 1938 |
1939 | 1939 |
1940 // The JSObject describes real heap allocated JavaScript objects with | 1940 // The JSObject describes real heap allocated JavaScript objects with |
1941 // properties. | 1941 // properties. |
1942 // Note that the map of JSObject changes during execution to enable inline | 1942 // Note that the map of JSObject changes during execution to enable inline |
(...skipping 8796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10739 } | 10739 } |
10740 return value; | 10740 return value; |
10741 } | 10741 } |
10742 }; | 10742 }; |
10743 | 10743 |
10744 | 10744 |
10745 } // NOLINT, false-positive due to second-order macros. | 10745 } // NOLINT, false-positive due to second-order macros. |
10746 } // NOLINT, false-positive due to second-order macros. | 10746 } // NOLINT, false-positive due to second-order macros. |
10747 | 10747 |
10748 #endif // V8_OBJECTS_H_ | 10748 #endif // V8_OBJECTS_H_ |
OLD | NEW |