Commit af7bf14f authored by Vitaly Buka's avatar Vitaly Buka Committed by Commit Bot

Disable buffer initialization in hot function

Bug: chromium:1055317, chromium:1055312, chromium:977230
Change-Id: I877bc1547e21c95f4b82b3741949e88e22fc006b
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2077222
Commit-Queue: Vitaly Buka <vitalybuka@chromium.org>
Reviewed-by: 's avatarAdam Klein <adamk@chromium.org>
Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
Reviewed-by: 's avatarClemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#66489}
parent c78539f9
......@@ -583,7 +583,8 @@ double InternalStringToDouble(Iterator current, EndMark end, int flags,
// The longest form of simplified number is: "-<significant digits>'.1eXXX\0".
const int kBufferSize = kMaxSignificantDigits + 10;
char buffer[kBufferSize]; // NOLINT: size is known at compile time.
// Avoid slowdown in js-perf-test/Numbers. See crbug.com/1055317.
V8_STACK_UNINITIALIZED char buffer[kBufferSize];
int buffer_pos = 0;
// Exponent will be adjusted if insignificant digits of the integer part
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment