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

Issue 113199: X64: General fixes - added inline definitions and changed tome places to intptr_t. (Closed)

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

Description

X64: General fixes - added inline definitions and changed some places to intptr_t.

Patch Set 1 #

Total comments: 11
Unified diffs Side-by-side diffs Delta from patch set Stats (+142 lines, -5 lines) Patch
M src/disassembler.cc View 2 chunks +5 lines, -4 lines 4 comments Download
M src/globals.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/objects.cc View 1 chunk +3 lines, -1 line 2 comments Download
M src/runtime.cc View 3 chunks +12 lines, -0 lines 4 comments Download
M src/x64/assembler-x64-inl.h View 2 chunks +83 lines, -0 lines 0 comments Download
M src/x64/cpu-x64.cc View 1 chunk +38 lines, -0 lines 1 comment Download

Messages

Total messages: 4 (0 generated)
Lasse Reichstein
Please review small fixes.
11 years, 7 months ago (2009-05-11 15:33:00 UTC) #1
Dean McNamee
http://codereview.chromium.org/113199/diff/1/2 File src/disassembler.cc (right): http://codereview.chromium.org/113199/diff/1/2#newcode46 Line 46: PrintF("%"V8PRIp" %4"V8PRId" %02x\n", pc, pc - begin, *pc); ...
11 years, 7 months ago (2009-05-12 08:22:40 UTC) #2
Erik Corry
LGTM http://codereview.chromium.org/113199/diff/1/2 File src/disassembler.cc (right): http://codereview.chromium.org/113199/diff/1/2#newcode46 Line 46: PrintF("%"V8PRIp" %4"V8PRId" %02x\n", pc, pc - begin, ...
11 years, 7 months ago (2009-05-12 09:24:50 UTC) #3
Lasse Reichstein
11 years, 7 months ago (2009-05-12 10:32:51 UTC) #4
http://codereview.chromium.org/113199/diff/1/2
File src/disassembler.cc (right):

http://codereview.chromium.org/113199/diff/1/2#newcode46
Line 46: PrintF("%"V8PRIp"  %4"V8PRId"  %02x\n", pc, pc - begin, *pc);
A quick look at what people do with PRId64 and likes from inttypes.h suggests
spaces around. I have added them where we have used the macro.

http://codereview.chromium.org/113199/diff/1/2#newcode46
Line 46: PrintF("%"V8PRIp"  %4"V8PRId"  %02x\n", pc, pc - begin, *pc);
It shouldn't say "print a pointer difference". It should say "print a
pointer-size value as decimal". I admit that it doesn't say that either.
The corresponding standard macros are called, e.g., PRIdPTR, so we should call
it something like V8PRIdPTR for consistency.

http://codereview.chromium.org/113199/diff/1/4
File src/objects.cc (right):

http://codereview.chromium.org/113199/diff/1/4#newcode6729
Line 6729: static_cast<uint32_t>(reinterpret_cast<uintptr_t>(map));
Added

http://codereview.chromium.org/113199/diff/1/5
File src/runtime.cc (right):

http://codereview.chromium.org/113199/diff/1/5#newcode4448
Line 4448: #ifdef V8_HOST_ARCH_64_BIT
Done

Powered by Google App Engine
This is Rietveld 408576698