• Tobias Tebbi's avatar
    [torque] multiple arrays in one object · 59e8d45a
    Tobias Tebbi authored
    This allows the definition of classes with several arrays and ports
    SmallOrderedHashTable subclasses to Torque as an example, including
    the existing CSA allocation functions for them.
    
    Overview of changes:
    - Introduce ResidueClass to encapsulate the modulo-arithmetic
      necessary to do alignment checks.
    - Add MachineOperatorReducer to the CSA pipeline to address now
      missing CSA ad-hoc constant folding that got blocked by a
      temporary phi.
    - Allow assignments to references to structs. This is needed to
      initialize the data_table part of SmallOrderedHashMap.
    - Make the NumberLiteralExpression AST-node store a double instead
      of a string. This is necessary to detect arrays with constant size
      used for padding.
    - Turn offsets into base::Optional<size_t> to ensure we don't use
      an invalid or statically unknown offset.
    - Remove CreateFieldReferenceInstruction since it doesn't work for
      complex offset computations and the logic can be expressed better
      in ImplementationVisitor.
    - Validate alignment of structs embedded in classes.
    
    Bug: v8:10004 v8:7793
    Change-Id: Ifa414b42278e572a0c577bf9da3d37f80771a258
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1958011
    Commit-Queue: Clemens Backes <clemensb@chromium.org>
    Reviewed-by: 's avatarClemens Backes <clemensb@chromium.org>
    Reviewed-by: 's avatarNico Hartmann <nicohartmann@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#65538}
    59e8d45a
Name
Last commit
Last update
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...
.clang-tidy Loading commit data...
.editorconfig Loading commit data...
.flake8 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...
COMMON_OWNERS Loading commit data...
DEPS Loading commit data...
ENG_REVIEW_OWNERS Loading commit data...
INFRA_OWNERS Loading commit data...
INTL_OWNERS 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...
MIPS_OWNERS Loading commit data...
OWNERS Loading commit data...
PPC_OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
README.md Loading commit data...
S390_OWNERS Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...