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

Issue 2571743002: [serializer] API to re-use global proxy in v8::Context::FromSnapshot. (Closed)

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

Description

[serializer] API to re-use global proxy in v8::Context::FromSnapshot. R=jochen@chromium.org, peria@chromium.org BUG=chromium:617892 Committed: https://crrev.com/449829b85ccb8e76ae5b2aafed65606e275a9bd1 Cr-Commit-Position: refs/heads/master@{#41668}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -43 lines) Patch
M include/v8.h View 2 chunks +6 lines, -3 lines 0 comments Download
M src/api.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M src/bootstrapper.cc View 7 chunks +33 lines, -21 lines 0 comments Download
M src/contexts.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/snapshot/partial-serializer.cc View 1 chunk +1 line, -3 lines 0 comments Download
M src/snapshot/snapshot-common.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M test/cctest/test-serialize.cc View 1 chunk +31 lines, -9 lines 0 comments Download

Messages

Total messages: 22 (8 generated)
Yang
4 years ago (2016-12-13 07:58:33 UTC) #1
peria
Thank you for this fix! It works well. LGTM
4 years ago (2016-12-13 08:14:32 UTC) #2
jochen (gone - plz use gerrit)
lgtm
4 years ago (2016-12-13 11:17:39 UTC) #7
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/2571743002/1
4 years ago (2016-12-13 11:22:47 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-13 11:24:33 UTC) #12
peria
On 2016/12/13 08:14:32, peria wrote: > Thank you for this fix! > It works well. ...
4 years ago (2016-12-13 11:25:01 UTC) #13
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/449829b85ccb8e76ae5b2aafed65606e275a9bd1 Cr-Commit-Position: refs/heads/master@{#41668}
4 years ago (2016-12-13 11:25:10 UTC) #15
Yang
On 2016/12/13 11:25:10, commit-bot: I haz the power wrote: > Patchset 1 (id:??) landed as ...
4 years ago (2016-12-13 11:27:17 UTC) #16
Yang
On 2016/12/13 11:27:17, Yang wrote: > On 2016/12/13 11:25:10, commit-bot: I haz the power wrote: ...
4 years ago (2016-12-13 11:29:21 UTC) #17
peria
On 2016/12/13 11:29:21, Yang wrote: > On 2016/12/13 11:27:17, Yang wrote: > > On 2016/12/13 ...
4 years ago (2016-12-13 11:44:16 UTC) #18
Yang
On 2016/12/13 11:44:16, peria wrote: > On 2016/12/13 11:29:21, Yang wrote: > > On 2016/12/13 ...
4 years ago (2016-12-13 11:50:00 UTC) #19
Yang
On 2016/12/13 11:50:00, Yang wrote: > On 2016/12/13 11:44:16, peria wrote: > > On 2016/12/13 ...
4 years ago (2016-12-13 11:51:10 UTC) #20
peria
On 2016/12/13 11:51:10, Yang wrote: > On 2016/12/13 11:50:00, Yang wrote: > > On 2016/12/13 ...
4 years ago (2016-12-13 11:59:57 UTC) #21
peria
4 years ago (2016-12-13 13:12:12 UTC) #22
Message was sent while issue was closed.
On 2016/12/13 11:59:57, peria wrote:
> On 2016/12/13 11:51:10, Yang wrote:
> > On 2016/12/13 11:50:00, Yang wrote:
> > > On 2016/12/13 11:44:16, peria wrote:
> > > > On 2016/12/13 11:29:21, Yang wrote:
> > > > > On 2016/12/13 11:27:17, Yang wrote:
> > > > > > On 2016/12/13 11:25:10, commit-bot: I haz the power wrote:
> > > > > > > Patchset 1 (id:??) landed as
> > > > > > > https://crrev.com/449829b85ccb8e76ae5b2aafed65606e275a9bd1
> > > > > > > Cr-Commit-Position: refs/heads/master@{#41668}
> > > > > > 
> > > > > > Thanks. I'll investigate that some more. Do you have a repro?
> > > > > 
> > > > > I think it only works if you reuse the global object on a context from
> the
> > > > same
> > > > > snapshot.
> > > > 
> > > > Update the wip CL (PS6) https://codereview.chromium.org/2309163002/
> > > > For the first call, must we use the global object in the snapshot?
> > > > If yes, how can we do it?
> > > 
> > > For the first call, call FromSnapshot with just the index, and provide no
> > global
> > > object. For the second call, use the global object from the first call.
See
> > test
> > > case.
> > 
> > This is similar to the restriction we have for Context::New that requires
the
> > global object in the second call to be from the same object template as the
> > first call.
> 
> Ah, right.  It works.  Thank you very much!

Looking in detail, it didn't work and failed in the CHECK in #13.
In succeeded cases, it ran with Context::New() as a fall back.

Powered by Google App Engine
This is Rietveld 408576698