v8/test/inspector/debugger
Caitlin Potter c6540ab1b7 [es6] don't use do-expressions to desugar ES6 classes
Removes the do-expression wrapping, modifies BytecodeGenerator change
to enter a class literal's block scope if needed.

This does not solve the actual bug in v8:6322, but helps mitigate it in
simple cases. The bug is caused by BytecodeGenerator not allocating a
large enough array of context registers to hold its entire stack,
allowing non-context registers to be overwritten during PushContext and
PopContext bytecodes.

Nevertheless, I like the idea of not depending on do-expressions when
possible, so I think it's worth doing anyways.

BUG=v8:6322
R=rmcilroy@chromium.org, marja@chromium.org, littledan@chromium.org

Change-Id: I82b7569db2a0eead1694bd04765fc4456c2f1a0a
Reviewed-on: https://chromium-review.googlesource.com/491074
Commit-Queue: Caitlin Potter <caitp@igalia.com>
Reviewed-by: Marja Hölttä <marja@chromium.org>
Reviewed-by: Ross McIlroy <rmcilroy@chromium.org>
Reviewed-by: Daniel Ehrenberg <littledan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#45110}
2017-05-04 18:49:50 +00:00
..
resources [inspector] added master test for break locations 2017-02-27 20:20:39 +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] added reconnect method for tests 2017-02-28 20:22:24 +00:00
async-for-await-of-promise-stack-expected.txt [builtins] add exception predictions for AsyncFromSyncIterator methods 2017-03-13 11:10:38 +00:00
async-for-await-of-promise-stack.js [builtins] add exception predictions for AsyncFromSyncIterator methods 2017-03-13 11:10:38 +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] added reconnect method for tests 2017-02-28 20:22:24 +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] added reconnect method for tests 2017-02-28 20:22:24 +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] added reconnect method for tests 2017-02-28 20:22:24 +00:00
async-stack-await-expected.txt [inspector] added creation frame for async call chains for promises 2017-01-26 09:32:37 +00:00
async-stack-await.js [inspector] added reconnect method for tests 2017-02-28 20:22:24 +00:00
async-stack-created-frame-expected.txt [inspector] added creation frame for async call chains for promises 2017-01-26 09:32:37 +00:00
async-stack-created-frame.js [inspector] added reconnect method for tests 2017-02-28 20:22:24 +00:00
async-stack-for-promise-expected.txt [inspector] added creation frame for async call chains for promises 2017-01-26 09:32:37 +00:00
async-stack-for-promise.js [inspector] added reconnect method for tests 2017-02-28 20:22:24 +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] added reconnect method for tests 2017-02-28 20:22:24 +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-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] merged IsSubjectToDebugging and IsBlackboxed and fixed issue 2017-03-10 17:44:35 +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] added reconnect method for tests 2017-02-28 20:22:24 +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 [test/inspector] remove any usage of v8::Extension 2017-04-21 23:41:07 +00:00
collect-old-async-call-chains-expected.txt [inspector] better stacks for promises 2017-04-28 21:07:01 +00:00
collect-old-async-call-chains.js [test/inspector] remove any usage of v8::Extension 2017-04-21 23:41:07 +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] added reconnect method for tests 2017-02-28 20:22:24 +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
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] improved V8Debugger::breakProgram method 2017-04-25 22:55: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] changed a way of preserving stepping between tasks 2017-03-22 16:20:54 +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] added reconnect method for tests 2017-02-28 20:22:24 +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] added reconnect method for tests 2017-02-28 20:22:24 +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 [test/inspector] remove any usage of v8::Extension 2017-04-21 23:41:07 +00:00
framework-break.js [test/inspector] remove any usage of v8::Extension 2017-04-21 23:41:07 +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 [test/inspector] remove any usage of v8::Extension 2017-04-21 23:41:07 +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] added reconnect method for tests 2017-02-28 20:22:24 +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 [test/inspector] remove any usage of v8::Extension 2017-04-21 23:41:07 +00:00
get-possible-breakpoints-array-literal-expected.txt [inspector] added type of break location into getPossibleBreakpoints output 2017-03-06 20:47:55 +00:00
get-possible-breakpoints-array-literal.js [inspector] added test infrastructure and test for es6 modules 2017-01-31 00:19:41 +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] entered into context before getPossibleBreakpoints call 2017-05-01 19:44:13 +00:00
get-possible-breakpoints-master-expected.txt [es6] don't use do-expressions to desugar ES6 classes 2017-05-04 18:49:50 +00:00
get-possible-breakpoints-master.js Adjust some tests to prepare enabling Ignition+TurboFan 2017-03-07 13:27:55 +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] added reconnect method for tests 2017-02-28 20:22:24 +00:00
get-possible-breakpoints.js [inspector] added reconnect method for tests 2017-02-28 20:22:24 +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 [test/inspector] remove any usage of v8::Extension 2017-04-21 23:41:07 +00:00
max-async-call-chain-depth-expected.txt [inspector] store creation stack in current V8StackTraceImpl 2017-04-12 19:02:58 +00:00
max-async-call-chain-depth.js [inspector] store creation stack in current V8StackTraceImpl 2017-04-12 19:02:58 +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] added reconnect method for tests 2017-02-28 20:22:24 +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] Enable debugger/pause-on-oom test with larger heap limit. 2017-03-02 17:49:15 +00:00
pause.js [inspector] V8DebuggerAgent should not resume break in different group 2017-04-25 21:35:59 +00:00
promise-chain-when-limit-hit-expected.txt [inspector] better stacks for promises 2017-04-28 21:07:01 +00:00
promise-chain-when-limit-hit.js [inspector] better stacks for promises 2017-04-28 21:07:01 +00:00
protocol-string-to-double-locale-expected.txt Roll third_party/inspector_protocol to efefa86c3183d307f0a0e53bf568fe57c5b58849 2017-04-28 01:43:03 +00:00
protocol-string-to-double-locale.js Roll third_party/inspector_protocol to efefa86c3183d307f0a0e53bf568fe57c5b58849 2017-04-28 01:43:03 +00:00
restore-breakpoint-expected.txt [inspector] restore provisional breakpoints smarter 2017-02-28 16:14:27 +00:00
restore-breakpoint.js [inspector] added reconnect method for tests 2017-02-28 20:22:24 +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 [debugger] tuned StepNext and StepOut at return position 2017-03-22 14:16:18 +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] support setTimeout in Debugger.scheduleStepIntoAsync method 2017-03-30 14:42:24 +00:00
schedule-step-into-async.js [inspector] introduced Debugger.scheduleStepIntoAsync 2017-03-06 16:28:21 +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-end-location-expected.txt [inspector] fixed endLine in Debugger.scriptParsed event 2017-03-03 06:58:11 +00:00
script-end-location.js [inspector] fixed endLine in Debugger.scriptParsed event 2017-03-03 06:58:11 +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 [Devtools] Add stacktrace to protocol for scriptParsed event 2017-03-16 23:34:11 +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 [Devtools] Add stacktrace to protocol for scriptParsed event 2017-03-16 23:34:11 +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-async-call-stack-depth-expected.txt [inspector] avoid cloning of async call chains 2017-04-18 15:53:08 +00:00
set-async-call-stack-depth.js [inspector] avoid cloning of async call chains 2017-04-18 15:53:08 +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-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] added reconnect method for tests 2017-02-28 20:22:24 +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
side-effect-free-debug-evaluate-expected.txt [debugger] expose side-effect free evaluate to inspector. 2017-02-10 17:06:22 +00:00
side-effect-free-debug-evaluate.js [Flags] Add negation implications for --turbo negative so --no-turbo works. 2017-03-07 20:41:12 +00:00
step-into-expected.txt [es6] don't use do-expressions to desugar ES6 classes 2017-05-04 18:49:50 +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 [debugger] correctly find inner function scope. 2017-03-14 16:35:19 +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] added reconnect method for tests 2017-02-28 20:22:24 +00:00
step-into.js Adjust some tests to prepare enabling Ignition+TurboFan 2017-03-07 13:27:55 +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] added test for StepOut at return postion from async function 2017-03-28 21:14:19 +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] changed a way of preserving stepping between tasks 2017-03-22 16:20:54 +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
step-snapshot-expected.txt [inspector] always include user scripts in the snapshot. 2017-04-26 15:13:14 +00:00
step-snapshot.js [inspector] always include user scripts in the snapshot. 2017-04-26 15:13:14 +00:00
stepping-after-get-possible-breakpoints-expected.txt [inspector] changed a way of preserving stepping between tasks 2017-03-22 16:20:54 +00:00
stepping-after-get-possible-breakpoints.js [inspector] fixed Debugger.getPossibleBreakpoints 2016-12-01 00:26:37 +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 [test/inspector] remove any usage of v8::Extension 2017-04-21 23:41:07 +00:00
stepping-ignores-injected-script-expected.txt [inspector] added flag for injected-script-source debugging 2017-03-22 17:36:55 +00:00
stepping-ignores-injected-script.js [inspector] added flag for injected-script-source debugging 2017-03-22 17:36:55 +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] follow up for e27d18c943 2017-03-22 18:07:12 +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
stepping-with-exposed-injected-script-expected.txt [inspector] added flag for injected-script-source debugging 2017-03-22 17:36:55 +00:00
stepping-with-exposed-injected-script.js [inspector] added flag for injected-script-source debugging 2017-03-22 17:36:55 +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] follow up for e27d18c943 2017-03-22 18:07:12 +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] fixed suspended-generator-scopes.js with --aways-opt 2017-03-29 19:40:20 +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-get-breakable-locations-expected.txt [wasm] Implement extensible name section 2017-04-07 16:31:47 +00:00
wasm-get-breakable-locations.js [inspector] added reconnect method for tests 2017-02-28 20:22:24 +00:00
wasm-imports-expected.txt [wasm] Show interpreted frames on captured stack traces 2017-03-14 10:23:20 +00:00
wasm-imports.js [wasm] Fix importing wasm functions which are being debugged 2017-03-03 12:38:41 +00:00
wasm-scripts-expected.txt [wasm] Implement extensible name section 2017-04-07 16:31:47 +00:00
wasm-scripts.js [inspector] added reconnect method for tests 2017-02-28 20:22:24 +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 [inspector] added reconnect method for tests 2017-02-28 20:22:24 +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 [inspector] added reconnect method for tests 2017-02-28 20:22:24 +00:00
wasm-stepping-expected.txt [wasm] Provide scope information via inspector 2017-04-13 09:00:02 +00:00
wasm-stepping.js [wasm] Provide scope information via inspector 2017-04-13 09:00:02 +00:00