diff options
author | Michaël Zasso <targos@protonmail.com> | 2017-03-21 10:16:54 +0100 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2017-03-25 09:44:10 +0100 |
commit | c459d8ea5d402c702948c860d9497b2230ff7e8a (patch) | |
tree | 56c282fc4d40e5cb613b47cf7be3ea0526ed5b6f /deps/v8/src/conversions.h | |
parent | e0bc5a7361b1d29c3ed034155fd779ce6f44fb13 (diff) | |
download | node-new-c459d8ea5d402c702948c860d9497b2230ff7e8a.tar.gz |
deps: update V8 to 5.7.492.69
PR-URL: https://github.com/nodejs/node/pull/11752
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Diffstat (limited to 'deps/v8/src/conversions.h')
-rw-r--r-- | deps/v8/src/conversions.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/deps/v8/src/conversions.h b/deps/v8/src/conversions.h index 2dd91d9319..a408132fa8 100644 --- a/deps/v8/src/conversions.h +++ b/deps/v8/src/conversions.h @@ -167,7 +167,15 @@ inline bool IsInt32Double(double value); // We also have to check for negative 0 as it is not a UInteger32. inline bool IsUint32Double(double value); +// Tries to convert |value| to a uint32, setting the result in |uint32_value|. +// If the output does not compare equal to the input, returns false and the +// value in |uint32_value| is left unspecified. +// Used for conversions such as in ECMA-262 15.4.2.2, which check "ToUint32(len) +// is equal to len". +inline bool DoubleToUint32IfEqualToSelf(double value, uint32_t* uint32_value); + // Convert from Number object to C integer. +inline uint32_t PositiveNumberToUint32(Object* number); inline int32_t NumberToInt32(Object* number); inline uint32_t NumberToUint32(Object* number); inline int64_t NumberToInt64(Object* number); |