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

Issue 11087020: Add an API to let the embedder associate arbitrary data with a v8::Context. (Closed)

Created:
8 years, 2 months ago by abarth-chromium
Modified:
8 years, 2 months ago
Reviewers:
Sven Panne, danno
CC:
v8-dev
Visibility:
Public.

Description

Add an API to let the embedder associate arbitrary data with a v8::Context. I had hoped that v8::Context::SetData would let the embedder associate a void* with a v8::Context, but it turns out we can't use that API because the debugger makes assumptions about the sorts of values that will be stored via that API. See https://bugs.webkit.org/show_bug.cgi?id=98679 for more context.

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Add an API to let the embedder associate arbitrary data with a v8::Context. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -0 lines) Patch
M include/v8.h View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M src/api.cc View 1 2 1 chunk +23 lines, -0 lines 0 comments Download
M src/contexts.h View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
abarth-chromium
8 years, 2 months ago (2012-10-09 00:13:57 UTC) #1
Sven Panne
I took a look into the WebKit issue, and I think that your problems are ...
8 years, 2 months ago (2012-10-09 06:30:47 UTC) #2
abarth-chromium
On 2012/10/09 06:30:47, Sven Panne wrote: > I took a look into the WebKit issue, ...
8 years, 2 months ago (2012-10-09 07:05:47 UTC) #3
abarth-chromium
Add an API to let the embedder associate arbitrary data with a v8::Context. I had ...
8 years, 2 months ago (2012-10-09 07:26:55 UTC) #4
abarth-chromium
I've updated the patch to re-phrase the API in terms of void* rather than Handle<Value>. ...
8 years, 2 months ago (2012-10-09 07:29:28 UTC) #5
Sven Panne
Extending the Context API with yet another field (of different type) is not very nice, ...
8 years, 2 months ago (2012-10-09 08:35:11 UTC) #6
abarth-chromium
8 years, 2 months ago (2012-10-09 15:42:02 UTC) #7
> If this is OK, I think I can implement all this in the new one or two days...

Sure, that sounds great.  Thanks for giving this issue some attention!

Powered by Google App Engine
This is Rietveld 408576698