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

Issue 455020: Remove some of the cache validity checks for for-in enumeration. We... (Closed)

Created:
11 years ago by Mads Ager (chromium)
Modified:
9 years, 7 months ago
Reviewers:
Erik Corry
CC:
v8-dev
Visibility:
Public.

Description

Remove some of the cache validity checks for for-in enumeration. We can check for these cases before caching the property names instead. Committed: http://code.google.com/p/v8/source/detail?r=3389

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -26 lines) Patch
M src/arm/codegen-arm.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/handles.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/handles.cc View 4 chunks +29 lines, -7 lines 0 comments Download
M src/objects.cc View 2 chunks +17 lines, -17 lines 1 comment Download

Messages

Total messages: 3 (0 generated)
Mads Ager (chromium)
11 years ago (2009-12-01 09:42:53 UTC) #1
Erik Corry
LGTM! http://codereview.chromium.org/455020/diff/1/3 File src/objects.cc (right): http://codereview.chromium.org/455020/diff/1/3#newcode2649 src/objects.cc:2649: if (curr->NumberOfEnumElements() > 0) return false; Seems like ...
11 years ago (2009-12-01 10:21:08 UTC) #2
Mads Ager (chromium)
11 years ago (2009-12-01 10:24:29 UTC) #3
On 2009/12/01 10:21:08, Erik Corry wrote:
> LGTM!
> 
> http://codereview.chromium.org/455020/diff/1/3
> File src/objects.cc (right):
> 
> http://codereview.chromium.org/455020/diff/1/3#newcode2649
> src/objects.cc:2649: if (curr->NumberOfEnumElements() > 0) return false;
> Seems like it would be better to check this when creating the cache and not
save
> the cache.

I agree.  We still need the check here when the cache is there but elements have
been added in the mean time.  But it should be a win to not save the cache if
there are elements.

I'll do this in a separate change.

Powered by Google App Engine
This is Rietveld 408576698