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

Side by Side Diff: src/objects.h

Issue 1466243002: [proxies] Refactor JSReceiver::GetKeys() (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 years 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 | « no previous file | 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 1911 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/objects.cc » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698