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

Issue 10052013: Modify 'movq reg, reg' encoding in 64-bit code. (Closed)

Created:
8 years, 8 months ago by regis
Modified:
8 years, 8 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Modify 'movq reg, reg' encoding in 64-bit code. Use 0x89 encoding (instead of 0x8B encoding), which is expected by gdb64 older than 7.3.1-gg5 when disassembling a function's prolog (movq rbp, rsp) for proper unwinding of Dart frames (use --generate_gdb_symbols and -O0). Committed: https://code.google.com/p/dart/source/detail?r=6422

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -7 lines) Patch
M runtime/vm/assembler_x64.cc View 1 chunk +7 lines, -4 lines 2 comments Download
M runtime/vm/debugger_x64.cc View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
regis
8 years, 8 months ago (2012-04-11 15:37:43 UTC) #1
hausner
lgtm
8 years, 8 months ago (2012-04-11 18:04:09 UTC) #2
Lasse Reichstein Nielsen
DBC. https://chromiumcodereview.appspot.com/10052013/diff/1/runtime/vm/assembler_x64.cc File runtime/vm/assembler_x64.cc (right): https://chromiumcodereview.appspot.com/10052013/diff/1/runtime/vm/assembler_x64.cc#newcode288 runtime/vm/assembler_x64.cc:288: EmitUint8(0x89); You could decide whether to use 0x89 ...
8 years, 8 months ago (2012-04-12 09:57:38 UTC) #3
regis
https://chromiumcodereview.appspot.com/10052013/diff/1/runtime/vm/assembler_x64.cc File runtime/vm/assembler_x64.cc (right): https://chromiumcodereview.appspot.com/10052013/diff/1/runtime/vm/assembler_x64.cc#newcode288 runtime/vm/assembler_x64.cc:288: EmitUint8(0x89); On 2012/04/12 09:57:38, Lasse Reichstein Nielsen wrote: > ...
8 years, 8 months ago (2012-04-12 16:46:16 UTC) #4
Lasse Reichstein Nielsen
8 years, 8 months ago (2012-04-13 08:33:38 UTC) #5
On 2012/04/12 16:46:16, regis wrote:
> This is a good point for memory addressing modes, but I do not think we ever
> need a SIB byte in movq reg, reg.

Ack, yes, that is true. It's only for memory operations. My bad.

Powered by Google App Engine
This is Rietveld 408576698