• Seth Brenith's avatar
    [torque] move more bitfield definitions to Torque · 87c16da5
    Seth Brenith authored
    This change moves the definitions of the bitfield flags used by Symbol
    and Map to Torque. Symbol could directly follow the pattern established
    by SharedFunctionInfo, but Map required some other changes:
    - Until now, Torque bitfield definitions have required unsigned types. I
      thought that this would be the least-surprising behavior, since we
      never sign-extend when decoding bitfield values. However, I believe
      that the amount of churn involved in making ElementsKind be unsigned
      outweighs the benefit we were getting from this restriction (and
      similar difficulties are likely to arise in converting other bitfield
      structs to Torque), so this CL updates Torque to allow signed bitfield
      values.
    - If we try to make Map extend from all of the generated classes that
      define its flags, we end up with class sizing problems because some
      compilers only apply empty base class optimization to the first in a
      row of empty base classes. We could work around this issue by
      generating macros instead of classes, but I took this as an
      opportunity for a minor clean-up instead: rather than having bitfield
      definitions for several different bitfield structs all jumbled
      together in Map, they can be split up. I think this makes the code a
      little easier to follow, but if others disagree I'm happy to implement
      macro generation instead.
    
    Change-Id: Ibf339b0be97f72d740bf1daa8300b471912faeba
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1988934Reviewed-by: 's avatarTobias Tebbi <tebbi@chromium.org>
    Reviewed-by: 's avatarRoss McIlroy <rmcilroy@chromium.org>
    Commit-Queue: Seth Brenith <seth.brenith@microsoft.com>
    Cr-Commit-Position: refs/heads/master@{#65701}
    87c16da5
Name
Last commit
Last update
..
api Loading commit data...
asmjs Loading commit data...
ast Loading commit data...
base Loading commit data...
builtins Loading commit data...
codegen Loading commit data...
common Loading commit data...
compiler Loading commit data...
compiler-dispatcher Loading commit data...
d8 Loading commit data...
date Loading commit data...
debug Loading commit data...
deoptimizer Loading commit data...
diagnostics Loading commit data...
execution Loading commit data...
extensions Loading commit data...
flags Loading commit data...
handles Loading commit data...
heap Loading commit data...
ic Loading commit data...
init Loading commit data...
inspector Loading commit data...
interpreter Loading commit data...
json Loading commit data...
libplatform Loading commit data...
libsampler Loading commit data...
logging Loading commit data...
numbers Loading commit data...
objects Loading commit data...
parsing Loading commit data...
profiler Loading commit data...
protobuf Loading commit data...
regexp Loading commit data...
roots Loading commit data...
runtime Loading commit data...
sanitizer Loading commit data...
snapshot Loading commit data...
strings Loading commit data...
tasks Loading commit data...
third_party Loading commit data...
torque Loading commit data...
tracing Loading commit data...
trap-handler Loading commit data...
utils Loading commit data...
wasm Loading commit data...
zone Loading commit data...
DEPS Loading commit data...
OWNERS Loading commit data...