• Alexey Kozyatinskiy's avatar
    [inspector] reworked async stack instrumentation for async functions · b6c9086c
    Alexey Kozyatinskiy authored
    New intstrumentation consists of:
    - kAsyncFunctionSuspended when async function is suspended on await
      (called on each await),
    - kAsyncFunctionFinished when async function is finished.
    
    Old instrumentation was based on reusing async function promise.
    Using this promise produces couple side effects:
    - for any promise instrumentation we first need to check if it is
      special case for async function promise or not - it requires
      expensive reading from promise object.
    - we capture stack for async functions even if it does not contain
      awaits.
    - we do not properly cancel async task created for async function.
    
    New intsrumntation resolved all these problems as well as provide
    clear mapping between async task and generator which we can use later
    to fetch scope information for async functions on pause.
    
    R=dgozman@chromium.org,yangguo@chromium.org
    
    Bug: v8:7078
    Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel
    Change-Id: Ifdcec947d91e6e3d4d5f9029bc080a19b8e23d41
    Reviewed-on: https://chromium-review.googlesource.com/1043096Reviewed-by: 's avatarSathya Gunasekaran <gsathya@chromium.org>
    Reviewed-by: 's avatarBenedikt Meurer <bmeurer@chromium.org>
    Reviewed-by: 's avatarDmitry Gozman <dgozman@chromium.org>
    Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#53445}
    b6c9086c
Name
Last commit
Last update
benchmarks Loading commit data...
build_overrides Loading commit data...
docs Loading commit data...
gni Loading commit data...
include Loading commit data...
infra Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
testing Loading commit data...
third_party Loading commit data...
tools Loading commit data...
.clang-format Loading commit data...
.editorconfig Loading commit data...
.git-blame-ignore-revs Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gn Loading commit data...
.vpython Loading commit data...
.ycm_extra_conf.py Loading commit data...
AUTHORS Loading commit data...
BUILD.gn Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE.fdlibm Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
README.md Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...
snapshot_toolchain.gni Loading commit data...