v8/test/debugger/debug/es6
kozyatinskiy e27d18c943 [debugger] tuned StepNext and StepOut at return position
Proposed behaviour:
- StepNext at return position go into next function call (no changes with current behavior, but implemented in v8::Debug instead of hack on inspector side);
- StepOut at return position go into next non-current function call.

We need this to have better stepping in cases with native functions, blackboxed functions and/or different embedder calls (e.g. event listeners).

New behavior could be illustrated with two examples (for more see stepping-with-natives-and-frameworks test):
- let's assume that we've blackboxed callAll function, this function just takes its arguments and call one after another:
var foo = () => 1;
callAll(foo, foo, () => 2);
If we break inside of first call of function foo. Then on..
..StepNext - we're able to reach second call of function foo,
..StepOut - we're able to reach () => 2 call.

- let's consider case with native function:
[1,2,3].map(x => x * 2)
If we break inside of first callback call, then with StepNext we can iterate through all calls of callback, with StepOut we go to next statement after .map call.

Implementation details:
- when we request break we schedule step-in function call for any step action at return position and for step-in at any position,
- when we request StepOut at return position - we mark current function as needed-to-be-ignored inside of PrepareStepIn(function) call,
- when we request StepOut at not return position - we set break at return position and ask debugger to just repeat last step action on next stepping-related break.

Design doc: https://docs.google.com/document/d/1ihXHOIhP_q-fJCA0e2EiXz_Zr3B08KMjaPifcaqZ60Q/edit

BUG=v8:6118,chromium:583193
R=dgozman@chromium.org,yangguo@chromium.org

Review-Url: https://codereview.chromium.org/2758483002
Cr-Commit-Position: refs/heads/master@{#44028}
2017-03-22 14:16:18 +00:00
..
debug-promises [debug-wrapper] AsyncTaskEvent event type 2016-11-28 09:31:50 +00:00
regress [debug-wrapper] Further extend the debug wrapper 2016-11-16 08:34:44 +00:00
debug-blockscopes.js [tests] Cleanup tests that use assertOptimized()/assertUnoptimized(). 2017-01-26 17:39:09 +00:00
debug-break-default-constructor.js [debugger] Migrate more debugger tests to inspector 2016-11-08 10:39:08 +00:00
debug-evaluate-arrow-function-receiver.js [debug-wrapper] Further extend the debug wrapper 2016-11-16 08:34:44 +00:00
debug-evaluate-blockscopes.js [debugger] remove debugger statement support from FCG/CS. 2017-02-22 08:45:09 +00:00
debug-evaluate-receiver-before-super.js [debug-wrapper] Further extend the debug wrapper 2016-11-16 08:34:44 +00:00
debug-exception-generators.js [debug-wrapper] Further extend the debug wrapper 2016-11-16 08:34:44 +00:00
debug-function-scopes.js [debug-wrapper] Migrate more tests 2016-11-22 12:44:18 +00:00
debug-liveedit-new-target-1.js [liveedit] reimplement frame restarting. 2017-01-27 07:31:03 +00:00
debug-liveedit-new-target-2.js [liveedit] reimplement frame restarting. 2017-01-27 07:31:03 +00:00
debug-liveedit-new-target-3.js [liveedit] reimplement frame restarting. 2017-01-27 07:31:03 +00:00
debug-scope-default-param-with-eval.js [debug-wrapper] Adapt tests, breakpoint.actual_location 2016-11-21 09:29:17 +00:00
debug-step-destructuring-assignment.js [debugger] Migrate more debugger tests to inspector 2016-11-08 10:39:08 +00:00
debug-step-destructuring-bind.js [debugger] Migrate more debugger tests to inspector 2016-11-08 10:39:08 +00:00
debug-step-into-class-extends.js [debugger] Migrate more debugger tests to inspector 2016-11-08 10:39:08 +00:00
debug-step-into-constructor.js [debugger] Migrate more debugger tests to inspector 2016-11-08 10:39:08 +00:00
debug-step-into-regexp-subclass.js [debugger] Migrate more debugger tests to inspector 2016-11-08 10:39:08 +00:00
debug-stepin-collections-foreach.js [debugger] Migrate more debugger tests to inspector 2016-11-08 10:39:08 +00:00
debug-stepin-default-parameters.js [debug-wrapper] Further extend the debug wrapper 2016-11-16 08:34:44 +00:00
debug-stepin-generators.js [debugger] step-next across yield should not leave the generator. 2016-11-21 11:05:08 +00:00
debug-stepin-microtasks.js [debugger] tuned StepNext and StepOut at return position 2017-03-22 14:16:18 +00:00
debug-stepin-proxies.js [debug-wrapper] Further extend the debug wrapper 2016-11-16 08:34:44 +00:00
debug-stepin-string-template.js [debug-wrapper] Further extend the debug wrapper 2016-11-16 08:34:44 +00:00
debug-stepin-tailcalls.js [debugger] Migrate more debugger tests to inspector 2016-11-08 10:39:08 +00:00
debug-stepnext-for.js [debug-wrapper] Further extend the debug wrapper 2016-11-16 08:34:44 +00:00
debug-stepnext-generators.js [debugger] step-next across yield should not leave the generator. 2016-11-21 11:05:08 +00:00
debug-stepout-tailcalls.js [debugger] Migrate more debugger tests to inspector 2016-11-08 10:39:08 +00:00
default-parameters-debug.js [ignition/turbo] Perform liveness analysis on the bytecodes 2016-11-29 12:27:15 +00:00
generators-debug-liveedit.js [liveedit] reimplement frame restarting. 2017-01-27 07:31:03 +00:00
generators-debug-scopes.js [debug-wrapper] migrate some scope related tests 2016-12-14 07:20:33 +00:00
generators-relocation.js [debugger] Migrate more debugger tests to inspector 2016-11-08 10:39:08 +00:00