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

Issue 2449213002: [inspector] migrate scriptParsed and getCompiledScripts to native (Closed)

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

Description

[inspector] migrate scriptParsed and getCompiledScripts to native * Introduced DebugInterface::Script - native wrapper on internal::Script. * Migrated getCompildScripts and scriptParsed to native wrapper. BUG=chromium:652939, v8:5510 R=yangguo@chromium.org,dgozman@chromium.org CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/f7f591ab6b0061abc302120ad3040e51e2c43852 Cr-Commit-Position: refs/heads/master@{#40660}

Patch Set 1 #

Patch Set 2 : fixed endColumn, added script persistent reset, on getCompiledScripts reported only compiled scripts #

Patch Set 3 : less radical approach, expose Script in the same way as v8::Message #

Total comments: 2

Patch Set 4 : addressed comments #

Total comments: 8

Patch Set 5 : addressed comments #

Patch Set 6 : fixed compilation #

Total comments: 4

Patch Set 7 : addressed comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+1005 lines, -146 lines) Patch
M src/api.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M src/api.cc View 1 2 3 4 5 6 1 chunk +127 lines, -0 lines 0 comments Download
M src/debug/debug-interface.h View 1 2 3 4 5 6 2 chunks +38 lines, -0 lines 0 comments Download
M src/inspector/debugger-script.js View 2 chunks +1 line, -77 lines 0 comments Download
M src/inspector/v8-debugger.cc View 1 2 3 4 5 6 3 chunks +23 lines, -26 lines 0 comments Download
M src/inspector/v8-debugger-script.h View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M src/inspector/v8-debugger-script.cc View 1 2 3 4 5 6 1 chunk +53 lines, -41 lines 2 comments Download
A test/inspector/debugger/script-on-after-compile.js View 1 1 chunk +93 lines, -0 lines 0 comments Download
A test/inspector/debugger/script-on-after-compile-expected.txt View 1 1 chunk +664 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 44 (28 generated)
kozy
Dmitry and Yang, please take a look.
4 years, 1 month ago (2016-10-25 20:08:50 UTC) #1
kozy
Ping. I think we can go even further and replace V8DebuggerScript with v8::DebugInterface::Script. Advantages: * ...
4 years, 1 month ago (2016-10-27 21:18:28 UTC) #10
kozy
Please take another look!
4 years, 1 month ago (2016-10-28 01:11:57 UTC) #11
Yang
Sorry for the delay. I have one comment. The script object wrapper in V8 that ...
4 years, 1 month ago (2016-10-28 05:39:25 UTC) #16
kozy
https://codereview.chromium.org/2449213002/diff/40001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/2449213002/diff/40001/src/api.cc#newcode8937 src/api.cc:8937: i::Handle<i::JSObject> wrapper = i::Script::GetWrapper(script); On 2016/10/28 05:39:24, Yang wrote: ...
4 years, 1 month ago (2016-10-28 05:50:44 UTC) #17
Yang
On 2016/10/28 05:50:44, kozyatinskiy wrote: > https://codereview.chromium.org/2449213002/diff/40001/src/api.cc > File src/api.cc (right): > > https://codereview.chromium.org/2449213002/diff/40001/src/api.cc#newcode8937 > ...
4 years, 1 month ago (2016-10-28 05:51:50 UTC) #18
kozy
Addressed comment about PersistentValueVector, and will address other in follow up. Dmitry, please take a ...
4 years, 1 month ago (2016-10-28 18:15:50 UTC) #19
dgozman
https://codereview.chromium.org/2449213002/diff/60001/src/debug/debug-interface.h File src/debug/debug-interface.h (right): https://codereview.chromium.org/2449213002/diff/60001/src/debug/debug-interface.h#newcode143 src/debug/debug-interface.h:143: class Script { What about comments? Do we drop ...
4 years, 1 month ago (2016-10-28 19:57:15 UTC) #24
kozy
All done. Dmitry, please take another look. https://codereview.chromium.org/2449213002/diff/60001/src/debug/debug-interface.h File src/debug/debug-interface.h (right): https://codereview.chromium.org/2449213002/diff/60001/src/debug/debug-interface.h#newcode143 src/debug/debug-interface.h:143: class Script ...
4 years, 1 month ago (2016-10-28 20:59:37 UTC) #25
dgozman
lgtm https://codereview.chromium.org/2449213002/diff/100001/src/debug/debug-interface.h File src/debug/debug-interface.h (right): https://codereview.chromium.org/2449213002/diff/100001/src/debug/debug-interface.h#newcode167 src/debug/debug-interface.h:167: * Return empty local if called with not ...
4 years, 1 month ago (2016-10-28 22:52:52 UTC) #34
kozy
thanks! all done. https://codereview.chromium.org/2449213002/diff/100001/src/debug/debug-interface.h File src/debug/debug-interface.h (right): https://codereview.chromium.org/2449213002/diff/100001/src/debug/debug-interface.h#newcode167 src/debug/debug-interface.h:167: * Return empty local if called ...
4 years, 1 month ago (2016-10-29 01:26:06 UTC) #35
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/2449213002/120001
4 years, 1 month ago (2016-10-29 01:30:23 UTC) #38
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 1 month ago (2016-10-29 02:17:46 UTC) #39
jgruber
A nit drive-by-comment below. LGTM otherwise, nice! https://codereview.chromium.org/2449213002/diff/120001/src/inspector/v8-debugger-script.cc File src/inspector/v8-debugger-script.cc (right): https://codereview.chromium.org/2449213002/diff/120001/src/inspector/v8-debugger-script.cc#newcode94 src/inspector/v8-debugger-script.cc:94: } else ...
4 years, 1 month ago (2016-11-02 08:39:07 UTC) #41
kozy
https://codereview.chromium.org/2449213002/diff/120001/src/inspector/v8-debugger-script.cc File src/inspector/v8-debugger-script.cc (right): https://codereview.chromium.org/2449213002/diff/120001/src/inspector/v8-debugger-script.cc#newcode94 src/inspector/v8-debugger-script.cc:94: } else { On 2016/11/02 08:39:07, jgruber wrote: > ...
4 years, 1 month ago (2016-11-03 00:18:36 UTC) #42
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:17:32 UTC) #44
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/f7f591ab6b0061abc302120ad3040e51e2c43852
Cr-Commit-Position: refs/heads/master@{#40660}

Powered by Google App Engine
This is Rietveld 408576698