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

Side by Side Diff: src/objects.h

Issue 2002203002: [api] Add more parameters to Object::GetPropertyNames (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@2016-05-06_keys_fast_path_1995263002
Patch Set: adding more tests Created 4 years, 6 months 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
« src/api.cc ('K') | « src/keys.cc ('k') | src/objects.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/assert-scope.h" 10 #include "src/assert-scope.h"
(...skipping 1780 matching lines...) Expand 10 before | Expand all | Expand 10 after
1791 ALLOW_CONVERTED_DOUBLE_ELEMENTS 1791 ALLOW_CONVERTED_DOUBLE_ELEMENTS
1792 }; 1792 };
1793 1793
1794 1794
1795 // Indicator for one component of an AccessorPair. 1795 // Indicator for one component of an AccessorPair.
1796 enum AccessorComponent { 1796 enum AccessorComponent {
1797 ACCESSOR_GETTER, 1797 ACCESSOR_GETTER,
1798 ACCESSOR_SETTER 1798 ACCESSOR_SETTER
1799 }; 1799 };
1800 1800
1801 enum class GetKeysConversion { KEEP_NUMBERS, CONVERT_TO_STRING };
1801 1802
1802 enum GetKeysConversion { KEEP_NUMBERS, CONVERT_TO_STRING }; 1803 enum class KeyCollectionMode { OWN_ONLY, INCLUDE_PROTOS };
1803
1804 enum KeyCollectionType { OWN_ONLY, INCLUDE_PROTOS };
1805 1804
1806 // JSReceiver includes types on which properties can be defined, i.e., 1805 // JSReceiver includes types on which properties can be defined, i.e.,
1807 // JSObject and JSProxy. 1806 // JSObject and JSProxy.
1808 class JSReceiver: public HeapObject { 1807 class JSReceiver: public HeapObject {
1809 public: 1808 public:
1810 // [properties]: Backing storage for properties. 1809 // [properties]: Backing storage for properties.
1811 // properties is a FixedArray in the fast case and a Dictionary in the 1810 // properties is a FixedArray in the fast case and a Dictionary in the
1812 // slow case. 1811 // slow case.
1813 DECL_ACCESSORS(properties, FixedArray) // Get and set fast properties. 1812 DECL_ACCESSORS(properties, FixedArray) // Get and set fast properties.
1814 inline void initialize_properties(); 1813 inline void initialize_properties();
(...skipping 8945 matching lines...) Expand 10 before | Expand all | Expand 10 after
10760 } 10759 }
10761 return value; 10760 return value;
10762 } 10761 }
10763 }; 10762 };
10764 10763
10765 10764
10766 } // NOLINT, false-positive due to second-order macros. 10765 } // NOLINT, false-positive due to second-order macros.
10767 } // NOLINT, false-positive due to second-order macros. 10766 } // NOLINT, false-positive due to second-order macros.
10768 10767
10769 #endif // V8_OBJECTS_H_ 10768 #endif // V8_OBJECTS_H_
OLDNEW
« src/api.cc ('K') | « src/keys.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698