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

Issue 2748023003: Sign extend correctly in disassembler (Closed)

Created:
3 years, 9 months ago by erikcorry
Modified:
3 years, 9 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -17 lines) Patch
M runtime/vm/disassembler_ia32.cc View 3 chunks +8 lines, -4 lines 0 comments Download
M runtime/vm/disassembler_x64.cc View 4 chunks +29 lines, -13 lines 1 comment Download

Messages

Total messages: 7 (2 generated)
erikcorry
3 years, 9 months ago (2017-03-14 12:29:16 UTC) #1
erikcorry
Example diff: ;; Inlined [_GrowableList@0150898.add -> _GrowableList@0150898._grow@0150898 -> _List@0150898._List@0150898.] -0xf6dc676c 83c1fe add ecx,0xfe +0xf6df676c 83c1fe ...
3 years, 9 months ago (2017-03-14 12:34:08 UTC) #2
Vyacheslav Egorov (Google)
lgtm
3 years, 9 months ago (2017-03-15 08:03:13 UTC) #3
erikcorry
Committed patchset #1 (id:1) manually as 4c05acd59b08c44df1c1d2f91ab32b548c5d3e56 (presubmit successful).
3 years, 9 months ago (2017-03-15 08:20:09 UTC) #5
sra1
3 years, 9 months ago (2017-03-15 17:09:54 UTC) #7
Message was sent while issue was closed.
Thanks!

https://codereview.chromium.org/2748023003/diff/1/runtime/vm/disassembler_x64.cc
File runtime/vm/disassembler_x64.cc (right):

https://codereview.chromium.org/2748023003/diff/1/runtime/vm/disassembler_x64...
runtime/vm/disassembler_x64.cc:536: if ((value >= 0) && (value <= 9)) {
It is nice that 1 prints as "1" and not "0x1"
Perhaps do the same for -1, i.e. "-1" and not "-0x1".

I'd like to see cleaner single digit numbers in x86 too.

Powered by Google App Engine
This is Rietveld 408576698