• Tobias Tebbi's avatar
    [torque] fix variables, returns and conditionals with constexpr · 81186ff4
    Tobias Tebbi authored
    Variables/return values with constexpr type cannot have multiple
    assignments. We check this now.
    For conditionals, it is important to always infer a non-constexpr type.
    This CL adds the ability to map any type (including union types) to be
    mapped to their non-constexpr variant. Conditionals infer their type as
    the non-constexpr version of a combination of the two branch types.
    
    In addition, this improves subtyping for constexpr types:
    If A extends B, then constexpr A extends constexpr B.
    This makes it necessary to clean up "constexpr String", which has nothing
    to do with tagged values.
    
    Bug: v8:7793
    Change-Id: Ia4d3cd5dc98f45b0ec89adf05c5c6111a0e51cc6
    Reviewed-on: https://chromium-review.googlesource.com/1122864
    Commit-Queue: Tobias Tebbi <tebbi@chromium.org>
    Reviewed-by: 's avatarDaniel Clifford <danno@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#54167}
    81186ff4
Name
Last commit
Last update
benchmarks Loading commit data...
build_overrides Loading commit data...
custom_deps Loading commit data...
docs Loading commit data...
gni Loading commit data...
include Loading commit data...
infra Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
testing Loading commit data...
third_party Loading commit data...
tools Loading commit data...
.clang-format Loading commit data...
.editorconfig Loading commit data...
.git-blame-ignore-revs Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gn Loading commit data...
.vpython Loading commit data...
.ycm_extra_conf.py Loading commit data...
AUTHORS Loading commit data...
BUILD.gn Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE.fdlibm Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
README.md Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...
snapshot_toolchain.gni Loading commit data...