v8/test/unittests
Clemens Hammacher 84dc3679d1 Move helper struct from logging.h to template-utils.h
I want to reuse the PassType helper in another CL, thus move it from
logging.h to template-utils.h, and rename it to pass_value_or_ref to
match other helpers there.
Also, add a boolean template parameter to declare whether array
dimensions should be removed. The default is to do so, which helps to
reduce the number of template instantiations by always passing arrays
as pointers.

Also, fix the usages in logging.h to actually use that helper when
instantiating other template functions. This will reduce the number of
instantiations.

And finally, we now have unit tests for the template utils, to document
what we expect, and test that this works on all architectures.

R=ishell@chromium.org, tebbi@chromium.org

Change-Id: I1ef5d2a489a5cfc7601c5ab13748674e3aa86cd6
Reviewed-on: https://chromium-review.googlesource.com/594247
Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
Reviewed-by: Tobias Tebbi <tebbi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#47191}
2017-08-07 11:23:43 +00:00
..
api Revert of Set the current context to the function's context when entering to LAP. (patchset #14 id:540001 of https://codereview.chromium.org/2770003002/ ) 2017-07-05 10:41:22 +00:00
asmjs [asm.js] Move two unittests into the correct place. 2017-05-09 13:18:05 +00:00
base Move helper struct from logging.h to template-utils.h 2017-08-07 11:23:43 +00:00
compiler [compiler] Replace some MachineType by MachineRepresentation 2017-08-03 12:12:38 +00:00
compiler-dispatcher [Compiler] Decouple CompilationInfo and ParseInfo. 2017-08-03 11:40:57 +00:00
heap [heap] Partially reland "Allow a minimum semi-space size of 512K." 2017-07-31 15:45:06 +00:00
interpreter [interpreter] make suspend_id an immediate operand to SuspendGenerator 2017-07-25 19:08:48 +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 Reland "Start migration of try/throw/catch to match proposal." 2017-08-02 22:35:07 +00:00
zone [heap] Simplify and linearly scale ResourceConstraints::ConfigureDefaults. 2017-05-23 17:00:57 +00:00
BUILD.gn Move helper struct from logging.h to template-utils.h 2017-08-07 11:23:43 +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
counters-unittest.cc Localize counter class member functions. 2017-06-08 16:18:32 +00:00
DEPS Move unit tests to test/unittests. 2014-10-01 08:34:25 +00:00
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 [runtime] Devirtualize CompilationCacheKey::HashForObject 2017-06-12 17:00:52 +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 Reland "[builtins] Remove Builtins::Name() accessors" 2017-08-01 10:39:10 +00:00
test-helpers.h [compiler-dispatcher] Make compiler jobs abstract (reland) 2017-07-27 14:31:46 +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 Move helper struct from logging.h to template-utils.h 2017-08-07 11:23:43 +00:00
unittests.isolate Reland [swarming] Isolate v8 testing. 2015-10-05 09:48:42 +00:00
unittests.status Remove x87 port 2017-07-18 18:20:40 +00:00
value-serializer-unittest.cc Fix compilation failure due to overload of virtual function 2017-05-24 21:19:48 +00:00