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

Issue 8050013: Move logic for hidden properties into the JSObject. (Closed)

Created:
9 years, 2 months ago by Lasse Reichstein
Modified:
9 years, 2 months ago
Reviewers:
Rico
CC:
v8-dev
Visibility:
Public.

Description

Move logic for hidden properties into the JSObject. Previously, the logic using the hidden properties backing object was spread accross use sites. Now it's all contained in JSObject, with only simple accessors available. Also change the backing object to be a StringDictionary rather than a JSObject. There's still room for improvement by making a hash-table that don't store property details as well. Committed: http://code.google.com/p/v8/source/detail?r=9510

Patch Set 1 #

Total comments: 3

Patch Set 2 : Add missing object-> #

Patch Set 3 : Now with recursion #

Total comments: 3

Patch Set 4 : Fix typo. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+218 lines, -177 lines) Patch
M src/api.cc View 3 chunks +7 lines, -35 lines 0 comments Download
M src/handles.h View 1 2 1 chunk +5 lines, -5 lines 0 comments Download
M src/handles.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M src/objects.h View 1 2 3 3 chunks +27 lines, -20 lines 0 comments Download
M src/objects.cc View 1 2 3 chunks +175 lines, -79 lines 0 comments Download
M src/objects-inl.h View 1 1 chunk +0 lines, -36 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Lasse Reichstein
9 years, 2 months ago (2011-09-27 13:02:16 UTC) #1
Rico
http://codereview.chromium.org/8050013/diff/1/src/handles.h File src/handles.h (right): http://codereview.chromium.org/8050013/diff/1/src/handles.h#newcode272 src/handles.h:272: Handle<Object>value); space before value http://codereview.chromium.org/8050013/diff/1/src/objects.cc File src/objects.cc (right): http://codereview.chromium.org/8050013/diff/1/src/objects.cc#newcode3340 ...
9 years, 2 months ago (2011-09-27 13:40:40 UTC) #2
Lasse Reichstein
http://codereview.chromium.org/8050013/diff/1/src/objects.cc File src/objects.cc (right): http://codereview.chromium.org/8050013/diff/1/src/objects.cc#newcode3340 src/objects.cc:3340: object = JSObject::cast(proxy_parent); Whoops. I can understand you can't ...
9 years, 2 months ago (2011-09-28 07:28:26 UTC) #3
Rico
LGTM http://codereview.chromium.org/8050013/diff/5001/src/objects.cc File src/objects.cc (right): http://codereview.chromium.org/8050013/diff/5001/src/objects.cc#newcode3460 src/objects.cc:3460: MaybeObject* store_result = If we have fast properties ...
9 years, 2 months ago (2011-09-28 08:59:56 UTC) #4
Lasse Reichstein
9 years, 2 months ago (2011-09-28 10:21:41 UTC) #5
http://codereview.chromium.org/8050013/diff/5001/src/objects.cc
File src/objects.cc (right):

http://codereview.chromium.org/8050013/diff/5001/src/objects.cc#newcode3460
src/objects.cc:3460: MaybeObject* store_result =
The SetPropertyPostInterceptor will put the new property in the descriptor array
if there is room in the object.

I have no idea whether that will actually happen in practice, since the hidden
properties are used through the api, so we don't know the use-cases.

Powered by Google App Engine
This is Rietveld 408576698