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

Issue 3170004: Minor change to for-in... (Closed)

Created:
10 years, 4 months ago by Søren Thygesen Gjesse
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Minor change to for-in Return (smi) 0 instead of object null from the FILTER_KEY builtin. Add a test which tests keys being deleted during for-in. Committed: http://code.google.com/p/v8/source/detail?r=5243

Patch Set 1 #

Total comments: 12

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -15 lines) Patch
M src/arm/codegen-arm.cc View 1 1 chunk +1 line, -4 lines 0 comments Download
M src/arm/full-codegen-arm.cc View 1 1 chunk +3 lines, -5 lines 0 comments Download
M src/ia32/codegen-ia32.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/ia32/full-codegen-ia32.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/runtime.js View 1 chunk +2 lines, -2 lines 0 comments Download
M src/x64/codegen-x64.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/x64/full-codegen-x64.cc View 1 1 chunk +1 line, -1 line 0 comments Download
A test/mjsunit/for-in-delete.js View 1 1 chunk +50 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Søren Thygesen Gjesse
Am I right in assuming that a smi 0 on x64 is all zero bits?
10 years, 4 months ago (2010-08-11 13:20:01 UTC) #1
Erik Corry
LGTM, but wait for LRN. http://codereview.chromium.org/3170004/diff/1/2 File src/arm/codegen-arm.cc (right): http://codereview.chromium.org/3170004/diff/1/2#newcode2484 src/arm/codegen-arm.cc:2484: __ mov(r3, Operand(r0)); make ...
10 years, 4 months ago (2010-08-11 13:27:54 UTC) #2
Lasse Reichstein
X64 LGTM if changed to using SmiCompare. You are right that smi zero is currently ...
10 years, 4 months ago (2010-08-11 13:37:36 UTC) #3
Søren Thygesen Gjesse
10 years, 4 months ago (2010-08-11 13:45:55 UTC) #4
http://codereview.chromium.org/3170004/diff/1/2
File src/arm/codegen-arm.cc (right):

http://codereview.chromium.org/3170004/diff/1/2#newcode2484
src/arm/codegen-arm.cc:2484: __ mov(r3, Operand(r0));
On 2010/08/11 13:27:54, Erik Corry wrote:
> make this a SetCC operation and omit the tst.

Of cause - done.

http://codereview.chromium.org/3170004/diff/1/3
File src/arm/full-codegen-arm.cc (right):

http://codereview.chromium.org/3170004/diff/1/3#newcode960
src/arm/full-codegen-arm.cc:960: // anymore. If the property has been removed
while iterating, we
On 2010/08/11 13:27:54, Erik Corry wrote:
> anymore -> any more

Done (and changed "null" to "(smi) 0").

http://codereview.chromium.org/3170004/diff/1/3#newcode966
src/arm/full-codegen-arm.cc:966: __ tst(r3, r3);
On 2010/08/11 13:27:54, Erik Corry wrote:
> And again.

Done.

http://codereview.chromium.org/3170004/diff/1/7
File src/x64/codegen-x64.cc (right):

http://codereview.chromium.org/3170004/diff/1/7#newcode3928
src/x64/codegen-x64.cc:3928: __ testq(rbx, rbx);
On 2010/08/11 13:37:37, Lasse Reichstein wrote:
> To test for Smi zero, use SmiCompare(rbx, Smi::FromInt(0)).
> It will generate the same code, but is safe against change of representation.
> In general never assume anything about the smi format outside of the
> MacroAssembler Smi-macros.

Done.

http://codereview.chromium.org/3170004/diff/1/8
File src/x64/full-codegen-x64.cc (right):

http://codereview.chromium.org/3170004/diff/1/8#newcode1056
src/x64/full-codegen-x64.cc:1056: __ testq(rax, rax);
On 2010/08/11 13:37:37, Lasse Reichstein wrote:
> Use SmiCompare(rax, Smi::FromInt(0)).

Done.

http://codereview.chromium.org/3170004/diff/1/9
File test/mjsunit/for-in-delete.js (right):

http://codereview.chromium.org/3170004/diff/1/9#newcode28
test/mjsunit/for-in-delete.js:28: // Test that properties deleted during a
for-in iteration does not show up in
On 2010/08/11 13:27:54, Erik Corry wrote:
> properties ... does -> properties ... do

Done.

Powered by Google App Engine
This is Rietveld 408576698