• Tobias Tebbi's avatar
    Revert "[torque] introduce JSAny type for user-accessible JavaScript values" · 4418a7b9
    Tobias Tebbi authored
    This reverts commit 79b00555.
    
    Reason for revert: needs more discussion
    
    Original change's description:
    > [torque] introduce JSAny type for user-accessible JavaScript values
    > 
    > This CL introduces a JSAny type for user-exposed JavaScript values and
    > a few new types to define it. Especially, it splits Symbol into
    > PrivateSymbol (not exposed) and PublicSymbol (JavaScript exposed
    > symbols).
    > 
    > The change is mostly mechanical, but a few things are interesting:
    > - PropertyKey and JSPrimitive were designed to coincide with the spec
    >   notions of IsPropertyKey() and primitive value, respectively.
    > - Since Name is an open type, we define AnyName to be the known
    >   subtypes of Name. This is not too elegant, but by using AnyName
    >   instead of Name, typeswitch can properly conclude something if a
    >   subtype of Name is excluded.
    > 
    > Small drive-by changes, which were necessary:
    > - Allow subtyping on label parameters.
    > - Fix the formatting of typeswitch, it was broken with union types
    >   in case types.
    > 
    > Bug: v8:7793
    > Change-Id: I14b10507f8cf316ad85e048fe8d53d1df5e0bb13
    > Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1735322
    > Commit-Queue: Tobias Tebbi <tebbi@chromium.org>
    > Reviewed-by: Jakob Gruber <jgruber@chromium.org>
    > Cr-Commit-Position: refs/heads/master@{#63114}
    
    TBR=neis@chromium.org,jgruber@chromium.org,tebbi@chromium.org
    
    Change-Id: Ifde7881d74afe407628f40047997339d54cb2424
    No-Presubmit: true
    No-Tree-Checks: true
    No-Try: true
    Bug: v8:7793
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1741652Reviewed-by: 's avatarTobias Tebbi <tebbi@chromium.org>
    Commit-Queue: Tobias Tebbi <tebbi@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#63115}
    4418a7b9
Name
Last commit
Last update
..
ls Loading commit data...
OWNERS Loading commit data...
ast.h Loading commit data...
cfg.cc Loading commit data...
cfg.h Loading commit data...
class-debug-reader-generator.cc Loading commit data...
constants.h Loading commit data...
contextual.h Loading commit data...
csa-generator.cc Loading commit data...
csa-generator.h Loading commit data...
declarable.cc Loading commit data...
declarable.h Loading commit data...
declaration-visitor.cc Loading commit data...
declaration-visitor.h Loading commit data...
declarations.cc Loading commit data...
declarations.h Loading commit data...
earley-parser.cc Loading commit data...
earley-parser.h Loading commit data...
global-context.cc Loading commit data...
global-context.h Loading commit data...
implementation-visitor.cc Loading commit data...
implementation-visitor.h Loading commit data...
instructions.cc Loading commit data...
instructions.h Loading commit data...
parameter-difference.h Loading commit data...
server-data.cc Loading commit data...
server-data.h Loading commit data...
source-positions.cc Loading commit data...
source-positions.h Loading commit data...
torque-compiler.cc Loading commit data...
torque-compiler.h Loading commit data...
torque-parser.cc Loading commit data...
torque-parser.h Loading commit data...
torque.cc Loading commit data...
type-inference.cc Loading commit data...
type-inference.h Loading commit data...
type-oracle.cc Loading commit data...
type-oracle.h Loading commit data...
type-visitor.cc Loading commit data...
type-visitor.h Loading commit data...
types.cc Loading commit data...
types.h Loading commit data...
utils.cc Loading commit data...
utils.h Loading commit data...