v8/test/unittests/base
Jakob Kummerow fc329ce22a [ubsan] Fix various cases of undefined behavior
Mostly signed integer overflows, and a few cases of double
division by zero (which is defined by IEEE-754 to return
Infinity (or NaN for 0/0) but is UB in C++).
In base/ieee754.cc, use constants for NaN and Infinity instead
of computing these values.
In spaces-unittest.cc, ensure that a large enough allocation
is used.

Bug: v8:3770
Change-Id: I50d9a77dc860ef9993b7b269a5f8c117b0f62f9d
Reviewed-on: https://chromium-review.googlesource.com/c/1403454
Commit-Queue: Jakob Kummerow <jkummerow@chromium.org>
Reviewed-by: Adam Klein <adamk@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#58701}
2019-01-10 13:52:04 +00:00
..
platform [base] Introduce MutexGuard as typedef for LockGuard<Mutex> 2018-10-12 15:44:51 +00:00
utils
address-region-unittest.cc [ptr-compr] Re-imlpement BoundedPageAllocator::ReleasePages() 2018-09-28 10:41:06 +00:00
atomic-utils-unittest.cc Remove unused AtomicValue::TrySetValue method 2018-11-09 16:33:05 +00:00
bits-unittest.cc
cpu-unittest.cc
division-by-constant-unittest.cc
flags-unittest.cc
functional-unittest.cc [cleanup] Mark test/ methods in subclasses with override. 2018-09-17 07:40:00 +00:00
ieee754-unittest.cc [ubsan] Fix various cases of undefined behavior 2019-01-10 13:52:04 +00:00
iterator-unittest.cc
list-unittest.cc [heap] Remove anchor page from Space. 2018-05-22 17:48:02 +00:00
logging-unittest.cc MIPS: Fix build of unitttests in debug mode 2018-11-20 11:01:44 +00:00
macros-unittest.cc Account for different interpretations of "trivially copyable" 2018-03-02 15:45:14 +00:00
ostreams-unittest.cc
region-allocator-unittest.cc [ptr-compr] Re-imlpement BoundedPageAllocator::ReleasePages() 2018-09-28 10:41:06 +00:00
sys-info-unittest.cc
template-utils-unittest.cc Make v8 build with -Wmicrosoft-cast under clang-cl. 2018-02-28 18:06:57 +00:00
threaded-list-unittest.cc [scopes] Push unresolved variables at the back so we can MoveTail to rescope 2018-11-27 11:55:46 +00:00