v8/src/ast
Joyee Cheung 00c7e2a2c5 Reland "[class] implement private method declarations"
Added null check when printing the brand with --print-ast.

Bug: chromium:961507, chromium:961508

Original change's description:
> [class] implement private method declarations
>
> This patch implements the declarations of private methods, the access
> of private methods would be left to a future patch.
> When a private methods declaration is encountered, we now:
>
> - Create a brand symbol during class evaluation and store it in the
>   context.
> - Create the closures for the private methods
> - Load the brand from the context and store it in the instance in the
>   constructor.
>
> Design: https://docs.google.com/document/d/1T-Ql6HOIH2U_8YjWkwK2rTfywwb7b3Qe8d3jkz72KwA/edit#
>
> Bug: v8:8330
> Change-Id: I2d695cbdc8a7367ddc7620d627b318f779d36150
> Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1568708
> Commit-Queue: Joyee Cheung <joyee@igalia.com>
> Reviewed-by: Ross McIlroy <rmcilroy@chromium.org>
> Reviewed-by: Sathya Gunasekaran <gsathya@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#61387}

Change-Id: I3bf465f70c27914c9ec19f3f59ae018b28c9a866
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1605521
Commit-Queue: Joyee Cheung <joyee@igalia.com>
Reviewed-by: Adam Klein <adamk@chromium.org>
Reviewed-by: Ross McIlroy <rmcilroy@chromium.org>
Reviewed-by: Sathya Gunasekaran <gsathya@chromium.org>
Cr-Commit-Position: refs/heads/master@{#61459}
2019-05-13 20:20:53 +00:00
..
ast-function-literal-id-reindexer.cc [cleanup] Refactor ast to use default members. 2018-09-14 07:04:04 +00:00
ast-function-literal-id-reindexer.h [presubmit] Add include guard check 2018-02-02 16:59:32 +00:00
ast-source-ranges.h [coverage] Rework continuation counter handling 2018-12-21 15:29:48 +00:00
ast-traversal-visitor.h [ast] Always visit all AST nodes, even dead nodes 2019-02-13 15:24:28 +00:00
ast-value-factory.cc Reland "[json] Speed up json parsing" 2019-05-06 15:27:57 +00:00
ast-value-factory.h Reland "[class] implement private method declarations" 2019-05-13 20:20:53 +00:00
ast.cc Reland "[class] implement private method declarations" 2019-05-13 20:20:53 +00:00
ast.h Reland "[class] implement private method declarations" 2019-05-13 20:20:53 +00:00
modules.cc [modules] Don't deserialize module descriptor 2019-02-20 07:31:17 +00:00
modules.h [cctest] Add V8_EXPORT_PRIVATE for cctest (parser part) 2019-04-03 16:34:11 +00:00
OWNERS [ast] Add gsathya to ast/OWNERS 2019-04-16 17:38:14 +00:00
prettyprinter.cc Reland "[class] implement private method declarations" 2019-05-13 20:20:53 +00:00
prettyprinter.h [parser] Various Scope and Context speedups 2019-01-28 13:06:03 +00:00
scopes.cc Reland "[class] implement private method declarations" 2019-05-13 20:20:53 +00:00
scopes.h Reland "[class] implement private method declarations" 2019-05-13 20:20:53 +00:00
source-range-ast-visitor.cc [coverage] Extend SourceRangeAstVisitor for throw statements 2019-02-28 10:45:29 +00:00
source-range-ast-visitor.h [coverage] Rework continuation counter handling 2018-12-21 15:29:48 +00:00
variables.cc Fix a Jumbo breakage 2018-05-29 14:36:48 +00:00
variables.h [cleanup] Move ZoneSplayTree to its own header 2019-02-26 15:39:39 +00:00