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

Issue 6759054: Introduce v8::Object::CreationContext method. (Closed)

Created:
9 years, 8 months ago by antonm
Modified:
9 years, 4 months ago
CC:
v8-dev, Aaron Boodman
Visibility:
Public.

Description

Introduce v8::Object::CreationContext method. That allows to find out a global context in which the object was created. Committed: http://code.google.com/p/v8/source/detail?r=7476

Patch Set 1 #

Patch Set 2 : Next round #

Total comments: 6

Patch Set 3 : Addressing Mads' comments #

Patch Set 4 : Some more tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -0 lines) Patch
M include/v8.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M src/api.cc View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 3 1 chunk +99 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
antonm
Mads, may you have a look? I used it for my experiments. But yesterday Aaron ...
9 years, 8 months ago (2011-04-01 11:11:48 UTC) #1
Mads Ager (chromium)
LGTM I think we should add more testing though. http://codereview.chromium.org/6759054/diff/1004/include/v8.h File include/v8.h (right): http://codereview.chromium.org/6759054/diff/1004/include/v8.h#newcode1656 include/v8.h:1656: ...
9 years, 8 months ago (2011-04-01 11:19:38 UTC) #2
antonm
9 years, 8 months ago (2011-04-01 12:15:46 UTC) #3
Thanks a lot for review, Mads.  Submitting.

http://codereview.chromium.org/6759054/diff/1004/include/v8.h
File include/v8.h (right):

http://codereview.chromium.org/6759054/diff/1004/include/v8.h#newcode1656
include/v8.h:1656: * Returns a context in which the object was created.
On 2011/04/01 11:19:38, Mads Ager wrote:
> a context -> the context

Done.

http://codereview.chromium.org/6759054/diff/1004/src/api.cc
File src/api.cc (right):

http://codereview.chromium.org/6759054/diff/1004/src/api.cc#newcode2882
src/api.cc:2882: static i::Context* creationContext(i::JSObject* object) {
On 2011/04/01 11:19:38, Mads Ager wrote:
> Use Google naming convention please: CreationContext

Done.

http://codereview.chromium.org/6759054/diff/1004/test/cctest/test-api.cc
File test/cctest/test-api.cc (right):

http://codereview.chromium.org/6759054/diff/1004/test/cctest/test-api.cc#newc...
test/cctest/test-api.cc:13634: THREADED_TEST(CreationContext) {
On 2011/04/01 11:19:38, Mads Ager wrote:
> Would be nice to extend this test with stuff created through the API. In
> particular, there is an API function path in your code that you do not test.

Done.  I'll add more if you think it's still not enough.

Powered by Google App Engine
This is Rietveld 408576698