• Seth Brenith's avatar
    [torque] Make return types required · 25f0e329
    Seth Brenith authored
    Currently, it is possible to declare macros, builtins, etc., without
    specifying a return type, in which case the return type is treated as
    void. This is confusing; the code is more clear if we require the return
    type to be specified.
    
    Aside from src/torque, this change is almost entirely just adding
    `: void` until the compiler is happy. However, two intrinsics in
    src/builtins/torque-internal.tq have been corrected to declare an
    appropriate return type. Those two intrinsics were only used in code
    generated within the compiler after the type-checking phase, so we never
    noticed that their return types were declared incorrectly.
    
    Bug: v8:7793
    Change-Id: Ib7df88678c25393a9e3eba389a6a1c4d9233dcbb
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3176502
    Commit-Queue: Seth Brenith <seth.brenith@microsoft.com>
    Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
    Reviewed-by: 's avatarNico Hartmann <nicohartmann@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#77178}
    25f0e329
Name
Last commit
Last update
..
api Loading commit data...
asmjs Loading commit data...
assembler Loading commit data...
base Loading commit data...
codegen Loading commit data...
compiler Loading commit data...
compiler-dispatcher Loading commit data...
date Loading commit data...
debug Loading commit data...
diagnostics Loading commit data...
execution Loading commit data...
heap Loading commit data...
interpreter Loading commit data...
libplatform Loading commit data...
logging Loading commit data...
numbers Loading commit data...
objects Loading commit data...
parser Loading commit data...
profiler Loading commit data...
regexp Loading commit data...
regress Loading commit data...
runtime Loading commit data...
strings Loading commit data...
tasks Loading commit data...
torque Loading commit data...
utils Loading commit data...
wasm Loading commit data...
zone Loading commit data...
BUILD.gn Loading commit data...
DEPS Loading commit data...
run-all-unittests.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...
testcfg.py Loading commit data...
unittests.status Loading commit data...