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

Issue 7754015: Implement identity hashes for proxies. (Closed)

Created:
9 years, 3 months ago by rossberg
Modified:
9 years, 3 months ago
Reviewers:
Michael Starzinger
CC:
v8-dev
Visibility:
Public.

Description

Implement identity hashes for proxies. R=mstarzinger@chromium.org BUG=v8:1543, v8:1565 TEST= Committed: http://code.google.com/p/v8/source/detail?r=9396

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed Michael's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+205 lines, -79 lines) Patch
M src/api.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M src/handles.h View 1 2 chunks +3 lines, -4 lines 0 comments Download
M src/handles.cc View 1 2 chunks +4 lines, -5 lines 0 comments Download
M src/heap.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/heap.cc View 1 5 chunks +24 lines, -12 lines 0 comments Download
M src/objects.h View 1 11 chunks +34 lines, -21 lines 0 comments Download
M src/objects.cc View 1 7 chunks +46 lines, -18 lines 0 comments Download
M src/objects-debug.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M src/objects-inl.h View 1 3 chunks +16 lines, -8 lines 0 comments Download
M src/objects-printer.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M src/runtime.cc View 2 chunks +2 lines, -5 lines 0 comments Download
M test/mjsunit/harmony/proxies.js View 1 chunk +1 line, -1 line 0 comments Download
A test/mjsunit/harmony/proxies-hash.js View 1 chunk +66 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
rossberg
9 years, 3 months ago (2011-09-08 13:40:28 UTC) #1
Michael Starzinger
LGTM (with comments addressed). http://codereview.chromium.org/7754015/diff/1/src/heap.cc File src/heap.cc (right): http://codereview.chromium.org/7754015/diff/1/src/heap.cc#newcode3524 src/heap.cc:3524: MaybeObject* maybe = jsobj->GetHiddenProperties(JSObject::ALLOW_CREATION); Can ...
9 years, 3 months ago (2011-09-09 09:39:59 UTC) #2
rossberg
9 years, 3 months ago (2011-09-12 10:50:08 UTC) #3
http://codereview.chromium.org/7754015/diff/1/src/heap.cc
File src/heap.cc (right):

http://codereview.chromium.org/7754015/diff/1/src/heap.cc#newcode3524
src/heap.cc:3524: MaybeObject* maybe =
jsobj->GetHiddenProperties(JSObject::ALLOW_CREATION);
On 2011/09/09 09:40:00, Michael Starzinger wrote:
> Can we move that into a separate method JSObject::SetIdentityHash() to keep
the
> identity hashing code together?

Done.

http://codereview.chromium.org/7754015/diff/1/src/objects.h
File src/objects.h (right):

http://codereview.chromium.org/7754015/diff/1/src/objects.h#newcode1434
src/objects.h:1434: enum CreationFlag { ALLOW_CREATION, OMIT_CREATION };
On 2011/09/09 09:40:00, Michael Starzinger wrote:
> The use of this flag is ambiguous, it is used to indicate two different
things.
> Can we use two different flags for that purpose?
> 1) Allow creation of an object holding hidden properties
> 2) Allow generation of a permanent identity hash code

As discussed offline, moved the enum type out of JSReceiver to mirror its more
universal meaning.

Powered by Google App Engine
This is Rietveld 408576698