Description[inspector] added creation frame for async call chains for promises
With creation frame we can show additional information with description of each async stack trace, which could help user to understand where promises were chained.
At least in case of Promise.resolve().then(foo1).then(foo2) we would be able to show following stack trace for break in foo2 callback:
foo2 (test.js:14:2)
-- Promise.resolve (test.js:29:14)--
-- Promise.resolve (test.js:28:14)--
promiseThen (test.js:30:2)
More details: https://docs.google.com/document/d/1u19N45f1gSF7M39mGsycJEK3IPyJgIXCBnWyiPeuJFE
BUG=v8:5738
R=dgozman@chromium.org,gsathya@chromium.org
Review-Url: https://codereview.chromium.org/2648873002
Cr-Commit-Position: refs/heads/master@{#42682}
Committed: https://chromium.googlesource.com/v8/v8/+/b98dd0af92656df4889350e63081552aced61ad7
Patch Set 1 #
Total comments: 2
Patch Set 2 : addressed comments #Patch Set 3 : fixed usage of external reference #
Total comments: 18
Patch Set 4 : rebased #Patch Set 5 : removed redundant async call chains #
Total comments: 1
Patch Set 6 : merge async call chains onle when they have the same description #
Total comments: 14
Patch Set 7 : addressed comments #Patch Set 8 : little fix for test #Patch Set 9 : add test for setTimeout #Depends on Patchset: Messages
Total messages: 35 (23 generated)
|