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

Issue 481005: Extend DebugAgent API with AsyncDebugRunner (Closed)

Created:
11 years ago by Peter Rybin
Modified:
9 years, 7 months ago
Reviewers:
Søren Thygesen Gjesse, Maxim.Mossienko, maxim.mossienko, sgjesse
CC:
v8-dev
Visibility:
Public.

Description

Extend DebugAgent API with AsyncDebugRunner

Patch Set 1 #

Patch Set 2 : clean-up #

Patch Set 3 : clean-up #

Total comments: 6

Patch Set 4 : drop wait_for_connection featur #

Patch Set 5 : default value, comment #

Patch Set 6 : small fix #

Patch Set 7 : convert class to pointer to functionx #

Patch Set 8 : drop build file #

Patch Set 9 : documentation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -5 lines) Patch
M include/v8-debug.h View 1 2 3 4 5 6 7 8 2 chunks +15 lines, -1 line 0 comments Download
M src/api.cc View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M src/debug.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M src/debug.cc View 1 2 3 4 5 6 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
Peter Rybin
Hi Soren I'm preparing sample for standalone V8 application. For this sample I'd like 2 ...
11 years ago (2009-12-09 20:16:30 UTC) #1
Maxim.Mossienko
As to CL#435003 (several v8 instances in process) there is no much difference to hold ...
11 years ago (2009-12-09 22:26:33 UTC) #2
Søren Thygesen Gjesse
Sorry for the delay - please use my @chromium.org address (I should get the @gmail.com ...
11 years ago (2009-12-10 14:58:09 UTC) #3
Peter Rybin
On 2009/12/09 22:26:33, Maxim.Mossienko wrote: > As to CL#435003 (several v8 instances in process) there ...
11 years ago (2009-12-10 20:30:08 UTC) #4
Peter Rybin
http://codereview.chromium.org/481005/diff/2001/2002 File include/v8-debug.h (right): http://codereview.chromium.org/481005/diff/2001/2002#newcode85 include/v8-debug.h:85: * pending. On 2009/12/10 14:58:11, Søren Gjesse wrote: > ...
11 years ago (2009-12-10 21:00:17 UTC) #5
Peter Rybin
I have split the change in two. From now on, "wait for connection" feature is ...
11 years ago (2009-12-10 21:09:49 UTC) #6
Peter Rybin
> Sorry for the delay - please use my @chromium.org address (I should get the ...
11 years ago (2009-12-10 21:13:05 UTC) #7
Maxim.Mossienko
11 years ago (2009-12-10 21:25:22 UTC) #8
Context dependent function callbacks have "client_data" or "context" parameter
which usually passed during callback registration, it turns out to be the same
thing as abstract class but more archaic :). 

Anyway, the question of what type of callback to use seems to be matter of style
and preserving compile time compatibility IMO is more important (the latter is
broken as current version of patch).
By later reason patch CL#435003 does not change any api signature and at time of
your/other api call particular V8 instance to be used is supposed to be already
chosen.

On 2009/12/10 20:30:08, Peter Rybin wrote:
> On 2009/12/09 22:26:33, Maxim.Mossienko wrote:
> > As to CL#435003 (several v8 instances in process) there is no much
difference
> to
> > hold function pointer or instance of abstract class inside V8Context.
> 
> Soren, Maxim
> 
> Let me explain my point about point function vs. pointer to object of abstract
> class in more words.
> 
> What seems important to me is that object can hold some data, while function
> cannot.
> If you should have N instances of V8 (like with CL#435003), you can provide N
> different instances of abstract class, but you can't provide N different
> functions.
> And in function you'll have a challenge to tell which instance of V8 it should
> work with and furthermore to get some embedder-specific data for this
instance.
> 
> On the other hand functions may be a bit more cheaper, but since we are
talking
> about debugging, it doesn't really make sense.

Powered by Google App Engine
This is Rietveld 408576698