v8/test/cctest/interpreter
Joyee Cheung 77d50cd8e7 [class] implement private accessor declarations
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}
2019-08-20 15:32:34 +00:00
..
bytecode_expectations [class] implement private accessor declarations 2019-08-20 15:32:34 +00:00
bytecode-expectations-printer.cc [modules] Introduce SourceTextModule class 2019-06-19 17:54:52 +00:00
bytecode-expectations-printer.h Enable cpplint 'runtime/references' warning 2019-07-08 09:59:36 +00:00
generate-bytecode-expectations.cc [test] Fix return of int from bool function 2019-07-19 17:07:11 +00:00
interpreter-tester.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
interpreter-tester.h Move remaining files in src/ 2019-05-24 18:24:36 +00:00
source-position-matcher.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
source-position-matcher.h Move remaining files in src/ 2019-05-24 18:24:36 +00:00
test-bytecode-generator.cc [class] implement private accessor declarations 2019-08-20 15:32:34 +00:00
test-interpreter-intrinsics.cc Move remaining files in src/ 2019-05-24 18:24:36 +00:00
test-interpreter.cc [tests] Disable stress mode in source collection tests 2019-07-19 15:16:16 +00:00
test-source-positions.cc Move remaining files in src/ 2019-05-24 18:24:36 +00:00