Chromium Code Reviews| 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 1918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1929 inline static Handle<Smi> GetOrCreateIdentityHash( | 1929 inline static Handle<Smi> GetOrCreateIdentityHash( |
| 1930 Handle<JSReceiver> object); | 1930 Handle<JSReceiver> object); |
| 1931 | 1931 |
| 1932 enum KeyCollectionType { OWN_ONLY, INCLUDE_PROTOS }; | 1932 enum KeyCollectionType { OWN_ONLY, INCLUDE_PROTOS }; |
| 1933 | 1933 |
| 1934 // Computes the enumerable keys for a JSObject. Used for implementing | 1934 // Computes the enumerable keys for a JSObject. Used for implementing |
| 1935 // "for (n in object) { }". | 1935 // "for (n in object) { }". |
| 1936 MUST_USE_RESULT static MaybeHandle<FixedArray> GetKeys( | 1936 MUST_USE_RESULT static MaybeHandle<FixedArray> GetKeys( |
| 1937 Handle<JSReceiver> object, KeyCollectionType type, | 1937 Handle<JSReceiver> object, KeyCollectionType type, |
| 1938 KeyFilter filter = SKIP_SYMBOLS, | 1938 KeyFilter filter = SKIP_SYMBOLS, |
| 1939 GetKeysConversion getConversion = KEEP_NUMBERS); | 1939 GetKeysConversion getConversion = KEEP_NUMBERS, |
| 1940 bool only_enumerables = true); | |
|
Camillo Bruni
2015/11/05 08:29:35
I know we discussed to move all the flags on the K
| |
| 1940 | 1941 |
| 1941 private: | 1942 private: |
| 1942 DISALLOW_IMPLICIT_CONSTRUCTORS(JSReceiver); | 1943 DISALLOW_IMPLICIT_CONSTRUCTORS(JSReceiver); |
| 1943 }; | 1944 }; |
| 1944 | 1945 |
| 1945 | 1946 |
| 1946 // The JSObject describes real heap allocated JavaScript objects with | 1947 // The JSObject describes real heap allocated JavaScript objects with |
| 1947 // properties. | 1948 // properties. |
| 1948 // Note that the map of JSObject changes during execution to enable inline | 1949 // Note that the map of JSObject changes during execution to enable inline |
| 1949 // caching. | 1950 // caching. |
| (...skipping 8787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 10737 } | 10738 } |
| 10738 return value; | 10739 return value; |
| 10739 } | 10740 } |
| 10740 }; | 10741 }; |
| 10741 | 10742 |
| 10742 | 10743 |
| 10743 } // NOLINT, false-positive due to second-order macros. | 10744 } // NOLINT, false-positive due to second-order macros. |
| 10744 } // NOLINT, false-positive due to second-order macros. | 10745 } // NOLINT, false-positive due to second-order macros. |
| 10745 | 10746 |
| 10746 #endif // V8_OBJECTS_H_ | 10747 #endif // V8_OBJECTS_H_ |
| OLD | NEW |