v8/test/inspector/debugger
jarin a957b0f424 Make non-Module generators only context allocate parameters.
In particular, local variables should be allocated on stack (in bytecode register), and stored/loaded to the generator object on generator suspend/resume.

The CL is based on @adamk's change to scoping/parsers (https://chromium-review.googlesource.com/c/498538/), I only made the debugger cope with this change.

I should note that the CL changes the scope type of suspended generators from ScopeType.Closure to ScopeType.Local. In the future we might want to introduce ScopeType.SuspendedGenerator to make the distinction explicit.

Some of the changes in the tests have been made because the debugger functions do not return scopes of closed generators anymore. Generators should be allowed to throw away their internal state when they finish.

BUG=v8:6368

Review-Url: https://codereview.chromium.org/2898163002
Cr-Commit-Position: refs/heads/master@{#45515}
2017-05-24 13:54:57 +00:00
..
resources [inspector] added master test for break locations 2017-02-27 20:20:39 +00:00
access-obsolete-frame-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
access-obsolete-frame.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +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 [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +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 [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
asm-js-stack-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
asm-js-stack.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +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] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
async-for-await-of-promise-stack-expected.txt [inspector] use creation stack trace as parent for async call chains 2017-05-11 19:21:24 +00:00
async-for-await-of-promise-stack.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
async-instrumentation-expected.txt [inspector] use creation stack trace as parent for async call chains 2017-05-11 19:21:24 +00:00
async-instrumentation.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
async-promise-late-then-expected.txt [inspector] use creation stack trace as parent for async call chains 2017-05-11 19:21:24 +00:00
async-promise-late-then.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +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] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
async-stack-await-expected.txt [inspector] use creation stack trace as parent for async call chains 2017-05-11 19:21:24 +00:00
async-stack-await.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
async-stack-created-frame-expected.txt [inspector] use creation stack trace as parent for async call chains 2017-05-11 19:21:24 +00:00
async-stack-created-frame.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
async-stack-for-promise-expected.txt [inspector] use creation stack trace as parent for async call chains 2017-05-11 19:21:24 +00:00
async-stack-for-promise.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
break-on-exception-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
break-on-exception.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
call-frame-function-location-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
call-frame-function-location.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
caught-exception-from-framework-inside-async-expected.txt [inspector] merged IsSubjectToDebugging and IsBlackboxed and fixed issue 2017-03-10 17:44:35 +00:00
caught-exception-from-framework-inside-async.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +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] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
collect-obsolete-async-tasks-expected.txt [inspector] removed kDebugPromiseCollected event 2017-04-20 15:49:02 +00:00
collect-obsolete-async-tasks.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
collect-old-async-call-chains-expected.txt [inspector] use creation stack trace as parent for async call chains 2017-05-11 19:21:24 +00:00
collect-old-async-call-chains.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
command-line-api-with-bound-function-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
command-line-api-with-bound-function.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
continue-to-location-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
continue-to-location-target-call-frames-expected.txt [inspector] added targetCallFrames for continueToLocation 2017-05-16 21:52:49 +00:00
continue-to-location-target-call-frames.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
continue-to-location.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
destory-in-break-program-expected.txt [inspector] improved V8Debugger::breakProgram method 2017-04-25 22:55:45 +00:00
destory-in-break-program.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
doesnt-step-into-injected-script-expected.txt [inspector] changed a way of preserving stepping between tasks 2017-03-22 16:20:54 +00:00
doesnt-step-into-injected-script.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
es6-module-script-parsed-expected.txt [inspector] added length for scriptParsed notification 2017-03-07 22:01:37 +00:00
es6-module-script-parsed.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
es6-module-set-script-source-expected.txt [inspector] return meaningful error on Debug.setScriptSource for ES module 2017-02-03 22:10:04 +00:00
es6-module-set-script-source.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
eval-scopes-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
eval-scopes.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
for-of-loops-expected.txt [inspector] removed call break location from for-of loop 2017-05-24 12:12:53 +00:00
for-of-loops.js [inspector] removed call break location from for-of loop 2017-05-24 12:12:53 +00:00
framework-break-expected.txt [test/inspector] remove any usage of v8::Extension 2017-04-21 23:41:07 +00:00
framework-break.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
framework-nested-scheduled-break-expected.txt [test/inspector] remove any usage of v8::Extension 2017-04-21 23:41:07 +00:00
framework-nested-scheduled-break.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +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] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
framework-stepping-expected.txt [test/inspector] remove any usage of v8::Extension 2017-04-21 23:41:07 +00:00
framework-stepping.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
get-possible-breakpoints-array-literal-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
get-possible-breakpoints-array-literal.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
get-possible-breakpoints-expected.txt [inspector] use BREAK_POSITION_ALIGNED for breakpoints 2017-02-24 02:01:26 +00:00
get-possible-breakpoints-lazy-error-expected.txt [inspector] entered into context before getPossibleBreakpoints call 2017-05-01 19:44:13 +00:00
get-possible-breakpoints-lazy-error.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
get-possible-breakpoints-master-expected.txt [inspector] removed call break location from for-of loop 2017-05-24 12:12:53 +00:00
get-possible-breakpoints-master.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
get-possible-breakpoints-restrict-to-function-expected.txt [inspector] added restrictToFunction flag for getPossibleBreakpoints 2017-02-27 16:53:03 +00:00
get-possible-breakpoints-restrict-to-function.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
get-possible-breakpoints.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
inspector-break-api-expected.txt [test/inspector] remove any usage of v8::Extension 2017-04-21 23:41:07 +00:00
inspector-break-api.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
max-async-call-chain-depth-expected.txt [inspector] use creation stack trace as parent for async call chains 2017-05-11 19:21:24 +00:00
max-async-call-chain-depth.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
object-preview-internal-properties-expected.txt [inspector] introduced v8::debug::EntriesPreview for inspector 2017-02-07 07:46:21 +00:00
object-preview-internal-properties.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
pause-expected.txt [inspector] V8DebuggerAgent should not resume break in different group 2017-04-25 21:35:59 +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] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
pause.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
promise-chain-when-limit-hit-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
promise-chain-when-limit-hit.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
protocol-string-to-double-locale-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
protocol-string-to-double-locale.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
restore-breakpoint-expected.txt [inspector] restore provisional breakpoints smarter 2017-02-28 16:14:27 +00:00
restore-breakpoint.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
return-break-locations-expected.txt [debugger] tuned StepNext and StepOut at return position 2017-03-22 14:16:18 +00:00
return-break-locations.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
schedule-step-into-async-expected.txt [inspector] introduced Debugger.scheduleStepIntoAsync 2017-03-06 16:28:21 +00:00
schedule-step-into-async-set-timeout-expected.txt [inspector] support setTimeout in Debugger.scheduleStepIntoAsync method 2017-03-30 14:42:24 +00:00
schedule-step-into-async-set-timeout.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
schedule-step-into-async.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
scope-skip-variables-with-empty-name-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
scope-skip-variables-with-empty-name.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
script-end-location-expected.txt [inspector] fixed endLine in Debugger.scriptParsed event 2017-03-03 06:58:11 +00:00
script-end-location.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
script-on-after-compile-expected.txt [Devtools] Add stacktrace to protocol for scriptParsed event 2017-03-16 23:34:11 +00:00
script-on-after-compile.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
script-parsed-for-runtime-evaluate-expected.txt [Devtools] Add stacktrace to protocol for scriptParsed event 2017-03-16 23:34:11 +00:00
script-parsed-for-runtime-evaluate.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
script-parsed-hash-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
script-parsed-hash.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
set-async-call-stack-depth-expected.txt [inspector] use creation stack trace as parent for async call chains 2017-05-11 19:21:24 +00:00
set-async-call-stack-depth.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
set-blackbox-patterns-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
set-blackbox-patterns.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
set-breakpoint-before-enabling-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
set-breakpoint-before-enabling.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
set-script-source-exception-expected.txt [inspector] return meaningful error on Debug.setScriptSource for ES module 2017-02-03 22:10:04 +00:00
set-script-source-exception.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
set-script-source-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
set-script-source.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
side-effect-free-debug-evaluate-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
side-effect-free-debug-evaluate.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
step-into-expected.txt [inspector] removed call break location from for-of loop 2017-05-24 12:12:53 +00:00
step-into-nested-arrow-expected.txt [debugger] correctly find inner function scope. 2017-03-14 16:35:19 +00:00
step-into-nested-arrow.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
step-into-next-script-expected.txt [inspector] changed a way of preserving stepping between tasks 2017-03-22 16:20:54 +00:00
step-into-next-script.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
step-into.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
step-out-async-await-expected.txt [inspector] added test for StepOut at return postion from async function 2017-03-28 21:14:19 +00:00
step-out-async-await.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
step-over-another-context-group-expected.txt [inspector] changed a way of preserving stepping between tasks 2017-03-22 16:20:54 +00:00
step-over-another-context-group.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
step-over-caught-exception-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
step-over-caught-exception.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
step-snapshot-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
step-snapshot.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
stepping-after-get-possible-breakpoints-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
stepping-after-get-possible-breakpoints.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
stepping-and-break-program-api-expected.txt [test/inspector] remove any usage of v8::Extension 2017-04-21 23:41:07 +00:00
stepping-and-break-program-api.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
stepping-ignores-injected-script-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
stepping-ignores-injected-script.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
stepping-tail-call-expected.txt [debugger] tuned StepNext and StepOut at return position 2017-03-22 14:16:18 +00:00
stepping-tail-call.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
stepping-with-blackboxed-ranges-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
stepping-with-blackboxed-ranges.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
stepping-with-exposed-injected-script-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
stepping-with-exposed-injected-script.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
stepping-with-natives-and-frameworks-expected.txt [debugger] tuned StepNext and StepOut at return position 2017-03-22 14:16:18 +00:00
stepping-with-natives-and-frameworks.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
suspended-generator-scopes-expected.txt Make non-Module generators only context allocate parameters. 2017-05-24 13:54:57 +00:00
suspended-generator-scopes.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
update-call-frame-scopes-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
update-call-frame-scopes.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
wasm-get-breakable-locations-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
wasm-get-breakable-locations.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
wasm-imports-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
wasm-imports.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
wasm-scripts-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
wasm-scripts.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
wasm-source-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
wasm-source.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
wasm-stack-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
wasm-stack.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
wasm-stepping-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
wasm-stepping.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00