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

Issue 50016: Allow hidden properties and implement GetIdentityHash (Closed)

Created:
11 years, 9 months ago by iposva
Modified:
9 years, 4 months ago
CC:
v8-dev
Visibility:
Public.

Description

- Allow hidden properties to be set on any JSObject through the V8 C++ API. - Use the hidden properties to expose a IdentityHash accessor. Committed: http://code.google.com/p/v8/source/detail?r=1550

Patch Set 1 #

Total comments: 5

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+265 lines, -7 lines) Patch
M include/v8.h View 1 1 chunk +16 lines, -0 lines 0 comments Download
M src/api.cc View 1 chunk +71 lines, -0 lines 0 comments Download
M src/factory.h View 1 chunk +4 lines, -0 lines 0 comments Download
M src/handles.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/handles.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M src/heap.h View 3 chunks +10 lines, -1 line 0 comments Download
M src/heap.cc View 3 chunks +13 lines, -0 lines 0 comments Download
M src/objects.h View 1 chunk +5 lines, -0 lines 0 comments Download
M src/objects.cc View 7 chunks +61 lines, -6 lines 0 comments Download
M src/objects-inl.h View 1 chunk +5 lines, -0 lines 0 comments Download
M test/cctest/test-api.cc View 1 1 chunk +72 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
iposva
This change list does not expose the hidden properties into JavaScript in any way. This ...
11 years, 9 months ago (2009-03-19 17:31:05 UTC) #1
Kasper Lund
LGTM. http://codereview.chromium.org/50016/diff/1/2 File test/cctest/test-api.cc (right): http://codereview.chromium.org/50016/diff/1/2#newcode1267 Line 1267: CHECK_NE(hash, hash2); Is this really guaranteed? Freaky. ...
11 years, 9 months ago (2009-03-19 17:46:03 UTC) #2
iposva
http://codereview.chromium.org/50016/diff/1/2 File test/cctest/test-api.cc (right): http://codereview.chromium.org/50016/diff/1/2#newcode1267 Line 1267: CHECK_NE(hash, hash2); On 2009/03/19 17:46:03, Kasper Lund wrote: ...
11 years, 9 months ago (2009-03-19 18:12:10 UTC) #3
Mads Ager (chromium)
LGTM http://codereview.chromium.org/50016/diff/1/3 File include/v8.h (right): http://codereview.chromium.org/50016/diff/1/3#newcode1080 Line 1080: * Returns the identity hash for this ...
11 years, 9 months ago (2009-03-19 18:21:43 UTC) #4
iposva
11 years, 9 months ago (2009-03-19 18:39:13 UTC) #5
http://codereview.chromium.org/50016/diff/1/3
File include/v8.h (right):

http://codereview.chromium.org/50016/diff/1/3#newcode1080
Line 1080: * Returns the identity hash for this object.
On 2009/03/19 18:21:44, Mads Ager wrote:
> We should state in the API that one of the hidden value keys is used by this
> call (the potential for conflict is low, but we should document it).
I will add a comment to the hidden properties that all hidden properties
introduced by V8 internally will be prefixed with "v8::" to reduce the potential
for conflicts.

Powered by Google App Engine
This is Rietveld 408576698