77d50cd8e7
This patch implements the declaration of private accessors. When iterating over the class properties, we track private accessors associated with the same name in a ZoneHashMap. Once we get to all the necessary components for a private name (we know statically whether we should expect only a setter, only a getter, or both), we emit a call to a runtime function `CreatePrivateAccessors` that creates an AccessorPair, and store the components in it. The AccessorPair is then associated with the private name variable and stored in the context for later retrieval when the private accessors are accessed. Design doc: https://docs.google.com/document/d/10W4begYfs7lmldSqBoQBBt_BKamgT8igqxF9u50RGrI/edit Bug: v8:8330 Change-Id: Ie6d3882507d143b1f645d7ae82b21b7358656e89 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1725670 Commit-Queue: Joyee Cheung <joyee@igalia.com> Reviewed-by: Ross McIlroy <rmcilroy@chromium.org> Cr-Commit-Position: refs/heads/master@{#63284} |
||
---|---|---|
.. | ||
ArrayLiterals.golden | ||
AssignmentsInBinaryExpression.golden | ||
AsyncGenerators.golden | ||
BasicBlockToBoolean.golden | ||
BasicLoops.golden | ||
BreakableBlocks.golden | ||
CallAndSpread.golden | ||
CallGlobal.golden | ||
CallLookupSlot.golden | ||
CallNew.golden | ||
CallRuntime.golden | ||
ClassAndSuperClass.golden | ||
ClassDeclarations.golden | ||
CompareNil.golden | ||
CompareTypeOf.golden | ||
CompoundExpressions.golden | ||
Conditional.golden | ||
ConstVariable.golden | ||
ConstVariableContextSlot.golden | ||
ContextParameters.golden | ||
ContextVariables.golden | ||
CountOperators.golden | ||
CreateArguments.golden | ||
CreateRestParameter.golden | ||
DeadCodeRemoval.golden | ||
DeclareGlobals.golden | ||
Delete.golden | ||
DeleteLookupSlotInEval.golden | ||
DestructuringAssignment.golden | ||
DoDebugger.golden | ||
Eval.golden | ||
ForAwaitOf.golden | ||
ForIn.golden | ||
ForOf.golden | ||
ForOfLoop.golden | ||
FunctionLiterals.golden | ||
GenerateTestUndetectable.golden | ||
Generators.golden | ||
GlobalCompoundExpressions.golden | ||
GlobalCountOperators.golden | ||
GlobalDelete.golden | ||
HeapNumberConstants.golden | ||
IfConditions.golden | ||
IIFEWithOneshotOpt.golden | ||
IIFEWithoutOneshotOpt.golden | ||
IntegerConstants.golden | ||
LetVariable.golden | ||
LetVariableContextSlot.golden | ||
LoadGlobal.golden | ||
LogicalExpressions.golden | ||
LookupSlot.golden | ||
LookupSlotInEval.golden | ||
Modules.golden | ||
NewAndSpread.golden | ||
NewTarget.golden | ||
ObjectLiterals.golden | ||
OuterContextVariables.golden | ||
Parameters.golden | ||
PrimitiveExpressions.golden | ||
PrimitiveReturnStatements.golden | ||
PrivateAccessors.golden | ||
PrivateClassFields.golden | ||
PrivateMethods.golden | ||
PropertyCall.golden | ||
PropertyLoads.golden | ||
PropertyLoadStoreOneShot.golden | ||
PropertyLoadStoreWithoutOneShot.golden | ||
PropertyStores.golden | ||
PublicClassFields.golden | ||
RegExpLiterals.golden | ||
RemoveRedundantLdar.golden | ||
StandardForLoop.golden | ||
StaticClassFields.golden | ||
StoreGlobal.golden | ||
StringConcat.golden | ||
StringConstants.golden | ||
SuperCallAndSpread.golden | ||
Switch.golden | ||
TemplateLiterals.golden | ||
ThisFunction.golden | ||
Throw.golden | ||
TopLevelObjectLiterals.golden | ||
TryCatch.golden | ||
TryFinally.golden | ||
Typeof.golden | ||
UnaryOperators.golden | ||
WideRegisters.golden | ||
WithStatement.golden |