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

Issue 7385006: Reintroduced dictionary that can use objects as keys. (Closed)

Created:
9 years, 5 months ago by Michael Starzinger
Modified:
9 years, 4 months ago
CC:
v8-dev
Visibility:
Public.

Description

Reintroduced dictionary that can use objects as keys. R=vitalyr@chromium.org TEST=cctest/test-dictionary Committed: http://code.google.com/p/v8/source/detail?r=8761

Patch Set 1 #

Patch Set 2 : Incorporated review from Vitaly Repeshko. #

Total comments: 28

Patch Set 3 : Incorporated review by Vitaly Repeshko. #

Patch Set 4 : Incorporated review by Vitaly Repeshko. #

Total comments: 4

Patch Set 5 : Incorporated review by Vitaly Repeshko. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+365 lines, -76 lines) Patch
M src/api.cc View 1 2 3 4 chunks +10 lines, -36 lines 0 comments Download
M src/factory.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M src/factory.cc View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M src/handles.h View 1 2 3 2 chunks +11 lines, -3 lines 0 comments Download
M src/handles.cc View 1 2 3 2 chunks +20 lines, -36 lines 0 comments Download
M src/objects.h View 1 2 3 4 2 chunks +51 lines, -0 lines 0 comments Download
M src/objects.cc View 1 2 3 4 3 chunks +145 lines, -0 lines 0 comments Download
M src/objects-inl.h View 1 2 3 4 2 chunks +30 lines, -0 lines 0 comments Download
M src/runtime.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/SConscript View 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/cctest.gyp View 1 chunk +1 line, -0 lines 0 comments Download
A test/cctest/test-dictionary.cc View 1 2 3 1 chunk +85 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Michael Starzinger
Verified that this removes the regression in the webkit http/tests/plugins/geturlnotify-from-npp-destroystr* test case.
9 years, 5 months ago (2011-07-15 15:18:06 UTC) #1
Michael Starzinger
Since Slava is on vacation I thought it would be great if someone else could ...
9 years, 5 months ago (2011-07-25 17:17:22 UTC) #2
Vitaly Repeshko
I'd be happy to review this, but I don't understand how it's supposed to work ...
9 years, 5 months ago (2011-07-25 17:37:17 UTC) #3
Vitaly Repeshko
I guess the intent was to rely on the fact that objects without allocated hash ...
9 years, 5 months ago (2011-07-25 17:45:17 UTC) #4
Michael Starzinger
Yes, ObjectDictionary::AddChecked (suggestions for a better name appreciated) makes sure each object added to the ...
9 years, 5 months ago (2011-07-25 17:52:06 UTC) #5
Michael Starzinger
Added the test snippet from Vitaly to cctest. I decided to completely overload Dictionary::FindEntry and ...
9 years, 5 months ago (2011-07-26 01:04:52 UTC) #6
Vitaly Repeshko
http://codereview.chromium.org/7385006/diff/7003/src/handles.cc File src/handles.cc (right): http://codereview.chromium.org/7385006/diff/7003/src/handles.cc#newcode433 src/handles.cc:433: CALL_HEAP_FUNCTION(obj->GetIsolate(), obj->GetIdentityHash(), Smi); Creating a handle for a Smi ...
9 years, 5 months ago (2011-07-26 13:53:14 UTC) #7
Michael Starzinger
http://codereview.chromium.org/7385006/diff/7003/src/handles.cc File src/handles.cc (right): http://codereview.chromium.org/7385006/diff/7003/src/handles.cc#newcode433 src/handles.cc:433: CALL_HEAP_FUNCTION(obj->GetIsolate(), obj->GetIdentityHash(), Smi); On 2011/07/26 13:53:14, Vitaly Repeshko wrote: ...
9 years, 5 months ago (2011-07-26 22:30:23 UTC) #8
Vitaly Repeshko
http://codereview.chromium.org/7385006/diff/7003/src/objects.cc File src/objects.cc (right): http://codereview.chromium.org/7385006/diff/7003/src/objects.cc#newcode11772 src/objects.cc:11772: MaybeObject* maybe_hash = key->GetIdentityHash(); On 2011/07/26 22:30:23, Michael Starzinger ...
9 years, 5 months ago (2011-07-27 15:42:26 UTC) #9
Michael Starzinger
The last set of patches is bigger than expected because of changing the base class. ...
9 years, 5 months ago (2011-07-28 01:23:18 UTC) #10
Vitaly Repeshko
LGTM http://codereview.chromium.org/7385006/diff/15001/src/objects.h File src/objects.h (right): http://codereview.chromium.org/7385006/diff/15001/src/objects.h#newcode1646 src/objects.h:1646: // Makes sure to properly call BypassGlobalProxy to ...
9 years, 4 months ago (2011-07-28 13:30:07 UTC) #11
Michael Starzinger
9 years, 4 months ago (2011-07-28 17:19:46 UTC) #12
http://codereview.chromium.org/7385006/diff/15001/src/objects.h
File src/objects.h (right):

http://codereview.chromium.org/7385006/diff/15001/src/objects.h#newcode1646
src/objects.h:1646: // Makes sure to properly call BypassGlobalProxy to be safe
for JSGlobalProxy
On 2011/07/28 13:30:07, Vitaly Repeshko wrote:
> I don't think the comments on proxies and fast properties are important. Let's
> remove them.

Fixed.

http://codereview.chromium.org/7385006/diff/15001/src/runtime.cc
File src/runtime.cc (right):

http://codereview.chromium.org/7385006/diff/15001/src/runtime.cc#newcode4521
src/runtime.cc:4521: if (!GetHiddenProperties(jsproto,
JSObject::OMIT_CREATION)->IsUndefined()) {
On 2011/07/28 13:30:07, Vitaly Repeshko wrote:
> Maybe we need HasHiddenProperties to simplify this?

Fixed

Powered by Google App Engine
This is Rietveld 408576698