v8/test/debugger
Caitlin Potter 267115da42 [parser] avoid complex for-loop desugaring when possible
let/const declarations in "standard" C-style for-loops have
some complex desugaring to accommodate the case where loop
loop variables may be captured. This slows down the baseline
performance of for-loops with let variables.

This change attempts to avoid this desugaring if it's known that
the loop variable is not captured at any point. A side effect of
this change is that let/const loop variables, when not captured
within the loop body, are not necessarily shown in the debugger,
similar to other stack-allocated vars.

BUG=v8:4762, v8:5460
R=marja@chromium.org, adamk@chromium.org, yangguo@chromium.org

Change-Id: I8dbe545a12c086f675972bdba60c94998268311a
Reviewed-on: https://chromium-review.googlesource.com/472247
Commit-Queue: Caitlin Potter <caitp@igalia.com>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Reviewed-by: Adam Klein <adamk@chromium.org>
Reviewed-by: Marja Hölttä <marja@chromium.org>
Cr-Commit-Position: refs/heads/master@{#44731}
2017-04-19 19:08:40 +00:00
..
bugs/harmony [debug-wrapper] migrate some scope related tests 2016-12-14 07:20:33 +00:00
debug [parser] avoid complex for-loop desugaring when possible 2017-04-19 19:08:40 +00:00
protocol [debugger] basic test infrastructure for new debugger test api. 2016-10-21 06:38:05 +00:00
regress [debugger] fix switch block source positions. 2017-03-13 12:47:48 +00:00
wrapper [debugger] Various break-related functionality in test wrapper 2016-10-28 08:18:34 +00:00
debugger.gyp [debugger] basic test infrastructure for new debugger test api. 2016-10-21 06:38:05 +00:00
debugger.isolate [build] Remove remaining disable-inspector options in GN 2017-04-05 17:59:07 +00:00
debugger.status Revert "Skip flaky debug-scopes test" 2017-04-04 14:27:12 +00:00
test-api.js [debug] Handle OOM events in debugger tests 2017-02-16 11:48:22 +00:00
testcfg.py [inspector] add scope type for modules. 2016-12-16 14:28:56 +00:00