diff options
author | Refael Ackermann <refack@gmail.com> | 2019-05-28 08:46:21 -0400 |
---|---|---|
committer | Refael Ackermann <refack@gmail.com> | 2019-06-01 09:55:12 -0400 |
commit | ed74896b1fae1c163b3906163f3bf46326618ddb (patch) | |
tree | 7fb05c5a19808e0c5cd95837528e9005999cf540 /deps/v8/src/objects/js-array.h | |
parent | 2a850cd0664a4eee51f44d0bb8c2f7a3fe444154 (diff) | |
download | node-new-ed74896b1fae1c163b3906163f3bf46326618ddb.tar.gz |
deps: update V8 to 7.5.288.22
PR-URL: https://github.com/nodejs/node/pull/27375
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'deps/v8/src/objects/js-array.h')
-rw-r--r-- | deps/v8/src/objects/js-array.h | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/deps/v8/src/objects/js-array.h b/deps/v8/src/objects/js-array.h index a85af97e4a..23d62c810e 100644 --- a/deps/v8/src/objects/js-array.h +++ b/deps/v8/src/objects/js-array.h @@ -36,7 +36,8 @@ class JSArray : public JSObject { // Initialize the array with the given capacity. The function may // fail due to out-of-memory situations, but only if the requested // capacity is non-zero. - static void Initialize(Handle<JSArray> array, int capacity, int length = 0); + V8_EXPORT_PRIVATE static void Initialize(Handle<JSArray> array, int capacity, + int length = 0); // If the JSArray has fast elements, and new_length would result in // normalization, returns true. @@ -46,7 +47,8 @@ class JSArray : public JSObject { // Initializes the array to a certain length. inline bool AllowsSetLength(); - static void SetLength(Handle<JSArray> array, uint32_t length); + V8_EXPORT_PRIVATE static void SetLength(Handle<JSArray> array, + uint32_t length); // Set the content of the array to the content of storage. static inline void SetContent(Handle<JSArray> array, @@ -174,16 +176,8 @@ class JSArrayIterator : public JSObject { inline IterationKind kind() const; inline void set_kind(IterationKind kind); - // Layout description. -#define JS_ARRAY_ITERATOR_FIELDS(V) \ - V(kIteratedObjectOffset, kTaggedSize) \ - V(kNextIndexOffset, kTaggedSize) \ - V(kKindOffset, kTaggedSize) \ - /* Header size. */ \ - V(kSize, 0) - - DEFINE_FIELD_OFFSET_CONSTANTS(JSObject::kHeaderSize, JS_ARRAY_ITERATOR_FIELDS) -#undef JS_ARRAY_ITERATOR_FIELDS + DEFINE_FIELD_OFFSET_CONSTANTS(JSObject::kHeaderSize, + TORQUE_GENERATED_JSARRAY_ITERATOR_FIELDS) OBJECT_CONSTRUCTORS(JSArrayIterator, JSObject); }; |