diff options
author | Michaƫl Zasso <targos@protonmail.com> | 2017-09-12 11:34:59 +0200 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2017-09-13 16:15:18 +0200 |
commit | d82e1075dbc2cec2d6598ade10c1f43805f690fd (patch) | |
tree | ccd242b9b491dfc341d1099fe11b0ef528839877 /deps/v8/src/base/utils | |
parent | b4b7ac6ae811b2b5a3082468115dfb5a5246fe3f (diff) | |
download | android-node-v8-d82e1075dbc2cec2d6598ade10c1f43805f690fd.tar.gz android-node-v8-d82e1075dbc2cec2d6598ade10c1f43805f690fd.tar.bz2 android-node-v8-d82e1075dbc2cec2d6598ade10c1f43805f690fd.zip |
deps: update V8 to 6.1.534.36
PR-URL: https://github.com/nodejs/node/pull/14730
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'deps/v8/src/base/utils')
-rw-r--r-- | deps/v8/src/base/utils/random-number-generator.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/deps/v8/src/base/utils/random-number-generator.cc b/deps/v8/src/base/utils/random-number-generator.cc index 3a6f2c63cf..842b36a1a0 100644 --- a/deps/v8/src/base/utils/random-number-generator.cc +++ b/deps/v8/src/base/utils/random-number-generator.cc @@ -9,6 +9,7 @@ #include <new> +#include "src/base/bits.h" #include "src/base/macros.h" #include "src/base/platform/mutex.h" #include "src/base/platform/time.h" @@ -82,7 +83,7 @@ int RandomNumberGenerator::NextInt(int max) { DCHECK_LT(0, max); // Fast path if max is a power of 2. - if (IS_POWER_OF_TWO(max)) { + if (bits::IsPowerOfTwo(max)) { return static_cast<int>((max * static_cast<int64_t>(Next(31))) >> 31); } |