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

Issue 2078022: Complete the full codegenerator on x64. (Closed)

Created:
10 years, 7 months ago by Mads Ager (chromium)
Modified:
9 years, 7 months ago
Reviewers:
William Hesse
CC:
v8-dev
Visibility:
Public.

Description

Complete the full codegenerator on x64. Committed: http://code.google.com/p/v8/source/detail?r=4686

Patch Set 1 #

Total comments: 9

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1300 lines, -126 lines) Patch
M src/compiler.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/flag-definitions.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/ia32/codegen-ia32.cc View 8 chunks +12 lines, -12 lines 0 comments Download
M src/ia32/full-codegen-ia32.cc View 1 5 chunks +9 lines, -11 lines 0 comments Download
M src/x64/codegen-x64.cc View 1 2 chunks +7 lines, -5 lines 0 comments Download
M src/x64/full-codegen-x64.cc View 1 26 chunks +1265 lines, -92 lines 0 comments Download
M src/x64/macro-assembler-x64.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/x64/macro-assembler-x64.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M test/cctest/test-log-stack-tracer.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Mads Ager (chromium)
http://codereview.chromium.org/2078022/diff/1/6 File src/x64/full-codegen-x64.cc (right): http://codereview.chromium.org/2078022/diff/1/6#newcode1522 src/x64/full-codegen-x64.cc:1522: case KEYED_PROPERTY: { This case will be cleaned up ...
10 years, 7 months ago (2010-05-20 09:19:43 UTC) #1
William Hesse
LGTM, with changes. http://codereview.chromium.org/2078022/diff/1/6 File src/x64/full-codegen-x64.cc (right): http://codereview.chromium.org/2078022/diff/1/6#newcode232 src/x64/full-codegen-x64.cc:232: Is there a reason not to ...
10 years, 7 months ago (2010-05-20 13:11:59 UTC) #2
Mads Ager (chromium)
10 years, 7 months ago (2010-05-20 13:49:56 UTC) #3
http://codereview.chromium.org/2078022/diff/1/6
File src/x64/full-codegen-x64.cc (right):

http://codereview.chromium.org/2078022/diff/1/6#newcode232
src/x64/full-codegen-x64.cc:232: 
On 2010/05/20 13:11:59, William Hesse wrote:
> Is there a reason not to insert this function in the same position it appears
in
> in the ia32 implementation, and in the order it appears in in the header file?

No, done.

http://codereview.chromium.org/2078022/diff/1/6#newcode2028
src/x64/full-codegen-x64.cc:2028: __ CmpInstanceType(rbx, FIRST_JS_OBJECT_TYPE);
On 2010/05/20 13:11:59, William Hesse wrote:
> These should use above and below, unless you comment that you really want to
> interpret non-string types as negative numbers.  The equivalent ia32 code
should
> use CmpInstanceType, as well, or else this code should be changed to match the
> ia32 code.  And the ia32 code should use below and above, not less and
greater.

Good catch on using below instead of less. Fixed in classic as well as full
codegen on ia32 and x64. Made the code consistent between the platforms as well.

http://codereview.chromium.org/2078022/diff/1/6#newcode2216
src/x64/full-codegen-x64.cc:2216: __ j(less, &null);
On 2010/05/20 13:11:59, William Hesse wrote:
> Use unsigned comparison, not signed.  Also on ia32.

Done. Also, I changed quite a few other signed instance type comparisons on ia32
to unsigned comparisons as well.

http://codereview.chromium.org/2078022/diff/1/7
File src/x64/macro-assembler-x64.cc (right):

http://codereview.chromium.org/2078022/diff/1/7#newcode924
src/x64/macro-assembler-x64.cc:924: Move(kScratchRegister, constant);
On 2010/05/20 13:11:59, William Hesse wrote:
> Assert that dst is not kScratchRegister?

Done.

Powered by Google App Engine
This is Rietveld 408576698