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

Issue 10907189: Let the embedder store arbitrary Values via Context::SetData (Closed)

Created:
8 years, 3 months ago by abarth-chromium
Modified:
8 years, 3 months ago
Reviewers:
Sven Panne, danno
CC:
haraken1, Vyacheslav Egorov (Google)
Base URL:
http://git.chromium.org/external/v8.git@master
Visibility:
Public.

Description

Let the embedder store arbitrary Values via Context::SetData In WebKit, we would like to store a void* to a data structure that contains lots of exciting per-context data. The current API restricts us to storing only Strings, which is less useful. I've also cleaned up the implementation of GetData to be less convoluted. Committed: https://code.google.com/p/v8/source/detail?r=12520

Patch Set 1 #

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

Messages

Total messages: 6 (0 generated)
abarth-chromium
@vegorov: Feel free to bounce this to another reviewer. I'm not sure who to send ...
8 years, 3 months ago (2012-09-12 00:54:42 UTC) #1
abarth-chromium
I'm told danno needs to review this path because it touches the API.
8 years, 3 months ago (2012-09-12 01:05:13 UTC) #2
Sven Panne
Just a few drive-by comments... A more general note: Our API is very inconsistent regarding ...
8 years, 3 months ago (2012-09-13 07:39:28 UTC) #3
abarth-chromium
> A more general note: Our API is very inconsistent regarding the types of > ...
8 years, 3 months ago (2012-09-13 07:42:59 UTC) #4
danno
lgtm LGTM https://chromiumcodereview.appspot.com/10907189/diff/1/src/api.cc File src/api.cc (right): https://chromiumcodereview.appspot.com/10907189/diff/1/src/api.cc#newcode785 src/api.cc:785: if (!env->IsNativeContext()) { It's probably outside of ...
8 years, 3 months ago (2012-09-14 13:15:13 UTC) #5
abarth-chromium
8 years, 3 months ago (2012-09-14 17:45:22 UTC) #6
> LGTM

Thanks!  I see that you've landed the patch in
<https://code.google.com/p/v8/source/detail?r=12520>.  Do you have a rough guess
for when this CL will be visible in Chromium?  I'm not in a bug rush, I'd like
like to set my expectations.  :)

> It's probably outside of the scope of this CL to fix the weirdness that Sven
> mentions here. 

I'll prepare a follow up CL.

Thanks again.

Powered by Google App Engine
This is Rietveld 408576698