v8/src/debug
Simon Zünd 8c3da74f18 Use correct native context when instantiating AccessorPairs
This CL changes the way AccessorPairs are collected for instantiation
when debug break trampolines are installed.
Instead of walking the heap and looking at AccessorPairs directly, we
look at all JSObjects and collect AccessorPairs via each objects
descriptor array. This way, we can associate the correct native
context with each collected AccessorPair.

The current native context is not always the correct context to instantiate
the getter and setter JSFunctions for an AccessorPair.

Bug: chromium:986063
Change-Id: I124a0802f4938b95f1ad75efc65eb05b66bcfc67
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1735310
Commit-Queue: Simon Zünd <szuend@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#63071}
2019-08-05 11:25:48 +00:00
..
arm Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
arm64 Move architecture dependent files 2019-05-28 14:02:15 +00:00
ia32 Move relevant files to src/execution 2019-05-22 08:36:33 +00:00
mips Move architecture dependent files 2019-05-28 14:02:15 +00:00
mips64 Move architecture dependent files 2019-05-28 14:02:15 +00:00
ppc Move relevant files to src/execution 2019-05-22 08:36:33 +00:00
s390 Move architecture dependent files 2019-05-28 14:02:15 +00:00
x64 Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
debug-coverage.cc Enable cpplint 'runtime/references' warning 2019-07-08 09:59:36 +00:00
debug-coverage.h Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
debug-evaluate.cc [builtins] Fix correctness failure for GetOwnPropertyNames builtin 2019-07-18 07:35:47 +00:00
debug-evaluate.h [cleanup] Reduce frames.h include ball from 686 to ~270 2019-07-12 10:20:41 +00:00
debug-frames.cc [class] parse private accessors 2019-07-30 13:26:01 +00:00
debug-frames.h [cleanup] Reduce frames.h include ball from 686 to ~270 2019-07-12 10:20:41 +00:00
debug-interface.h Enable cpplint 'runtime/references' warning 2019-07-08 09:59:36 +00:00
debug-property-iterator.cc Fix inspector preview for detached JSTypedArray 2019-06-18 20:26:48 +00:00
debug-property-iterator.h Move handles-related files to src/handles 2019-05-23 06:00:15 +00:00
debug-scope-iterator.cc Move relevant files to src/execution 2019-05-22 08:36:33 +00:00
debug-scope-iterator.h [cleanup] Reduce frames.h include ball from 686 to ~270 2019-07-12 10:20:41 +00:00
debug-scopes.cc [class] parse private accessors 2019-07-30 13:26:01 +00:00
debug-scopes.h [cleanup] Reduce frames.h include ball from 686 to ~270 2019-07-12 10:20:41 +00:00
debug-stack-trace-iterator.cc [class] parse private accessors 2019-07-30 13:26:01 +00:00
debug-stack-trace-iterator.h Move relevant files to src/execution 2019-05-22 08:36:33 +00:00
debug-type-profile.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
debug-type-profile.h Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
debug.cc Use correct native context when instantiating AccessorPairs 2019-08-05 11:25:48 +00:00
debug.h [cleanup] Reduce frames.h include ball from 686 to ~270 2019-07-12 10:20:41 +00:00
interface-types.h Move remaining files in src/ 2019-05-24 18:24:36 +00:00
liveedit.cc [cleanup] Reduce frames.h include ball from 686 to ~270 2019-07-12 10:20:41 +00:00
liveedit.h Move remaining files in src/ 2019-05-24 18:24:36 +00:00
OWNERS Remove 'set noparent' from OWNERS files where reasonable 2019-06-03 10:18:22 +00:00