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

Issue 6682026: Fix SmiCompare on 64 bit to distinguish between comparisons where... (Closed)

Created:
9 years, 9 months ago by Erik Corry
Modified:
9 years, 7 months ago
Reviewers:
Lasse Reichstein
CC:
v8-dev
Visibility:
Public.

Description

Fix SmiCompare on 64 bit to distinguish between comparisons where we know that both sides are Smi and those where we don't. Fix inlined symbol table probes to cope with strings, undefined and null (indicating a deleted entry). Some changes to other architectures that were found with the new asserts. Committed: http://code.google.com/p/v8/source/detail?r=7172

Patch Set 1 #

Total comments: 22

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 29
Unified diffs Side-by-side diffs Delta from patch set Stats (+255 lines, -190 lines) Patch
M src/arm/code-stubs-arm.cc View 1 2 4 chunks +17 lines, -10 lines 4 comments Download
M src/arm/codegen-arm.cc View 1 2 4 chunks +9 lines, -9 lines 4 comments Download
M src/arm/full-codegen-arm.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/ia32/code-stubs-ia32.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M src/ia32/full-codegen-ia32.cc View 1 1 chunk +2 lines, -2 lines 2 comments Download
M src/x64/assembler-x64.h View 1 2 chunks +2 lines, -2 lines 2 comments Download
M src/x64/code-stubs-x64.cc View 1 7 chunks +23 lines, -14 lines 0 comments Download
M src/x64/codegen-x64.cc View 1 15 chunks +26 lines, -25 lines 0 comments Download
M src/x64/full-codegen-x64.cc View 1 5 chunks +10 lines, -10 lines 0 comments Download
M src/x64/lithium-codegen-x64.cc View 1 3 chunks +7 lines, -7 lines 0 comments Download
M src/x64/macro-assembler-x64.h View 1 3 chunks +6 lines, -2 lines 0 comments Download
M src/x64/macro-assembler-x64.cc View 1 7 chunks +47 lines, -7 lines 14 comments Download
M test/cctest/test-macro-assembler-x64.cc View 1 53 chunks +100 lines, -98 lines 3 comments Download

Messages

Total messages: 8 (0 generated)
Erik Corry
9 years, 9 months ago (2011-03-13 23:20:05 UTC) #1
Lasse Reichstein
http://codereview.chromium.org/6682026/diff/1/src/x64/assembler-x64.cc File src/x64/assembler-x64.cc (right): http://codereview.chromium.org/6682026/diff/1/src/x64/assembler-x64.cc#newcode1603 src/x64/assembler-x64.cc:1603: movq(dst, reinterpret_cast<int64_t>(value), RelocInfo::NONE); Please consider using LoadSmi instead. It ...
9 years, 9 months ago (2011-03-14 08:51:01 UTC) #2
Erik Corry
New version uploaded http://codereview.chromium.org/6682026/diff/1/src/x64/assembler-x64.cc File src/x64/assembler-x64.cc (right): http://codereview.chromium.org/6682026/diff/1/src/x64/assembler-x64.cc#newcode1603 src/x64/assembler-x64.cc:1603: movq(dst, reinterpret_cast<int64_t>(value), RelocInfo::NONE); On 2011/03/14 08:51:01, ...
9 years, 9 months ago (2011-03-14 16:26:45 UTC) #3
Lasse Reichstein
LGTM with a few fixes. http://codereview.chromium.org/6682026/diff/1014/src/arm/code-stubs-arm.cc File src/arm/code-stubs-arm.cc (right): http://codereview.chromium.org/6682026/diff/1014/src/arm/code-stubs-arm.cc#newcode6017 src/arm/code-stubs-arm.cc:6017: // Must be null ...
9 years, 9 months ago (2011-03-15 09:07:01 UTC) #4
Lasse Reichstein
http://codereview.chromium.org/6682026/diff/1014/src/x64/macro-assembler-x64.cc File src/x64/macro-assembler-x64.cc (right): http://codereview.chromium.org/6682026/diff/1014/src/x64/macro-assembler-x64.cc#newcode1797 src/x64/macro-assembler-x64.cc:1797: Condition is_smi = CheckSmi(object); Ignore me, this is correct.
9 years, 9 months ago (2011-03-15 09:08:19 UTC) #5
Lasse Reichstein
9 years, 9 months ago (2011-03-15 09:08:19 UTC) #6
Erik Corry
http://codereview.chromium.org/6682026/diff/1014/src/arm/code-stubs-arm.cc File src/arm/code-stubs-arm.cc (right): http://codereview.chromium.org/6682026/diff/1014/src/arm/code-stubs-arm.cc#newcode6017 src/arm/code-stubs-arm.cc:6017: // Must be null (deleted entry). On 2011/03/15 09:07:01, ...
9 years, 9 months ago (2011-03-15 10:00:50 UTC) #7
Lasse Reichstein
9 years, 9 months ago (2011-03-15 12:29:23 UTC) #8
http://codereview.chromium.org/6682026/diff/1014/test/cctest/test-macro-assem...
File test/cctest/test-macro-assembler-x64.cc (right):

http://codereview.chromium.org/6682026/diff/1014/test/cctest/test-macro-assem...
test/cctest/test-macro-assembler-x64.cc:223: __ cmpq(rcx, rcx);
But we are testing SmiCompare :)

Powered by Google App Engine
This is Rietveld 408576698