v8/src/logging
Joyee Cheung 963ff849df [class] implement inspector support for private instance methods
This patch implements inspector support for private instance methods:

- Previously to implement brand checking for instances with private
  instance methods we store the brand both as the value with the brand
  itself as the key in the stances. Now we make the value the context
  associated with the class instead.
- To retrieve the private instance methods and accessors from the
  instances at runtime, we look into the contexts stored with the
  brands, and analyze the scope info to get the names as well as
  context slot indices of them.
- This patch extends the `PrivatePropertyDescriptor` in the inspector
  protocol to include optional `get` and `set` fields, and make the
  `value` field optional (similar to `PropertyDescriptor`s).
  Private fields or private instance methods are returned in the
  `value` field while private accessors are returned in the `get`
  and/or `set` field. Property previews for the instaces containing
  private instance methods and accessors are also updated similarly,
  although no additional protocol change is necessary since the
  `PropertyPreview` type can already be used to display accessors.

Design doc: https://docs.google.com/document/d/1N91LObhQexnB0eE7EvGe57HsvNMFX16CaWu-XCTnnmY/edit

Bug: v8:9839, v8:8330
Change-Id: If37090bd23833a18f75deb1249ca5c4405ca2bf2
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1934407
Commit-Queue: Joyee Cheung <joyee@igalia.com>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Reviewed-by: Ross McIlroy <rmcilroy@chromium.org>
Reviewed-by: Toon Verwaest <verwaest@chromium.org>
Cr-Commit-Position: refs/heads/master@{#65337}
2019-12-04 20:13:34 +00:00
..
code-events.h [cpu-profiler] Add parameter to filter profiles by v8::Context 2019-08-20 00:04:31 +00:00
counters-definitions.h [wasm] Add a counter that compares liftoff with deserialization 2019-10-31 16:36:55 +00:00
counters-inl.h [cleanup] Remove redundant RuntimeCallTimerScope constructor 2019-11-15 16:22:38 +00:00
counters.cc [compile] Collect RuntimeCallStats for AssembleCode 2019-11-27 19:06:18 +00:00
counters.h [class] implement inspector support for private instance methods 2019-12-04 20:13:34 +00:00
log-inl.h Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
log-utils.cc Rename and retype Symbol name to description 2019-10-30 10:38:55 +00:00
log-utils.h cleanup: Use unique_ptr in src/logging/ and other cleanups 2019-09-14 15:13:39 +00:00
log.cc [wasm] Fix logged name of wasm-to-js wrappers 2019-12-02 13:34:03 +00:00
log.h [log] report code relocation through CodeEventHandler 2019-09-24 10:50:05 +00:00
OWNERS Use relative paths to OWNERS files 2019-08-12 13:52:52 +00:00