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

Issue 2447073007: [debugger] Various break-related functionality in test wrapper (Closed)

Created:
4 years, 1 month ago by jgruber
Modified:
4 years, 1 month ago
Reviewers:
Yang
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[debugger] Various break-related functionality in test wrapper This CL adds simple implementation of break and stepping-related functionality as required by the debug-step.js test. This includes * stepOver, stepInto, stepOut * setBreakPoint * clearBreakPoint * evaluate Some of these, e.g. setBreakPoint are not fully implemented for all cases but only for the ones we need right now. One interesting result of this is that using the inspector protocol is roughly 14x slower for debug-step.js (14s instead of 0.5s). One cause of this seems to be iteration over all object properties in toProtocolValue, which is used to serialize JS objects before being sent over the wire (e.g. FrameMirrors). This is something that should be fixed at some point. In the meantime, the test now runs 100 instead of 1000 iterations. BUG=v8:5530 Committed: https://crrev.com/83b560b0e5cf69cdd489ae318d3bdbf229b82932 Cr-Commit-Position: refs/heads/master@{#40636}

Patch Set 1 #

Patch Set 2 : Port further tests, wrap listener invocation, add --allow-natives-syntax to test-runner default fla… #

Total comments: 2

Patch Set 3 : Remove uses of script wrapper #

Patch Set 4 : Move DebugEvent to DebugWrapper to preserve old API #

Unified diffs Side-by-side diffs Delta from patch set Stats (+464 lines, -416 lines) Patch
M src/runtime/runtime.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M src/runtime/runtime-debug.cc View 1 2 9 chunks +83 lines, -34 lines 0 comments Download
M src/runtime/runtime-function.cc View 1 2 2 chunks +15 lines, -1 line 0 comments Download
A test/debugger/debugger/debug-step.js View 1 2 3 1 chunk +43 lines, -0 lines 0 comments Download
A test/debugger/debugger/debug-step-2.js View 1 2 3 1 chunk +61 lines, -0 lines 0 comments Download
A test/debugger/debugger/debug-step-3.js View 1 2 3 1 chunk +68 lines, -0 lines 0 comments Download
A test/debugger/debugger/debug-step-4.js View 1 2 3 1 chunk +80 lines, -0 lines 0 comments Download
M test/debugger/test-api.js View 1 2 3 3 chunks +90 lines, -21 lines 0 comments Download
M test/debugger/testcfg.py View 1 1 chunk +1 line, -1 line 0 comments Download
A test/debugger/wrapper/break-on-debugger-stmt.js View 1 2 3 1 chunk +20 lines, -0 lines 0 comments Download
M test/debugger/wrapper/enable-disable.js View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
D test/mjsunit/debug-step.js View 1 chunk +0 lines, -72 lines 0 comments Download
D test/mjsunit/debug-step-2.js View 1 1 chunk +0 lines, -89 lines 0 comments Download
D test/mjsunit/debug-step-3.js View 1 1 chunk +0 lines, -94 lines 0 comments Download
D test/mjsunit/debug-step-4.js View 1 1 chunk +0 lines, -103 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 20 (13 generated)
jgruber
This includes a bit more functionality around breakpoints, stepping and evaluation. Any ideas for a ...
4 years, 1 month ago (2016-10-27 14:13:41 UTC) #4
Yang
Very nice! LGTM. https://codereview.chromium.org/2447073007/diff/20001/test/debugger/test-api.js File test/debugger/test-api.js (right): https://codereview.chromium.org/2447073007/diff/20001/test/debugger/test-api.js#newcode61 test/debugger/test-api.js:61: assertTrue(!!script.id); This still relies on the ...
4 years, 1 month ago (2016-10-28 05:51:06 UTC) #11
jgruber
https://codereview.chromium.org/2447073007/diff/20001/test/debugger/test-api.js File test/debugger/test-api.js (right): https://codereview.chromium.org/2447073007/diff/20001/test/debugger/test-api.js#newcode61 test/debugger/test-api.js:61: assertTrue(!!script.id); On 2016/10/28 05:51:06, Yang wrote: > This still ...
4 years, 1 month ago (2016-10-28 07:36:27 UTC) #13
Yang
On 2016/10/28 07:36:27, jgruber wrote: > https://codereview.chromium.org/2447073007/diff/20001/test/debugger/test-api.js > File test/debugger/test-api.js (right): > > https://codereview.chromium.org/2447073007/diff/20001/test/debugger/test-api.js#newcode61 > ...
4 years, 1 month ago (2016-10-28 07:44:56 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2447073007/60001
4 years, 1 month ago (2016-10-28 07:45:33 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-10-28 08:18:15 UTC) #18
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:16:21 UTC) #20
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/83b560b0e5cf69cdd489ae318d3bdbf229b82932
Cr-Commit-Position: refs/heads/master@{#40636}

Powered by Google App Engine
This is Rietveld 408576698