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

Issue 6242005: Using unsigned shifts and masks when dealing with 64-bit addresses. (Closed)

Created:
9 years, 11 months ago by antonm
Modified:
9 years, 4 months ago
CC:
v8-dev
Visibility:
Public.

Description

Using unsigned shifts and masks when dealing with 64-bit addresses. BUG=v8:1037 Committed: http://code.google.com/p/v8/source/detail?r=6388

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressing Slava's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -7 lines) Patch
M include/v8.h View 1 4 chunks +5 lines, -5 lines 0 comments Download
M src/api.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M test/cctest/test-api.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
antonm
Guys, may you have a look?
9 years, 11 months ago (2011-01-19 09:29:11 UTC) #1
Vyacheslav Egorov (Chromium)
LGTM http://codereview.chromium.org/6242005/diff/1/include/v8.h File include/v8.h (right): http://codereview.chromium.org/6242005/diff/1/include/v8.h#newcode3391 include/v8.h:3391: ~(intptr_t(0xffffffff) << kPointerAlignment); intptr_t => uintptr_t http://codereview.chromium.org/6242005/diff/1/include/v8.h#newcode3460 include/v8.h:3460: ...
9 years, 11 months ago (2011-01-19 10:19:43 UTC) #2
antonm
9 years, 11 months ago (2011-01-19 11:16:00 UTC) #3
Thanks a lot for spotting all this stuff, Slava.  And for review.  Committing.

http://codereview.chromium.org/6242005/diff/1/include/v8.h
File include/v8.h (right):

http://codereview.chromium.org/6242005/diff/1/include/v8.h#newcode3391
include/v8.h:3391: ~(intptr_t(0xffffffff) << kPointerAlignment);
On 2011/01/19 10:19:43, Vyacheslav Egorov wrote:
> intptr_t => uintptr_t

Done.

http://codereview.chromium.org/6242005/diff/1/include/v8.h#newcode3460
include/v8.h:3460: const uintptr_t address = reinterpret_cast<intptr_t>(value);
On 2011/01/19 10:19:43, Vyacheslav Egorov wrote:
> <intptr_t> => <uintptr_t> 

Done.

http://codereview.chromium.org/6242005/diff/1/src/api.cc
File src/api.cc (right):

http://codereview.chromium.org/6242005/diff/1/src/api.cc#newcode3270
src/api.cc:3270: const uintptr_t address = reinterpret_cast<intptr_t>(ptr);
On 2011/01/19 10:19:43, Vyacheslav Egorov wrote:
> <intptr_t> => <uintptr_t> 

Done.

http://codereview.chromium.org/6242005/diff/1/src/api.cc#newcode3277
src/api.cc:3277: const uintptr_t address = reinterpret_cast<intptr_t>(ptr);
On 2011/01/19 10:19:43, Vyacheslav Egorov wrote:
> <intptr_t> => <uintptr_t> 

Done.

Powered by Google App Engine
This is Rietveld 408576698