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

Side by Side Diff: src/objects.h

Issue 1716833002: [runtime] Speed up C++ version of ArrayPush (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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
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/allocation.h" 10 #include "src/allocation.h"
(...skipping 2023 matching lines...) Expand 10 before | Expand all | Expand 10 after
2034 inline bool HasFixedFloat32Elements(); 2034 inline bool HasFixedFloat32Elements();
2035 inline bool HasFixedFloat64Elements(); 2035 inline bool HasFixedFloat64Elements();
2036 2036
2037 inline bool HasFastArgumentsElements(); 2037 inline bool HasFastArgumentsElements();
2038 inline bool HasSlowArgumentsElements(); 2038 inline bool HasSlowArgumentsElements();
2039 inline bool HasFastStringWrapperElements(); 2039 inline bool HasFastStringWrapperElements();
2040 inline bool HasSlowStringWrapperElements(); 2040 inline bool HasSlowStringWrapperElements();
2041 inline SeededNumberDictionary* element_dictionary(); // Gets slow elements. 2041 inline SeededNumberDictionary* element_dictionary(); // Gets slow elements.
2042 2042
2043 // Requires: HasFastElements(). 2043 // Requires: HasFastElements().
2044 static Handle<FixedArray> EnsureWritableFastElements( 2044 static void EnsureWritableFastElements(Handle<JSObject> object);
2045 Handle<JSObject> object);
2046 2045
2047 // Collects elements starting at index 0. 2046 // Collects elements starting at index 0.
2048 // Undefined values are placed after non-undefined values. 2047 // Undefined values are placed after non-undefined values.
2049 // Returns the number of non-undefined values. 2048 // Returns the number of non-undefined values.
2050 static Handle<Object> PrepareElementsForSort(Handle<JSObject> object, 2049 static Handle<Object> PrepareElementsForSort(Handle<JSObject> object,
2051 uint32_t limit); 2050 uint32_t limit);
2052 // As PrepareElementsForSort, but only on objects where elements is 2051 // As PrepareElementsForSort, but only on objects where elements is
2053 // a dictionary, and it will stay a dictionary. Collates undefined and 2052 // a dictionary, and it will stay a dictionary. Collates undefined and
2054 // unexisting elements below limit from position zero of the elements. 2053 // unexisting elements below limit from position zero of the elements.
2055 static Handle<Object> PrepareSlowElementsForSort(Handle<JSObject> object, 2054 static Handle<Object> PrepareSlowElementsForSort(Handle<JSObject> object,
(...skipping 8778 matching lines...) Expand 10 before | Expand all | Expand 10 after
10834 } 10833 }
10835 return value; 10834 return value;
10836 } 10835 }
10837 }; 10836 };
10838 10837
10839 10838
10840 } // NOLINT, false-positive due to second-order macros. 10839 } // NOLINT, false-positive due to second-order macros.
10841 } // NOLINT, false-positive due to second-order macros. 10840 } // NOLINT, false-positive due to second-order macros.
10842 10841
10843 #endif // V8_OBJECTS_H_ 10842 #endif // V8_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698