v8/test
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
..
benchmarks Use --opt instead of --crankshaft in tests. 2017-04-28 14:20:39 +00:00
cctest [wasm] Reland "[wasm] redirect wasm calls to js functions through a GCed table" 2017-08-05 01:57:25 +00:00
common [wasm] Extract WasmVal to own header and rename to WasmValue 2017-07-18 13:12:56 +00:00
debugger [flags] Remove deprecated Hydrogen specific flags. 2017-08-03 12:14:49 +00:00
fuzzer [wasm] Move ScheduledErrorThrower to wasm-api.h 2017-08-03 08:45:58 +00:00
inspector [inspector] remove breakpoints when agent is disabled 2017-08-03 01:54:33 +00:00
intl Fix common misspellings 2017-08-02 09:35:28 +00:00
js-perf-test Add micro-benchmark for Proxy has property 2017-08-03 07:50:27 +00:00
memory
message [test] Add call-undeclared-constructor message test. 2017-08-02 07:31:31 +00:00
mjsunit Mark mjsunit/wasm/atomics as slow on arm64 2017-08-04 23:59:06 +00:00
mkgrokdump Fix compilation failure due to overload of virtual function 2017-05-24 21:19:48 +00:00
mozilla Enable --harmony-strict-legacy-accessor-builtins by default 2017-08-02 21:30:57 +00:00
preparser
promises-aplus Fix common misspellings 2017-08-02 09:35:28 +00:00
test262 Fix common misspellings 2017-08-02 09:35:28 +00:00
unittests Move helper struct from logging.h to template-utils.h 2017-08-07 11:23:43 +00:00
wasm-spec-tests [wasm] Update spec tests 2017-07-25 14:55:07 +00:00
webkit Fix common misspellings 2017-08-02 09:35:28 +00:00
bot_default.gyp [wasm] Add wasm spec tests to the v8 test runner 2017-04-27 13:00:13 +00:00
bot_default.isolate [wasm] Add wasm spec tests to the v8 test runner 2017-04-27 13:00:13 +00:00
BUILD.gn [wasm] Remove the wasm-asmjs fuzzer 2017-06-21 10:59:35 +00:00
default.gyp [wasm] Add wasm spec tests to the v8 test runner 2017-04-27 13:00:13 +00:00
default.isolate [wasm] Add wasm spec tests to the v8 test runner 2017-04-27 13:00:13 +00:00
optimize_for_size.gyp
optimize_for_size.isolate [debugger] basic test infrastructure for new debugger test api. 2016-10-21 06:38:05 +00:00
perf.gyp
perf.isolate Remove SIMD.js from V8. 2017-02-14 06:57:25 +00:00