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

Issue 113023: X64: Made hash computation in serializer accept 64-bit pointers. (Closed)

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

Description

X64: Made hash computation in serializer accept 64-bit pointers. Also changed api Wrap function to only wrap suitably small pointers as Smis. Added Smi validity check and factory meethod for intptr_t.

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -5 lines) Patch
M src/api.cc View 2 chunks +8 lines, -4 lines 0 comments Download
M src/objects.h View 1 chunk +4 lines, -0 lines 2 comments Download
M src/objects-inl.h View 2 chunks +20 lines, -0 lines 2 comments Download
M src/serialize.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
Lasse Reichstein
Quick review.
11 years, 7 months ago (2009-05-06 07:25:55 UTC) #1
William Hesse
LGTM. http://codereview.chromium.org/113023/diff/1/3 File src/objects-inl.h (right): http://codereview.chromium.org/113023/diff/1/3#newcode801 Line 801: ((static_cast<uintptr_t>(value) + 0x40000000U) < 0x80000000U); If this ...
11 years, 7 months ago (2009-05-06 07:42:37 UTC) #2
Lasse Reichstein
11 years, 7 months ago (2009-05-12 08:16:38 UTC) #3
http://codereview.chromium.org/113023/diff/1/3
File src/objects-inl.h (right):

http://codereview.chromium.org/113023/diff/1/3#newcode801
Line 801: ((static_cast<uintptr_t>(value) + 0x40000000U) < 0x80000000U);
Only the assumption that the and is slightly faster than the compare, but using
less-than allows me to use a intptr_t size independent constant (as long as Smis
are 31 bit).

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

http://codereview.chromium.org/113023/diff/1/4#newcode790
Line 790: static inline bool IsPtrValid(intptr_t);
On 2009/05/06 07:42:37, William Hesse wrote:
> Perhaps this should be IsIntptrValid, and we may or may not want IsPtrValid
that
> takes a void pointer as argument.  It may save some casting, and can be
inlined.
>  

Done.

Powered by Google App Engine
This is Rietveld 408576698