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

Issue 115571: Implement quadword MOV on x64 assembler, emitting REX prefix. (Closed)

Created:
11 years, 7 months ago by William Hesse
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Implement quadword MOV on x64 assembler, emitting REX prefix. Committed: http://code.google.com/p/v8/source/detail?r=2030

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 3

Patch Set 3 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -7 lines) Patch
M src/x64/assembler-x64.h View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M src/x64/assembler-x64.cc View 1 2 3 chunks +59 lines, -7 lines 1 comment Download

Messages

Total messages: 7 (0 generated)
William Hesse
11 years, 7 months ago (2009-05-20 16:15:27 UTC) #1
William Hesse
11 years, 7 months ago (2009-05-20 16:15:51 UTC) #2
iposva
Please move the two implementations into the -inl.h. -Ivan http://codereview.chromium.org/115571/diff/1003/7 File src/x64/assembler-x64.h (right): http://codereview.chromium.org/115571/diff/1003/7#newcode833 Line ...
11 years, 7 months ago (2009-05-20 17:08:51 UTC) #3
Kevin Millikin (Chromium)
It looks OK after moving the inlined functions as Ivan suggests. I presume we're just ...
11 years, 7 months ago (2009-05-22 07:20:27 UTC) #4
William Hesse
Comments addressed, functions renamed and moved. http://codereview.chromium.org/115571/diff/1003/7 File src/x64/assembler-x64.h (right): http://codereview.chromium.org/115571/diff/1003/7#newcode833 Line 833: #undef EMIT ...
11 years, 7 months ago (2009-05-22 07:44:56 UTC) #5
iposva
http://codereview.chromium.org/115571/diff/1005/14 File src/x64/assembler-x64.cc (right): http://codereview.chromium.org/115571/diff/1005/14#newcode279 Line 279: emit_rex_64(dst, src); Will all mov instructions need the ...
11 years, 7 months ago (2009-05-22 07:56:38 UTC) #6
William Hesse
11 years, 7 months ago (2009-05-22 11:35:13 UTC) #7
-inl.h file uploaded in change http://codereview.chromium.org/113761

The movl instruction will use emit_rex_32, which
will emit a REX prefix without the REX.W bit set.
If none of the flags in the REX prefix is needed,
emit_rex_32 will not emit a prefix.

The mov_w instruction (if it is ever needed) will need
to use both the size override prefix and possibly a
REX without REX.W set.



On 2009/05/22 07:56:38, iposva wrote:
> http://codereview.chromium.org/115571/diff/1005/14
> File src/x64/assembler-x64.cc (right):
> 
> http://codereview.chromium.org/115571/diff/1005/14#newcode279
> Line 279: emit_rex_64(dst, src);
> Will all mov instructions need the emit_rex_64 prefix? How are you going to
> distinguish movl and movq instructions?
> 
> Can you also please upload the -inl.h files?

Powered by Google App Engine
This is Rietveld 408576698