v8/test
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
..
benchmarks [test] Skip flaky test on predictable mode 2019-05-07 13:57:18 +00:00
cctest [class] implement private accessor declarations 2019-08-20 15:32:34 +00:00
common Use relative paths to OWNERS files 2019-08-12 13:52:52 +00:00
debugger Use relative paths to OWNERS files 2019-08-12 13:52:52 +00:00
fuzzer [csa] block cloning to optimize branch on phi 2019-07-30 10:30:29 +00:00
inspector Use relative paths to OWNERS files 2019-08-12 13:52:52 +00:00
intl [Intl] Adding volume units. 2019-07-24 17:16:46 +00:00
js-perf-test [jsperf] Add benchmark for LoadConstantFromPrototype 2019-08-16 09:33:06 +00:00
memory [owners] Remove redundant OWNERS files in test/ 2019-06-24 12:44:32 +00:00
message [scanner] fix bug with reporting invalid numeric separator 2019-08-08 16:36:36 +00:00
mjsunit [class] implement private accessor declarations 2019-08-20 15:32:34 +00:00
mkgrokdump Reland "Add postmortem debugging helper library" 2019-07-31 14:30:19 +00:00
mozilla [regexp] Add missing case for EscapeRegExpPattern 2019-07-09 08:11:51 +00:00
preparser Add OWNERS files for src and test 2019-05-30 04:51:21 +00:00
test262 Roll Test262 2019-08-13 10:23:30 +00:00
torque Use relative paths to OWNERS files 2019-08-12 13:52:52 +00:00
unittests [heap] Remove ClearRecordedSlots 2019-08-20 15:09:57 +00:00
wasm-api-tests [wasm-c-api] Roll 351b9b7: Support multiple return values 2019-08-20 14:48:14 +00:00
wasm-js Use relative paths to OWNERS files 2019-08-12 13:52:52 +00:00
wasm-spec-tests [mips][wasm] Correct wasm address space limit. 2019-08-02 14:54:08 +00:00
webkit [regexp] Add missing case for EscapeRegExpPattern 2019-07-09 08:11:51 +00:00
BUILD.gn [wasm-c-api] Add tests and fixes 2019-05-28 09:57:04 +00:00
OWNERS Use relative paths to OWNERS files 2019-08-12 13:52:52 +00:00