diff options
author | Myles Borins <mylesborins@google.com> | 2018-04-10 21:39:51 -0400 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2018-04-11 13:22:42 -0400 |
commit | 12a1b9b8049462e47181a298120243dc83e81c55 (patch) | |
tree | 8605276308c8b4e3597516961266bae1af57557a /deps/v8/src/objects/fixed-array.h | |
parent | 78cd8263354705b767ef8c6a651740efe4931ba0 (diff) | |
download | node-new-12a1b9b8049462e47181a298120243dc83e81c55.tar.gz |
deps: update V8 to 6.6.346.23
PR-URL: https://github.com/nodejs/node/pull/19201
Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'deps/v8/src/objects/fixed-array.h')
-rw-r--r-- | deps/v8/src/objects/fixed-array.h | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/deps/v8/src/objects/fixed-array.h b/deps/v8/src/objects/fixed-array.h index 5d78af8799..1861f0c735 100644 --- a/deps/v8/src/objects/fixed-array.h +++ b/deps/v8/src/objects/fixed-array.h @@ -103,7 +103,8 @@ class FixedArray : public FixedArrayBase { // Return a grown copy if the index is bigger than the array's length. static Handle<FixedArray> SetAndGrow(Handle<FixedArray> array, int index, - Handle<Object> value); + Handle<Object> value, + PretenureFlag pretenure = NOT_TENURED); // Setter that uses write barrier. inline void set(int index, Object* value); @@ -466,16 +467,18 @@ class PodArray : public ByteArray { }; // V has parameters (Type, type, TYPE, C type, element_size) -#define TYPED_ARRAYS(V) \ - V(Uint8, uint8, UINT8, uint8_t, 1) \ - V(Int8, int8, INT8, int8_t, 1) \ - V(Uint16, uint16, UINT16, uint16_t, 2) \ - V(Int16, int16, INT16, int16_t, 2) \ - V(Uint32, uint32, UINT32, uint32_t, 4) \ - V(Int32, int32, INT32, int32_t, 4) \ - V(Float32, float32, FLOAT32, float, 4) \ - V(Float64, float64, FLOAT64, double, 8) \ - V(Uint8Clamped, uint8_clamped, UINT8_CLAMPED, uint8_t, 1) +#define TYPED_ARRAYS(V) \ + V(Uint8, uint8, UINT8, uint8_t, 1) \ + V(Int8, int8, INT8, int8_t, 1) \ + V(Uint16, uint16, UINT16, uint16_t, 2) \ + V(Int16, int16, INT16, int16_t, 2) \ + V(Uint32, uint32, UINT32, uint32_t, 4) \ + V(Int32, int32, INT32, int32_t, 4) \ + V(Float32, float32, FLOAT32, float, 4) \ + V(Float64, float64, FLOAT64, double, 8) \ + V(Uint8Clamped, uint8_clamped, UINT8_CLAMPED, uint8_t, 1) \ + V(BigUint64, biguint64, BIGUINT64, uint64_t, 8) \ + V(BigInt64, bigint64, BIGINT64, int64_t, 8) class FixedTypedArrayBase : public FixedArrayBase { public: @@ -548,6 +551,11 @@ class FixedTypedArray : public FixedTypedArrayBase { static inline ElementType from(int value); static inline ElementType from(uint32_t value); static inline ElementType from(double value); + static inline ElementType from(int64_t value); + static inline ElementType from(uint64_t value); + + static inline ElementType FromHandle(Handle<Object> value, + bool* lossless = nullptr); // This accessor applies the correct conversion from Smi, HeapNumber // and undefined. |