v8/test/inspector/debugger
kozyatinskiy cb545a8c0c [inspector] change target promise for kDebugWillHandle & kDebugDidHandle
- kDebugPromiseCreated(task, parent_task)
This event occurs when promise is created (PromiseHookType::Init). V8Debugger uses this event to maintain task -> parent task map.

- kDebugEnqueueAsyncFunction(task)
This event occurs when first internal promise for async function is created. V8Debugger collects stack trace at this point.

- kDebugEnqueuePromiseResolve(task),
This event occurs when Promise fulfills with resolved status. V8Debugger collects stack trace at this point.

- kDebugEnqueuePromiseReject(task),
This event occurs when Promise fulfills with rejected status. V8Debugger collects stack trace at this point.

- kDebugPromiseCollected,
This event occurs when Promise is collected and no other chained callbacks can be added. V8Debugger removes information about async task for this promise.

- kDebugWillHandle,
This event occurs when chained promise function (either resolve or reject handler) is called. V8Debugger installs parent promise's stack (based on task -> parent_task map) as current if available or current promise's scheduled stack otherwise.

- kDebugDidHandle,
This event occurs after chained promise function has finished. V8Debugger restores asynchronous call chain to previous one.

With this change all instrumentation calls are related to current promise (before WillHandle and DidHandle were related to next async task).

Before V8Debugger supported only the following:
- asyncTaskScheduled(task1)
- asyncTaskStarted(task1)
- asyncTaskFinished(task1)

Now V8Debugger supports the following:
- asyncTaskScheduled(parent_task)
..
- asyncTaskCreated(task, parent_task),
- asyncTaskStarted(task), uses parent_task scheduled stack
- asyncTaskScheduled(task)
- asyncTaskFinished(task)

Additionally: WillHandle and DidHandle were migrated to PromiseHook API.

More details: https://docs.google.com/document/d/1u19N45f1gSF7M39mGsycJEK3IPyJgIXCBnWyiPeuJFE

BUG=v8:5738
R=dgozman@chromium.org,gsathya@chromium.org,yangguo@chromium.org

Review-Url: https://codereview.chromium.org/2650803003
Cr-Commit-Position: refs/heads/master@{#42644}
2017-01-25 07:05:43 +00:00
..
access-obsolete-frame-expected.txt [inspector] added inspector test runner [part 5] 2016-10-02 21:23:03 +00:00
access-obsolete-frame.js [inspector] Make InspectorTest.sendCommand* private 2016-10-03 23:33:07 +00:00
asm-js-breakpoint-before-exec-expected.txt [asm.js] [inspector-test] Avoid breakpoint on "use asm" statement 2017-01-04 13:29:35 +00:00
asm-js-breakpoint-before-exec.js [asm.js] [inspector-test] Avoid breakpoint on "use asm" statement 2017-01-04 13:29:35 +00:00
asm-js-breakpoint-during-exec-expected.txt Fix detection of BUILTIN functions 2016-10-28 06:48:44 +00:00
asm-js-breakpoint-during-exec.js Fix detection of BUILTIN functions 2016-10-28 06:48:44 +00:00
asm-js-stack-expected.txt [debug] [reland] Consistently use script from FrameMirror 2016-10-18 08:19:28 +00:00
asm-js-stack.js [debug] [reland] Consistently use script from FrameMirror 2016-10-18 08:19:28 +00:00
async-console-count-doesnt-crash-expected.txt [inspector] test for fixed empty stack processing in console.count 2016-10-03 21:10:53 +00:00
async-console-count-doesnt-crash.js [inspector] Make InspectorTest.sendCommand* private 2016-10-03 23:33:07 +00:00
async-instrumentation-expected.txt [inspector] change target promise for kDebugWillHandle & kDebugDidHandle 2017-01-25 07:05:43 +00:00
async-instrumentation.js [inspector] change target promise for kDebugWillHandle & kDebugDidHandle 2017-01-25 07:05:43 +00:00
async-promise-late-then-expected.txt [inspector] async stacks for Promise.then calls... 2017-01-10 12:54:12 +00:00
async-promise-late-then.js [inspector] async stacks for Promise.then calls... 2017-01-10 12:54:12 +00:00
async-set-timeout-expected.txt [inspector] add async instrumentation for setTimeout in tests 2016-12-13 19:41:22 +00:00
async-set-timeout.js [inspector] add async instrumentation for setTimeout in tests 2016-12-13 19:41:22 +00:00
async-stack-await-expected.txt [inspector] async stacks for Promise.then calls... 2017-01-10 12:54:12 +00:00
async-stack-await.js [inspector] async stacks for Promise.then calls... 2017-01-10 12:54:12 +00:00
async-stack-for-promise-expected.txt [inspector] async stacks for Promise.then calls... 2017-01-10 12:54:12 +00:00
async-stack-for-promise.js [inspector] async stacks for Promise.then calls... 2017-01-10 12:54:12 +00:00
async-stacks-limit-expected.txt [inspector] introduce limit for amount of stored async stacks 2016-12-18 17:04:40 +00:00
async-stacks-limit.js [inspector] introduce limit for amount of stored async stacks 2016-12-18 17:04:40 +00:00
break-on-exception-expected.txt [inspector] move changeBreakpointState from debugger-script to native 2016-10-19 02:00:57 +00:00
break-on-exception.js [inspector] move changeBreakpointState from debugger-script to native 2016-10-19 02:00:57 +00:00
call-frame-function-location-expected.txt [inspector] added inspector test runner [part 5] 2016-10-02 21:23:03 +00:00
call-frame-function-location.js [inspector] Make InspectorTest.sendCommand* private 2016-10-03 23:33:07 +00:00
caught-uncaught-exceptions-expected.txt [inspector] Add exception caught/uncaught status to protocol 2016-11-10 07:58:48 +00:00
caught-uncaught-exceptions.js [inspector] Add exception caught/uncaught status to protocol 2016-11-10 07:58:48 +00:00
command-line-api-with-bound-function-expected.txt [inspector] fix test expectations for command-line-api-with-bound-function 2016-10-06 16:20:15 +00:00
command-line-api-with-bound-function.js [inspector] command line api debug and monitor works with bound functions 2016-10-05 17:59:06 +00:00
continue-to-location-expected.txt [inspector] added inspector test runner [part 5] 2016-10-02 21:23:03 +00:00
continue-to-location.js [inspector] Make InspectorTest.sendCommand* private 2016-10-03 23:33:07 +00:00
doesnt-step-into-injected-script-expected.txt [inspector] added inspector test runner [part 5] 2016-10-02 21:23:03 +00:00
doesnt-step-into-injected-script.js [inspector] Make InspectorTest.sendCommand* private 2016-10-03 23:33:07 +00:00
eval-scopes-expected.txt [debug] Add Eval scope type to inspector protocol 2016-11-23 07:30:23 +00:00
eval-scopes.js [debug] Add Eval scope type to inspector protocol 2016-11-23 07:30:23 +00:00
framework-break-expected.txt [inspector] implemented blackboxing inside v8 2017-01-24 01:50:25 +00:00
framework-break.js [inspector] implemented blackboxing inside v8 2017-01-24 01:50:25 +00:00
framework-precise-ranges-expected.txt [inspector] implemented blackboxing inside v8 2017-01-24 01:50:25 +00:00
framework-precise-ranges.js [inspector] implemented blackboxing inside v8 2017-01-24 01:50:25 +00:00
framework-stepping-expected.txt [inspector] implemented blackboxing inside v8 2017-01-24 01:50:25 +00:00
framework-stepping.js [inspector] implemented blackboxing inside v8 2017-01-24 01:50:25 +00:00
get-possible-breakpoints-array-literal-expected.txt Compiling an array literal should be context-independent. 2016-11-14 10:46:33 +00:00
get-possible-breakpoints-array-literal.js Compiling an array literal should be context-independent. 2016-11-14 10:46:33 +00:00
get-possible-breakpoints-expected.txt [inspector] fixed Debugger.getPossibleBreakpoints 2016-12-01 00:26:37 +00:00
get-possible-breakpoints.js [inspector] fix positions for single expression arrow function 2016-11-09 15:37:14 +00:00
inspector-break-api-expected.txt [inspector] expose V8InspectorSession::breakProgram in test harness. 2017-01-18 16:57:00 +00:00
inspector-break-api.js [inspector] expose V8InspectorSession::breakProgram in test harness. 2017-01-18 16:57:00 +00:00
object-preview-internal-properties-expected.txt Re-land of Use parenthesis in descriptions for array/map/set lengths/sizes 2016-12-02 01:26:45 +00:00
object-preview-internal-properties.js [inspector] filter useless in preview internal properties 2016-10-07 01:16:28 +00:00
pause-on-oom-expected.txt [inspector] unconditionally pause on OOM 2017-01-18 21:35:09 +00:00
pause-on-oom.js [inspector] unconditionally pause on OOM 2017-01-18 21:35:09 +00:00
scope-skip-variables-with-empty-name-expected.txt [inspector] Make InspectorTest.sendCommand* private 2016-10-03 23:33:07 +00:00
scope-skip-variables-with-empty-name.js [inspector] Make InspectorTest.sendCommand* private 2016-10-03 23:33:07 +00:00
script-on-after-compile-expected.txt [debugger] simplify fetching scripts for inspector. 2016-11-04 13:55:26 +00:00
script-on-after-compile.js [debugger] simplify fetching scripts for inspector. 2016-11-04 13:55:26 +00:00
script-parsed-for-runtime-evaluate-expected.txt [inspector] introduced Script::TYPE_INSPECTOR 2016-11-17 04:39:47 +00:00
script-parsed-for-runtime-evaluate.js [inspector] introduced Script::TYPE_INSPECTOR 2016-11-17 04:39:47 +00:00
script-parsed-hash-expected.txt [inspector] added inspector test runner [part 5] 2016-10-02 21:23:03 +00:00
script-parsed-hash.js [inspector] Make InspectorTest.sendCommand* private 2016-10-03 23:33:07 +00:00
set-blackbox-patterns-expected.txt [inspector] added inspector test runner [part 5] 2016-10-02 21:23:03 +00:00
set-blackbox-patterns.js [inspector] Make InspectorTest.sendCommand* private 2016-10-03 23:33:07 +00:00
set-breakpoint-before-enabling-expected.txt Roll third_party/inspector_protocol to cf45a6e89b17cdc9eeacdef4c003fcc55f7ec2a0 2016-11-01 22:33:39 +00:00
set-breakpoint-before-enabling.js [inspector] Make InspectorTest.sendCommand* private 2016-10-03 23:33:07 +00:00
set-script-source-expected.txt [inspector] added inspector test runner [part 5] 2016-10-02 21:23:03 +00:00
set-script-source.js [inspector] Make InspectorTest.sendCommand* private 2016-10-03 23:33:07 +00:00
step-over-caught-exception-expected.txt [inspector] added inspector test runner [part 5] 2016-10-02 21:23:03 +00:00
step-over-caught-exception.js [inspector] Make InspectorTest.sendCommand* private 2016-10-03 23:33:07 +00:00
stepping-after-get-possible-breakpoints-expected.txt [inspector] fixed Debugger.getPossibleBreakpoints 2016-12-01 00:26:37 +00:00
stepping-after-get-possible-breakpoints.js [inspector] fixed Debugger.getPossibleBreakpoints 2016-12-01 00:26:37 +00:00
stepping-with-blackboxed-ranges-expected.txt [inspector] added inspector test runner [part 5] 2016-10-02 21:23:03 +00:00
stepping-with-blackboxed-ranges.js [inspector] implemented blackboxing inside v8 2017-01-24 01:50:25 +00:00
suspended-generator-scopes-expected.txt [inspector] Expose scopes for suspended generator objects 2016-11-24 07:32:40 +00:00
suspended-generator-scopes.js [inspector] Expose scopes for suspended generator objects 2016-11-24 07:32:40 +00:00
update-call-frame-scopes-expected.txt [inspector] added inspector test runner [part 5] 2016-10-02 21:23:03 +00:00
update-call-frame-scopes.js [inspector] Make InspectorTest.sendCommand* private 2016-10-03 23:33:07 +00:00
wasm-scripts-expected.txt [wasm] Enforce that function bodies end with the \"end\" opcode. 2017-01-15 21:18:53 +00:00
wasm-scripts.js [wasm] Rename wasm::LocalType to wasm::ValueType and kAst* to kWasm* 2016-12-21 13:43:00 +00:00
wasm-source-expected.txt [wasm] Enforce that function bodies end with the \"end\" opcode. 2017-01-15 21:18:53 +00:00
wasm-source.js [wasm] Rename wasm::LocalType to wasm::ValueType and kAst* to kWasm* 2016-12-21 13:43:00 +00:00
wasm-stack-expected.txt [wasm] Enforce that function bodies end with the \"end\" opcode. 2017-01-15 21:18:53 +00:00
wasm-stack.js [wasm] Rename wasm::LocalType to wasm::ValueType and kAst* to kWasm* 2016-12-21 13:43:00 +00:00