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

Side by Side Diff: src/objects.h

Issue 1405243006: [es6] Partially implement Reflect.ownKeys. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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/builtins.cc ('k') | src/objects.cc » ('j') | src/objects.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | src/objects.cc » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698