v8/test/unittests
Michael Achenbach 1a1968feb6 Revert "[bits] Consolidate Count{Leading,Trailing}Zeros"
This reverts commit 7d231e576a.

Reason for revert: Breaks revert for win-clang:
https://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/342755

Original change's description:
> [bits] Consolidate Count{Leading,Trailing}Zeros
> 
> Instead of having one method for 32 bit integers and one for 64 bit,
> plus a templatized version to choose from those two, just implement one
> version which handles unsigned integers of any size. Also, make them
> constexpr.
> The Count{Leading,Trailing}Zeros{32,64} methods are kept for now in
> order to keep the amount of code changes small. Also, sometimes it
> improves readability by stating exactly the size of the argument,
> especially for leading zeros (where zero-extending would add more
> leading zeros).
> 
> CountLeadingZeros now uses a binary search inspired implementation
> as proposed in Hacker's Delight. It's more than 20% faster on x64 if
> the builtins are disabled.
> CountTrailingZeros falls back to CountPopulation instead of counting in
> a naive loop. This is ~50% faster.
> 
> R=​mstarzinger@chromium.org
> 
> Change-Id: I1d8bf1d7295b930724163248150444bd17fbb34e
> Reviewed-on: https://chromium-review.googlesource.com/741231
> Reviewed-by: Michael Starzinger <mstarzinger@chromium.org>
> Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#49106}

TBR=mstarzinger@chromium.org,clemensh@chromium.org

Change-Id: Iceeb35bf9c7539a1013c9bdbc47118008611bef2
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/753463
Reviewed-by: Michael Achenbach <machenbach@chromium.org>
Cr-Commit-Position: refs/heads/master@{#49123}
2017-11-04 09:34:11 +00:00
..
api [lazy-accessor-pairs] Don't take the fast paths if the context needs to be switched 2017-10-27 11:31:34 +00:00
asmjs [cleanup] Fix remaining (D)CHECK macro usages 2017-10-18 10:12:31 +00:00
base Revert "[bits] Consolidate Count{Leading,Trailing}Zeros" 2017-11-04 09:34:11 +00:00
compiler [turbofan] Introduce InstanceOfIC to collect rhs feedback. 2017-10-23 10:15:36 +00:00
compiler-dispatcher [parser] Add an n-ary node for large binop chains 2017-10-25 11:28:55 +00:00
heap Revert "[Memory] Move GetRandomMmapAddr from base::OS platform to v8::internal." 2017-10-18 18:48:27 +00:00
interpreter [ast] Move AstValue implementation into Literal 2017-10-27 20:21:29 +00:00
libplatform [jumbo] add unittests jumbo support 2017-09-28 22:19:40 +00:00
parser [ast] Move AstValue implementation into Literal 2017-10-27 20:21:29 +00:00
wasm [wasm] Support block parameters 2017-10-24 11:44:26 +00:00
zone [heap] Simplify and linearly scale ResourceConstraints::ConfigureDefaults. 2017-05-23 17:00:57 +00:00
bigint-unittest.cc [bigint] Fix StringToBigInt("") to return 0n. 2017-10-20 17:00:41 +00:00
BUILD.gn [bigint] Implement comparisons with Numbers/Strings 2017-10-19 07:25:38 +00:00
cancelable-tasks-unittest.cc Make CancelableTask ids unique 2017-08-02 16:10:42 +00:00
char-predicates-unittest.cc Use ICU for ID_START, ID_CONTINUE and WhiteSpace check 2017-06-14 20:32:49 +00:00
code-stub-assembler-unittest.cc Remove ComputeFlags, simply pass in Code::Kind instead of Code::Flags 2017-09-29 15:37:27 +00:00
code-stub-assembler-unittest.h [csa] Add constant folding more universally to CodeAssembler operators 2017-09-12 10:03:10 +00:00
counters-unittest.cc Localize counter class member functions. 2017-06-08 16:18:32 +00:00
DEPS
detachable-vector-unittest.cc [cleanup] Replace List with std::vector in api. 2017-09-28 09:32:18 +00:00
eh-frame-iterator-unittest.cc [turbofan] Avoid disallowed "using namespace" directive. 2017-08-31 11:52:15 +00:00
eh-frame-writer-unittest.cc [turbofan] Avoid disallowed "using namespace" directive. 2017-08-31 11:52:15 +00:00
locked-queue-unittest.cc
object-unittest.cc [runtime] Devirtualize CompilationCacheKey::HashForObject 2017-06-12 17:00:52 +00:00
register-configuration-unittest.cc
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 [runtime] Allocate source position table before Code. 2017-10-20 10:58:52 +00:00
test-helpers.cc Reland "[builtins] Remove Builtins::Name() accessors" 2017-08-01 10:39:10 +00:00
test-helpers.h [Parsing] Remove parse-task support. 2017-08-18 21:09:30 +00:00
test-utils.cc [cleanup] Replace List with std::vector in IC, Handle code. 2017-08-30 07:35:00 +00:00
test-utils.h [cleanup] Replace List with std::vector in IC, Handle code. 2017-08-30 07:35:00 +00:00
unicode-unittest.cc [unicode] Add tests for UTF-8 decoders + minor cleanups. 2017-09-29 13:18:52 +00:00
unittests.gyp [bigint] Implement comparisons with Numbers/Strings 2017-10-19 07:25:38 +00:00
unittests.isolate
unittests.status Remove x87 port 2017-07-18 18:20:40 +00:00
value-serializer-unittest.cc Fix WebAssembly.Memory deserialization in more complex objects 2017-10-20 01:18:13 +00:00