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

Issue 1015643002: Provide method for getting Isolate by v8::Message (Closed)

Created:
5 years, 9 months ago by yurys
Modified:
5 years, 9 months ago
Reviewers:
dcarney, aandrey, Yang
CC:
v8-dev, Paweł Hajdan Jr.
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Provide method for getting Isolate by v8::Message v8::Message::GetIsolate will allow to avoid v8::Isolate::GetCurrent calls in Blink message listeners. BUG=None LOG=Y

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -0 lines) Patch
M include/v8.h View 1 chunk +5 lines, -0 lines 0 comments Download
M src/api.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M test/cctest/test-api.cc View 6 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (1 generated)
yurys
5 years, 9 months ago (2015-03-17 09:07:52 UTC) #2
dcarney
lgtm
5 years, 9 months ago (2015-03-17 09:14:05 UTC) #3
dcarney
On 2015/03/17 09:14:05, dcarney wrote: > lgtm it would be preferred to pass the isolate ...
5 years, 9 months ago (2015-03-17 09:16:02 UTC) #4
yurys
On 2015/03/17 09:16:02, dcarney wrote: > On 2015/03/17 09:14:05, dcarney wrote: > > lgtm > ...
5 years, 9 months ago (2015-03-17 10:17:17 UTC) #5
dcarney
> It would work either way, I don't have strong opinion on that. I'd rather ...
5 years, 9 months ago (2015-03-17 10:25:25 UTC) #6
yurys
On 2015/03/17 10:25:25, dcarney wrote: > > It would work either way, I don't have ...
5 years, 9 months ago (2015-03-17 10:30:12 UTC) #7
dcarney
On 2015/03/17 10:30:12, yurys wrote: > On 2015/03/17 10:25:25, dcarney wrote: > > > It ...
5 years, 9 months ago (2015-03-17 10:31:01 UTC) #8
yurys
5 years, 9 months ago (2015-03-17 10:31:38 UTC) #9
On 2015/03/17 10:31:01, dcarney wrote:
> On 2015/03/17 10:30:12, yurys wrote:
> > On 2015/03/17 10:25:25, dcarney wrote:
> > > > It would work either way, I don't have strong opinion on that. I'd
rather
> > > > incorporate error object passed as a separate parameter to
MessageCallback
> > > into
> > > > Message object and have MessageCallback accept single parameter. What's
> the
> > > > advantage of passing Isolate as a separate parameter?
> > > 
> > > it's more consistent with the rest of the api.  we try to pass isolate as
> the
> > > first parameter.  sometimes it's not worth the trouble to change the api. 
> > since
> > > i don't know how these callbacks are used in blink, i don't know how
> > complicated
> > > it would be
> > 
> > It should be fairly simple. The callbacks are added in V8Initializer.cpp,
one
> > for worker isolate, another for main thread.
> 
> okay, i'll just convert them for consistency

Thanks. I'm closing this issue then.

Powered by Google App Engine
This is Rietveld 408576698