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

Issue 115920: X64: Added jmp and call and nop(n) to X64 assembler. (Closed)

Created:
11 years, 6 months ago by Lasse Reichstein
Modified:
9 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

X64: Added jmp and call and nop(n) to X64 assembler.

Patch Set 1 #

Total comments: 18

Patch Set 2 : Bad change snuck into assembler-ia32.cc #

Patch Set 3 : Addressed review comments. #

Patch Set 4 : Addressed more review comments. #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -21 lines) Patch
M src/assembler.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/x64/assembler-x64.h View 1 2 3 6 chunks +36 lines, -16 lines 2 comments Download
M src/x64/assembler-x64.cc View 1 2 3 4 chunks +114 lines, -2 lines 2 comments Download
M src/x64/assembler-x64-inl.h View 1 2 3 3 chunks +18 lines, -3 lines 1 comment Download

Messages

Total messages: 6 (0 generated)
Lasse Reichstein
Small review.
11 years, 6 months ago (2009-05-29 10:43:23 UTC) #1
William Hesse
http://codereview.chromium.org/115920/diff/1/2 File src/ia32/assembler-ia32.cc (right): http://codereview.chromium.org/115920/diff/1/2#newcode1491 Line 1491: emit_rex_64(adr); I don't think this belongs in the ...
11 years, 6 months ago (2009-05-29 11:15:00 UTC) #2
Kevin Millikin (Chromium)
Fast progress on the assembler. Some drive-by comments. http://codereview.chromium.org/115920/diff/1/4 File src/x64/assembler-x64.cc (right): http://codereview.chromium.org/115920/diff/1/4#newcode600 Line 600: ...
11 years, 6 months ago (2009-05-29 11:44:37 UTC) #3
Lasse Reichstein
http://codereview.chromium.org/115920/diff/1/3 File src/x64/assembler-x64-inl.h (right): http://codereview.chromium.org/115920/diff/1/3#newcode76 Line 76: emit(0x48 | (reg.code() >> 3)); I agree that ...
11 years, 6 months ago (2009-05-29 12:27:14 UTC) #4
William Hesse
LGTM. Comments are optional changes. http://codereview.chromium.org/115920/diff/1008/1010 File src/x64/assembler-x64-inl.h (right): http://codereview.chromium.org/115920/diff/1008/1010#newcode77 Line 77: emit(0x48 | (rm_reg.code() ...
11 years, 6 months ago (2009-05-29 13:08:00 UTC) #5
Lasse Reichstein
11 years, 6 months ago (2009-05-29 13:13:29 UTC) #6
http://codereview.chromium.org/115920/diff/1008/1011
File src/x64/assembler-x64.cc (right):

http://codereview.chromium.org/115920/diff/1008/1011#newcode275
Line 275: ASSERT_EQ(rm & 0x07, rm);
I'd rather fail than silently correct errors. The caller should know that the
argument is valid.

http://codereview.chromium.org/115920/diff/1008/1012
File src/x64/assembler-x64.h (right):

http://codereview.chromium.org/115920/diff/1008/1012#newcode868
Line 868: emit_operand(reg.code() & 0x07, adr);
There is no need for a register code argument when we have the version that
takes a register. The int version takes the value of the register field of the
ModR/M byte, and only 3-bit uints are allowed (could use that function, though).

Powered by Google App Engine
This is Rietveld 408576698