• Clemens Hammacher's avatar
    Move helper struct from logging.h to template-utils.h · 84dc3679
    Clemens Hammacher authored
    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: 's avatarTobias Tebbi <tebbi@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#47191}
    84dc3679
Name
Last commit
Last update
..
api Loading commit data...
asmjs Loading commit data...
base Loading commit data...
compiler Loading commit data...
compiler-dispatcher Loading commit data...
heap Loading commit data...
interpreter Loading commit data...
libplatform Loading commit data...
parser Loading commit data...
wasm Loading commit data...
zone Loading commit data...
BUILD.gn Loading commit data...
DEPS Loading commit data...
cancelable-tasks-unittest.cc Loading commit data...
char-predicates-unittest.cc Loading commit data...
counters-unittest.cc Loading commit data...
eh-frame-iterator-unittest.cc Loading commit data...
eh-frame-writer-unittest.cc Loading commit data...
locked-queue-unittest.cc Loading commit data...
object-unittest.cc Loading commit data...
register-configuration-unittest.cc Loading commit data...
run-all-unittests.cc Loading commit data...
source-position-table-unittest.cc Loading commit data...
test-helpers.cc Loading commit data...
test-helpers.h Loading commit data...
test-utils.cc Loading commit data...
test-utils.h Loading commit data...
unicode-unittest.cc Loading commit data...
unittests.gyp Loading commit data...
unittests.isolate Loading commit data...
unittests.status Loading commit data...
value-serializer-unittest.cc Loading commit data...