Comment #6 on issue 14271 by
les...@chromium.org: Incorrect bignumber.js behavior with Maglev on x86_64
https://bugs.chromium.org/p/v8/issues/detail?id=14271#c6No, not Math.ceil reduction, it's something to do with there being a call there at all -- if I keep the Math.ceil reduction and add a `print` after it, then I don't see the issue. In fact, it seems to be something to do with the "get number of digits of n" loop:
```
n = k = xc[ni];
// === If I put a print(i) here I don't reproduce
// Get the number of digits of n.
for ( d = 1; k >= 10; k /= 10, d++ );
// === If I put a print(i) here I do
// Get the index of rd within n.
i %= LOG_BASE;
```