aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/src/fixed-dtoa.cc
diff options
context:
space:
mode:
authorMichaël Zasso <targos@protonmail.com>2017-12-05 16:41:55 +0100
committerMichaël Zasso <targos@protonmail.com>2017-12-06 12:52:07 +0100
commit1854ba04e9a68f062beb299dd6e1479279b26363 (patch)
treed5b2df9b8c1deb6388f7a728fca8e1c98c779abe /deps/v8/src/fixed-dtoa.cc
parentb52c23b75f96e1c9d2c7b3a7e5619170d0a0d8e1 (diff)
downloadandroid-node-v8-1854ba04e9a68f062beb299dd6e1479279b26363.tar.gz
android-node-v8-1854ba04e9a68f062beb299dd6e1479279b26363.tar.bz2
android-node-v8-1854ba04e9a68f062beb299dd6e1479279b26363.zip
deps: update V8 to 6.3.292.46
PR-URL: https://github.com/nodejs/node/pull/16271 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Myles Borins <myles.borins@gmail.com>
Diffstat (limited to 'deps/v8/src/fixed-dtoa.cc')
-rw-r--r--deps/v8/src/fixed-dtoa.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/deps/v8/src/fixed-dtoa.cc b/deps/v8/src/fixed-dtoa.cc
index a33ba1744f..15797aae86 100644
--- a/deps/v8/src/fixed-dtoa.cc
+++ b/deps/v8/src/fixed-dtoa.cc
@@ -168,8 +168,7 @@ static void FillDigits64(uint64_t number, Vector<char> buffer, int* length) {
}
}
-
-static void RoundUp(Vector<char> buffer, int* length, int* decimal_point) {
+static void DtoaRoundUp(Vector<char> buffer, int* length, int* decimal_point) {
// An empty buffer represents 0.
if (*length == 0) {
buffer[0] = '1';
@@ -242,7 +241,7 @@ static void FillFractionals(uint64_t fractionals, int exponent,
}
// If the first bit after the point is set we have to round up.
if (((fractionals >> (point - 1)) & 1) == 1) {
- RoundUp(buffer, length, decimal_point);
+ DtoaRoundUp(buffer, length, decimal_point);
}
} else { // We need 128 bits.
DCHECK(64 < -exponent && -exponent <= 128);
@@ -261,7 +260,7 @@ static void FillFractionals(uint64_t fractionals, int exponent,
(*length)++;
}
if (fractionals128.BitAt(point - 1) == 1) {
- RoundUp(buffer, length, decimal_point);
+ DtoaRoundUp(buffer, length, decimal_point);
}
}
}