v8/test
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
..
benchmarks
cctest [debugger] tuned StepNext and StepOut at return position 2017-03-22 14:16:18 +00:00
common [wasm] Cleanup wasm interpreter 2017-03-14 16:18:18 +00:00
debugger [debugger] tuned StepNext and StepOut at return position 2017-03-22 14:16:18 +00:00
fuzzer [wasm] compile fuzzer: initialize temporary before filling. 2017-03-01 17:33:29 +00:00
inspector [debugger] tuned StepNext and StepOut at return position 2017-03-22 14:16:18 +00:00
intl [test] Fix fullcode and ignition testing variants 2017-03-14 09:59:04 +00:00
js-perf-test [Test] Fix the regex in array JSPerfTest. 2017-03-22 10:09:45 +00:00
memory
message [type-profile] Handle returns correctly. 2017-03-22 11:51:07 +00:00
mjsunit [wasm] Fix test utils and tests 2017-03-22 14:04:10 +00:00
mozilla [regexp] Correct lastIndex behavior in RegExp.prototype[@@replace] 2017-02-16 09:21:37 +00:00
preparser
promises-aplus
simdjs Store the FunctionTemplateInfo used to create remote objects in the map 2017-03-15 15:57:38 +00:00
test262 [test] Mark slow tests 2017-03-15 12:05:12 +00:00
unittests [Interpreter] Introduce strict equality bytecode that does not collect feedback. 2017-03-22 12:31:11 +00:00
webkit [unibrow] remove mongolian vowel separator as white space. 2017-02-28 13:42:29 +00:00
bot_default.gyp
bot_default.isolate
BUILD.gn Remove SIMD.js from V8. 2017-02-14 06:57:25 +00:00
default.gyp
default.isolate
optimize_for_size.gyp
optimize_for_size.isolate
perf.gyp
perf.isolate Remove SIMD.js from V8. 2017-02-14 06:57:25 +00:00