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

Issue 2451893005: [DONT COMMIT] Inspector: Change V8InspectorClient to support Worklets [2] (Closed)

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

Description

Inspector: Change V8InspectorClient to support Worklets [2] After this change, V8InspectClient passes contextGroupId via quitMessageLoopOnPause() like other methods. WorkerThreadDebugger needs this to forward a quit operation to an appropriate worker context. See [3] for details. [1] Chromium: https://codereview.chromium.org/2469233002/ [2] V8: THIS PATCH [3] Chromium: https://codereview.chromium.org/2456733002/ BUG=646559

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -2 lines) Patch
M include/v8-inspector.h View 1 chunk +1 line, -1 line 2 comments Download
M src/inspector/v8-debugger.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 11 (9 generated)
dgozman
https://codereview.chromium.org/2451893005/diff/60001/include/v8-inspector.h File include/v8-inspector.h (right): https://codereview.chromium.org/2451893005/diff/60001/include/v8-inspector.h#newcode166 include/v8-inspector.h:166: virtual void quitMessageLoopOnPause(int contextGroupId) {} V8Inspector guarantees that quitMessageLoopOnPause ...
4 years, 1 month ago (2016-11-02 17:13:47 UTC) #10
nhiroki
4 years, 1 month ago (2016-11-04 11:30:30 UTC) #11
https://codereview.chromium.org/2451893005/diff/60001/include/v8-inspector.h
File include/v8-inspector.h (right):

https://codereview.chromium.org/2451893005/diff/60001/include/v8-inspector.h#...
include/v8-inspector.h:166: virtual void quitMessageLoopOnPause(int
contextGroupId) {}
On 2016/11/02 17:13:47, dgozman wrote:
> V8Inspector guarantees that quitMessageLoopOnPause is not reentrant and thus
it
> is always called for the same context group as runMessageLoopOnPause.
> 
> Embedder can just store pausedContextGroupId and use it in
> quitMessageLoopOnPause.
> 
> Since everything is run on the same isolate, all the groups will be
essentially
> paused at the same time anyway. We only use this group id to resume from
> embedder when the paused frame is removed.

Thank you for the clarification. I'll address this in the 3rd CL :)

Powered by Google App Engine
This is Rietveld 408576698