v8/test/cctest/interpreter
Bruce Dawson 4bd1215c95 Workaround VS/UCRT fmod bug
Recent versions of the Windows Universal CRT changed the behavior of
fmod for when the first parameter is negative. In particular, a result
of negative zero became positive zero. This is rarely critical but it
causes test failures and may effect some JS test suites or web pages.

The fix is to modify Modulo to check for a result of 0 when the first
parameter is negative and change the result to -0. That fixes four of
the five test failures and the fifth one is fixed by comparing the
results against Modulo instead of std::fmod.

Bug: chromium:915045
Change-Id: Ia4490ec98361a37006d6c338acd33f959fa3ccea
Reviewed-on: https://chromium-review.googlesource.com/c/1383091
Commit-Queue: Bruce Dawson <brucedawson@chromium.org>
Reviewed-by: Ross McIlroy <rmcilroy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#58377}
2018-12-19 18:05:18 +00:00
..
bytecode_expectations [ignition] Add golden files for destructuring assignment 2018-12-13 12:39:02 +00:00
bytecode-expectations-printer.cc [objects.h splitting] Move HeapNumber to heap-number.h 2018-12-17 17:58:09 +00:00
bytecode-expectations-printer.h [ubsan] Port Name/String/Symbol to the new design 2018-11-27 01:42:36 +00:00
generate-bytecode-expectations.cc Remove bytecode expectations for do expressions 2018-12-07 08:26:45 +00:00
interpreter-tester.cc [reland] Don't allocate feedback vectors and feedback metadata in lite mode 2018-12-19 14:29:30 +00:00
interpreter-tester.h [reland] Don't allocate feedback vectors and feedback metadata in lite mode 2018-12-19 14:29:30 +00:00
source-position-matcher.cc [cleanup] Fix remaining (D)CHECK macro usages 2017-10-18 10:12:31 +00:00
source-position-matcher.h Use source position table for unoptimized code. 2016-06-28 05:52:52 +00:00
test-bytecode-generator.cc [ignition] Add golden files for destructuring assignment 2018-12-13 12:39:02 +00:00
test-interpreter-intrinsics.cc [cleanup] Remove a lot of dead intrinsics/runtime functions. 2018-09-20 12:48:57 +00:00
test-interpreter.cc Workaround VS/UCRT fmod bug 2018-12-19 18:05:18 +00:00
test-source-positions.cc [cleanup] Refactor TestCaseData to use delete 2018-09-12 07:54:35 +00:00