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

Issue 112066: Add test, neg, and not instructions to x64 assembler (Closed)

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

Description

Add test, neg, and not instructions to x64 assembler Committed: http://code.google.com/p/v8/source/detail?r=2076

Patch Set 1 #

Total comments: 8

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+250 lines, -41 lines) Patch
M src/x64/assembler-x64.h View 1 6 chunks +39 lines, -10 lines 0 comments Download
M src/x64/assembler-x64.cc View 1 2 16 chunks +177 lines, -30 lines 0 comments Download
M src/x64/assembler-x64-inl.h View 1 2 chunks +34 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
William Hesse
11 years, 7 months ago (2009-05-28 15:43:27 UTC) #1
Lasse Reichstein
LGTM http://codereview.chromium.org/112066/diff/1/4 File src/x64/assembler-x64-inl.h (right): http://codereview.chromium.org/112066/diff/1/4#newcode74 Line 74: // REX.W is set. For completeness, you ...
11 years, 6 months ago (2009-05-29 07:41:55 UTC) #2
William Hesse
11 years, 6 months ago (2009-05-29 08:43:03 UTC) #3
http://codereview.chromium.org/112066/diff/1/4
File src/x64/assembler-x64-inl.h (right):

http://codereview.chromium.org/112066/diff/1/4#newcode74
Line 74: // REX.W is set.
On 2009/05/29 07:41:55, Lasse Reichstein wrote:
> For completeness, you might write that REX.X is clear.

Done.

http://codereview.chromium.org/112066/diff/1/4#newcode84
Line 84: emit(0x40 | (reg.code() & 0x8) >> 1 | op.rex_);
On 2009/05/29 07:41:55, Lasse Reichstein wrote:
> Shouldn't this always be optional (i.e., emit nothing if no extended registers
> are used)?
> I.e., is there any case when 0x40 should be written?
> (ditto for reg,reg-version).

No, there are cases where a REX prefix is still needed (to switch byte-register
codes from AH, BH, etc. to SIL, DIL, etc.)

http://codereview.chromium.org/112066/diff/1/2
File src/x64/assembler-x64.cc (right):

http://codereview.chromium.org/112066/diff/1/2#newcode623
Line 623: }
On 2009/05/29 07:41:55, Lasse Reichstein wrote:
> Use emit_optional_rex_32 here?

No, because then we use the old ia32 set of byte registers.

Powered by Google App Engine
This is Rietveld 408576698