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

Issue 100336: Include 64-bit pointer and constant types in include/v8.h.... (Closed)

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

Description

Include 64-bit pointer and constant types in include/v8.h. Make some definitions in globals.h 64-bit safe Committed: http://code.google.com/p/v8/source/detail?r=1844

Patch Set 1 #

Total comments: 6

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -33 lines) Patch
M include/v8.h View 1 2 1 chunk +7 lines, -2 lines 0 comments Download
M src/globals.h View 1 2 5 chunks +35 lines, -31 lines 3 comments Download

Messages

Total messages: 5 (0 generated)
William Hesse
11 years, 7 months ago (2009-05-04 12:36:29 UTC) #1
Lasse Reichstein
LGTM, with comments. http://codereview.chromium.org/100336/diff/1/3 File src/globals.h (right): http://codereview.chromium.org/100336/diff/1/3#newcode54 Line 54: #ifdef _WIN32 Is _WIN32 correct ...
11 years, 7 months ago (2009-05-04 12:43:11 UTC) #2
William Hesse
http://codereview.chromium.org/100336/diff/1/3 File src/globals.h (right): http://codereview.chromium.org/100336/diff/1/3#newcode54 Line 54: #ifdef _WIN32 On 2009/05/04 12:43:11, Lasse Reichstein wrote: ...
11 years, 7 months ago (2009-05-04 13:36:36 UTC) #3
Dean McNamee
http://codereview.chromium.org/100336/diff/11/1006 File src/globals.h (right): http://codereview.chromium.org/100336/diff/11/1006#newcode59 Line 59: #define INT64_C(x) (x ## LL) We should use ...
11 years, 7 months ago (2009-05-04 16:09:52 UTC) #4
iposva
11 years, 7 months ago (2009-05-04 17:00:55 UTC) #5
This is a general comment about using V8_ARCH_X64 as the 64-bit marker while
porting and not only a particular comment about Bill's change.

Please clean this up now and stick to the clean definition before it gets a lot
harder to deal with. Some ideas: Use the automatic defines __WORDSIZE or
__LP64__ or something that is defined in one place inside globals.h or v8.h
based on the compiler automatic defines:
#if defined(__LP64__) || (__LLP64__)
#define V8_64BIT 1
#endif

Thanks!
-Ivan

http://codereview.chromium.org/100336/diff/11/1006
File src/globals.h (right):

http://codereview.chromium.org/100336/diff/11/1006#newcode87
Line 87: #ifdef V8_ARCH_X64
There are potentially other 64-bit architectures outside x64. Please do not
"improve" the code for 64-bit cleanliness while making it harder to port to
other architectures. This will serve as a disservice in the long time. Thanks!

http://codereview.chromium.org/100336/diff/11/1006#newcode124
Line 124: #ifdef V8_ARCH_X64
ditto!

Powered by Google App Engine
This is Rietveld 408576698