Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(855)

Issue 726643002: harmony-scoping: Implement debugger support for script scope. (Closed)

Created:
6 years, 1 month ago by Dmitry Lomov (no reviews)
Modified:
6 years, 1 month ago
Reviewers:
aandrey, yurys
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Project:
v8
Visibility:
Public.

Description

harmony-scoping: Implement debugger support for script scope. We add a new ScopeType, ScopeType.Script. The scope with ScopeType.Script is always present in the scope chain (ScopeIterator fakes it if neededi - i.e. if ScriptContext for a script has not been allocated since that script has no lexical declarations). ScriptScope reflects ScriptContextTable. R=yurys@chromium.org,yangguo@chromium.org BUG=v8:3690 LOG=N Committed: https://chromium.googlesource.com/v8/v8/+/28dd2e5e435eafe68737695a868cb46f1f9557f6

Patch Set 1 #

Patch Set 2 : Minor nits #

Total comments: 12

Patch Set 3 : Renumbered scope types to be backward-compatible #

Total comments: 2

Patch Set 4 : Rebased patch for landing #

Total comments: 2

Patch Set 5 : Nit + rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+224 lines, -44 lines) Patch
M src/mirror-debugger.js View 1 2 2 chunks +10 lines, -6 lines 0 comments Download
M src/runtime/runtime-debug.cc View 1 2 3 4 15 chunks +80 lines, -5 lines 0 comments Download
M test/cctest/test-debug.cc View 1 2 3 2 chunks +28 lines, -5 lines 0 comments Download
M test/mjsunit/debug-evaluate-locals-optimized.js View 1 2 chunks +8 lines, -6 lines 0 comments Download
M test/mjsunit/debug-evaluate-locals-optimized-double.js View 2 chunks +6 lines, -4 lines 0 comments Download
M test/mjsunit/debug-function-scopes.js View 1 2 5 chunks +17 lines, -11 lines 0 comments Download
M test/mjsunit/debug-scopes.js View 38 chunks +38 lines, -1 line 0 comments Download
M test/mjsunit/es6/generators-debug-scopes.js View 13 chunks +13 lines, -0 lines 0 comments Download
M test/mjsunit/harmony/debug-blockscopes.js View 15 chunks +15 lines, -1 line 0 comments Download
M test/mjsunit/harmony/debug-function-scopes.js View 1 2 5 chunks +9 lines, -5 lines 0 comments Download

Messages

Total messages: 17 (3 generated)
Dmitry Lomov (no reviews)
PTAL
6 years, 1 month ago (2014-11-13 19:28:40 UTC) #1
Dmitry Lomov (no reviews)
Looks like Yang is OOO today. Yury, maybe you could take a look? Thanks
6 years, 1 month ago (2014-11-14 11:49:15 UTC) #3
yurys
+aandrey who worked on the debugger stuff recently.
6 years, 1 month ago (2014-11-14 12:09:50 UTC) #5
yurys
https://codereview.chromium.org/726643002/diff/20001/src/mirror-debugger.js File src/mirror-debugger.js (right): https://codereview.chromium.org/726643002/diff/20001/src/mirror-debugger.js#newcode198 src/mirror-debugger.js:198: Script: 1, This will break DevTools code as we ...
6 years, 1 month ago (2014-11-14 12:25:32 UTC) #6
aandrey
https://codereview.chromium.org/726643002/diff/20001/src/mirror-debugger.js File src/mirror-debugger.js (right): https://codereview.chromium.org/726643002/diff/20001/src/mirror-debugger.js#newcode198 src/mirror-debugger.js:198: Script: 1, Can you add the new scope at ...
6 years, 1 month ago (2014-11-14 12:35:22 UTC) #7
Dmitry Lomov (no reviews)
Addressed comments. https://codereview.chromium.org/726643002/diff/20001/src/mirror-debugger.js File src/mirror-debugger.js (right): https://codereview.chromium.org/726643002/diff/20001/src/mirror-debugger.js#newcode198 src/mirror-debugger.js:198: Script: 1, On 2014/11/14 12:25:32, yurys wrote: ...
6 years, 1 month ago (2014-11-14 13:56:51 UTC) #8
yurys
LGTM. I filed a bug on supporting this in DevTools: https://code.google.com/p/chromium/issues/detail?id=433324. https://codereview.chromium.org/726643002/diff/20001/src/runtime/runtime-debug.cc File src/runtime/runtime-debug.cc (right): ...
6 years, 1 month ago (2014-11-14 15:02:02 UTC) #9
aandrey
let me update DevTools code before landing https://codereview.chromium.org/726643002/diff/20001/test/cctest/test-debug.cc File test/cctest/test-debug.cc (right): https://codereview.chromium.org/726643002/diff/20001/test/cctest/test-debug.cc#newcode7634 test/cctest/test-debug.cc:7634: CHECK_EQ(1, result->Int32Value()); ...
6 years, 1 month ago (2014-11-14 15:58:47 UTC) #10
Dmitry Lomov (no reviews)
Addressed nits and rebased patch for landing. Will wait until DevTools are ready. https://codereview.chromium.org/726643002/diff/20001/test/cctest/test-debug.cc File ...
6 years, 1 month ago (2014-11-14 16:37:27 UTC) #11
aandrey
lgtm https://codereview.chromium.org/726643002/diff/60001/src/runtime/runtime-debug.cc File src/runtime/runtime-debug.cc (right): https://codereview.chromium.org/726643002/diff/60001/src/runtime/runtime-debug.cc#newcode1257 src/runtime/runtime-debug.cc:1257: seen_script_scope_ = scope_type == ScopeTypeScript; can it change ...
6 years, 1 month ago (2014-11-14 19:50:41 UTC) #12
Dmitry Lomov (no reviews)
https://codereview.chromium.org/726643002/diff/60001/src/runtime/runtime-debug.cc File src/runtime/runtime-debug.cc (right): https://codereview.chromium.org/726643002/diff/60001/src/runtime/runtime-debug.cc#newcode1257 src/runtime/runtime-debug.cc:1257: seen_script_scope_ = scope_type == ScopeTypeScript; On 2014/11/14 19:50:41, aandrey ...
6 years, 1 month ago (2014-11-14 20:29:11 UTC) #13
aandrey
Now you can land this.
6 years, 1 month ago (2014-11-17 10:20:08 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/726643002/80001
6 years, 1 month ago (2014-11-17 17:46:38 UTC) #16
commit-bot: I haz the power
6 years, 1 month ago (2014-11-17 17:58:04 UTC) #17
Message was sent while issue was closed.
Committed patchset #5 (id:80001)

Powered by Google App Engine
This is Rietveld 408576698