v8/src/debug
Victor Gomes 4ebc9b7b0d Reland "[runtime] Adds LocalNameIterator"
This is a reland of f605d77822

Adds a GC safe (using handles) and unsafe versions of the iterator.

V8HeapExplorer needs an unsafe one, since it does not allow the
creation of handles.

Original change's description:
> [runtime] Adds LocalNameIterator
>
> ScopeInfo will contain either inlined (array) local names or
> a hash table (names => index) containing the local names.
>
> We abstract iteration with LocalNameIterator and remove
> ContextLocalName since accessing a local name by index in
> the hash table would be expensive.
>
> This CL only implements the iterator for the array.
>
> Bug: v8:12315
> Change-Id: I2c62802652fca1cf47815ce8768a3f7487f2c39f
> Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3386603
> Reviewed-by: Toon Verwaest <verwaest@chromium.org>
> Commit-Queue: Victor Gomes <victorgomes@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#78623}

Bug: v8:12315
Change-Id: I6288a08b9c342cd3a9cabcb621c40bb44c08c9c4
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3394706
Reviewed-by: Camillo Bruni <cbruni@chromium.org>
Reviewed-by: Toon Verwaest <verwaest@chromium.org>
Commit-Queue: Victor Gomes <victorgomes@chromium.org>
Cr-Commit-Position: refs/heads/main@{#78653}
2022-01-17 17:20:40 +00:00
..
wasm/gdb-server Remove many superfluous STL includes in headers. 2022-01-13 20:56:45 +00:00
debug-coverage.cc [heap] SafepointScope needs GCs to be allowed 2021-11-18 15:41:50 +00:00
debug-coverage.h [iwyu] Add missing includes of <memory> for std::unique_ptr 2019-09-13 17:13:36 +00:00
debug-evaluate.cc [ext-code-space][cleanup] Remove CodeDataContainer table 2021-12-16 17:32:39 +00:00
debug-evaluate.h [inspector] Consistently treat promise rejections as side-effecting. 2021-10-01 07:10:34 +00:00
debug-frames.cc [Build] Remove includes in pointer-authentication headers 2021-07-23 06:58:19 +00:00
debug-frames.h [refactor] Remove debug dependency for FrameSummary. 2021-05-10 17:10:20 +00:00
debug-interface.cc Reland "[runtime] Adds LocalNameIterator" 2022-01-17 17:20:40 +00:00
debug-interface.h [debug] Add new 'CreateMessageFromException' function 2022-01-12 12:49:53 +00:00
debug-property-iterator.cc Add more debugging info for DCHECK 2021-12-13 17:15:04 +00:00
debug-property-iterator.h [inspector] Speed up DebugPropertyIterator. 2021-09-13 12:52:11 +00:00
debug-scope-iterator.cc [inspector][wasm] Unify locals, stack, and globals objects. 2021-01-11 14:50:40 +00:00
debug-scope-iterator.h [inspector][wasm] Unify locals, stack, and globals objects. 2021-01-11 14:50:40 +00:00
debug-scopes.cc Reland "[runtime] Adds LocalNameIterator" 2022-01-17 17:20:40 +00:00
debug-scopes.h Remove many superfluous STL includes in headers. 2022-01-13 20:56:45 +00:00
debug-stack-trace-iterator.cc [cleanup][objects] Make FunctionKind an enum class 2021-11-16 16:18:28 +00:00
debug-stack-trace-iterator.h [debugger] Remove "Restart frame" feature. 2021-04-29 13:08:14 +00:00
debug-type-profile.cc [wasm][profiler] Fix late enabling of the profiler 2020-11-20 11:09:19 +00:00
debug-type-profile.h [iwyu] Add missing includes of <memory> for std::unique_ptr 2019-09-13 17:13:36 +00:00
debug-wasm-objects-inl.h [wasm-gc][inspector] Debugging support for WasmGC 2021-03-05 10:21:35 +00:00
debug-wasm-objects.cc [wasm-gc] Introduce supertype of all arrays 2022-01-11 13:43:26 +00:00
debug-wasm-objects.h [wasm][debug] Provide WebAssembly Table entries to DevTools 2021-05-20 09:59:09 +00:00
debug-wasm-objects.tq [inspector][wasm] Re-add WasmValue as JSObject subclass. 2021-02-09 05:50:16 +00:00
debug.cc [ext-code-space][cleanup] Remove CodeDataContainer table 2021-12-16 17:32:39 +00:00
debug.h [debugger] Explicitly encode debugger statements in didPause 2021-12-02 10:41:43 +00:00
DIR_METADATA Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
interface-types.h Remove many superfluous STL includes in headers. 2022-01-13 20:56:45 +00:00
liveedit.cc [compiler] Introduce ReusableUnoptimizedCompileState 2021-12-08 11:14:27 +00:00
liveedit.h [debugger] Remove "Restart frame" feature. 2021-04-29 13:08:14 +00:00
OWNERS Add jarin@ to inspector and debug OWNERS. 2021-10-18 07:27:48 +00:00