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

Issue 2107673003: Add an API to create a detached global object (Closed)

Created:
4 years, 5 months ago by jochen (gone - plz use gerrit)
Modified:
4 years, 5 months ago
Reviewers:
dcheng, Toon Verwaest
CC:
dcheng, haraken, Paweł Hajdan Jr., v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Add an API to create a detached global object Such an object can be used to later create a context from it. It has to have access checks with handlers enabled, as it cannot be accessed otherwise. BUG=chromium:618305 R=verwaest@chromium.org Committed: https://crrev.com/0058f82e2c47b8e12428cbb37093d10eaa4a8064 Cr-Commit-Position: refs/heads/master@{#37594}

Patch Set 1 #

Total comments: 3

Patch Set 2 : rebase #

Total comments: 3

Patch Set 3 : updates #

Total comments: 1

Patch Set 4 : updates #

Patch Set 5 : updates #

Total comments: 1

Patch Set 6 : updates #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+336 lines, -74 lines) Patch
M include/v8.h View 1 2 3 4 1 chunk +26 lines, -5 lines 1 comment Download
M src/api.cc View 1 2 3 7 chunks +83 lines, -20 lines 0 comments Download
M src/bootstrapper.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M src/bootstrapper.cc View 1 2 3 4 5 6 chunks +77 lines, -0 lines 0 comments Download
M src/counters.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/factory.h View 1 3 chunks +5 lines, -7 lines 0 comments Download
M src/factory.cc View 1 2 3 2 chunks +10 lines, -8 lines 0 comments Download
M test/cctest/test-access-checks.cc View 1 2 3 4 5 10 chunks +130 lines, -34 lines 0 comments Download

Messages

Total messages: 18 (4 generated)
jochen (gone - plz use gerrit)
4 years, 5 months ago (2016-06-28 14:23:15 UTC) #1
jochen (gone - plz use gerrit)
https://codereview.chromium.org/2107673003/diff/1/src/api-natives.cc File src/api-natives.cc (right): https://codereview.chromium.org/2107673003/diff/1/src/api-natives.cc#newcode585 src/api-natives.cc:585: prototype = isolate->factory()->null_value(); we can't create a prototype object ...
4 years, 5 months ago (2016-06-28 14:27:00 UTC) #2
dcheng
https://codereview.chromium.org/2107673003/diff/20001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/2107673003/diff/20001/include/v8.h#newcode7160 include/v8.h:7160: Local<ObjectTemplate> global_template); Will there be an alternate way of ...
4 years, 5 months ago (2016-06-28 15:23:53 UTC) #4
jochen (gone - plz use gerrit)
https://codereview.chromium.org/2107673003/diff/20001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/2107673003/diff/20001/include/v8.h#newcode7160 include/v8.h:7160: Local<ObjectTemplate> global_template); On 2016/06/28 at 15:23:53, dcheng wrote: > ...
4 years, 5 months ago (2016-06-28 15:26:02 UTC) #5
Toon Verwaest
Mostly looking good https://codereview.chromium.org/2107673003/diff/20001/src/api-natives.cc File src/api-natives.cc (right): https://codereview.chromium.org/2107673003/diff/20001/src/api-natives.cc#newcode549 src/api-natives.cc:549: Handle<JSFunction> ApiNatives::CreateApiFunctionWithMap( I'd prefer it if ...
4 years, 5 months ago (2016-06-30 14:46:17 UTC) #6
jochen (gone - plz use gerrit)
ptal
4 years, 5 months ago (2016-07-01 08:49:48 UTC) #7
Toon Verwaest
looks good, but the api function should probably be something like RemoteGlobal which gets in ...
4 years, 5 months ago (2016-07-06 15:34:35 UTC) #8
jochen (gone - plz use gerrit)
changed the API as discussed + new tests
4 years, 5 months ago (2016-07-07 09:01:25 UTC) #9
Toon Verwaest
lgtm with one last comment https://codereview.chromium.org/2107673003/diff/80001/src/bootstrapper.cc File src/bootstrapper.cc (right): https://codereview.chromium.org/2107673003/diff/80001/src/bootstrapper.cc#newcode4037 src/bootstrapper.cc:4037: isolate->bootstrapper()->DetachGlobal(env); Why do you ...
4 years, 5 months ago (2016-07-07 11:15:26 UTC) #10
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/2107673003/100001
4 years, 5 months ago (2016-07-07 19:09:55 UTC) #13
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 5 months ago (2016-07-07 19:37:10 UTC) #14
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-07 19:37:15 UTC) #15
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/0058f82e2c47b8e12428cbb37093d10eaa4a8064 Cr-Commit-Position: refs/heads/master@{#37594}
4 years, 5 months ago (2016-07-07 19:38:17 UTC) #17
dcheng
4 years, 5 months ago (2016-07-11 07:07:45 UTC) #18
Message was sent while issue was closed.
https://codereview.chromium.org/2107673003/diff/100001/include/v8.h
File include/v8.h (right):

https://codereview.chromium.org/2107673003/diff/100001/include/v8.h#newcode7184
include/v8.h:7184: * It is possible, however, the create a new context from the
global object
I think there might be a typo in this comment?

Powered by Google App Engine
This is Rietveld 408576698