v8/test/unittests
Clemens Hammacher 9ceaf21272 [base] Introduce RoundUpToPowerOfTwo64
And fix RoundUpToPowerOfTwo32 to return 1 for the input 0.
0 is no power of two.
Beside being the correct value, this also avoids a special case in the
(new) fast path using the number of leading zeros.

R=jochen@chromium.org, ahaas@chromium.org

Change-Id: I87173495e13b334954bcebbb55724fb666dfa809
Reviewed-on: https://chromium-review.googlesource.com/488143
Reviewed-by: Jochen Eisinger <jochen@chromium.org>
Reviewed-by: Andreas Haas <ahaas@chromium.org>
Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#44925}
2017-04-27 11:22:11 +00:00
..
api Never freeze/seal/preventExtensions objects with interceptors 2017-03-29 13:04:58 +00:00
asmjs [asm.js] Fix numeric literal bounds checking. 2017-04-26 13:45:45 +00:00
base [base] Introduce RoundUpToPowerOfTwo64 2017-04-27 11:22:11 +00:00
compiler [turbofan] Let ChangeFloat64ToTagged canonicalize to Smi if possible. 2017-04-13 06:57:04 +00:00
compiler-dispatcher Remove "calls eval" bit from ParseInfo and PreParseData 2017-04-19 19:45:45 +00:00
heap Reland of [heap] Fix CompactionSpace test and move to unittests 2017-04-05 07:36:15 +00:00
interpreter [inspector] cache stack frame for call sites 2017-04-12 18:33:20 +00:00
libplatform Make idle tasks optional in the default platform. 2017-03-07 13:37:41 +00:00
parser [parser] Move newly added cctest/test-parsing/LazyFunctionLength to unittests. 2017-04-18 14:27:32 +00:00
wasm [wasm] [cleanup] Always use macros for memory operations 2017-04-26 11:49:50 +00:00
zone Add RecyclingZoneAllocator for ZoneDeque. 2017-03-27 15:10:42 +00:00
BUILD.gn [wasm] Move wasm-macro-gen.h to test/common/wasm 2017-04-25 11:59:48 +00:00
cancelable-tasks-unittest.cc Implement async AbortAll for the compiler dispatcher 2017-01-04 13:45:56 +00:00
char-predicates-unittest.cc [intl] Reorganize code 2017-04-24 13:54:15 +00:00
counters-unittest.cc [counters] RuntimeStats: fix wrong bookkeeping when dynamically changing counters 2016-11-24 10:05:37 +00:00
DEPS
eh-frame-iterator-unittest.cc [turbofan] Fix more -Wsign-compare warnings. 2016-11-11 12:01:08 +00:00
eh-frame-writer-unittest.cc [turbofan] Fix more -Wsign-compare warnings. 2016-11-11 12:01:08 +00:00
locked-queue-unittest.cc Add lock-based unbounded queue 2015-11-18 10:54:13 +00:00
object-unittest.cc Fix HashTable growth strategy to be 2x instead of 4x 2017-04-21 17:31:29 +00:00
register-configuration-unittest.cc [Turbofan] Add concept of FP register aliasing on ARM 32. 2016-10-26 16:04:33 +00:00
run-all-unittests.cc Make idle tasks optional in the default platform. 2017-03-07 13:37:41 +00:00
source-position-table-unittest.cc This CL enables precise source positions for all V8 compilers. It merges compiler::SourcePosition and internal::SourcePosition to a single class used throughout the codebase. The new internal::SourcePosition instances store an id identifying an inlined function in addition to a script offset. 2016-11-14 17:22:32 +00:00
test-helpers.cc [parser] Move newly added cctest/test-parsing/LazyFunctionLength to unittests. 2017-04-18 14:27:32 +00:00
test-helpers.h [parser] Move newly added cctest/test-parsing/LazyFunctionLength to unittests. 2017-04-18 14:27:32 +00:00
test-utils.cc Disable other background modules while testing the CompilerDispatcher 2017-03-14 14:01:03 +00:00
test-utils.h Disable other background modules while testing the CompilerDispatcher 2017-03-14 14:01:03 +00:00
unicode-unittest.cc Fix out-of-range access in unibrow::Utf8::CalculateValue. 2016-11-22 09:27:59 +00:00
unittests.gyp [parser] Move newly added cctest/test-parsing/LazyFunctionLength to unittests. 2017-04-18 14:27:32 +00:00
unittests.isolate Reland [swarming] Isolate v8 testing. 2015-10-05 09:48:42 +00:00
unittests.status [asm.js] Widen test coverage to cctest and friends. 2017-03-28 08:00:40 +00:00
value-serializer-unittest.cc Reland of [wasm] Transferrable modules (patchset #1 id:1 of https://codereview.chromium.org/2762163002/ ) 2017-03-21 17:48:05 +00:00