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

Issue 115860: Change RelocInfo to write 64-bit data field on x64 architecture. (Closed)

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

Description

Change RelocInfo to write 64-bit data field on x64 architecture. Committed: http://code.google.com/p/v8/source/detail?r=2081

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 5

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -49 lines) Patch
M src/assembler.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M src/assembler.cc View 1 2 3 6 chunks +17 lines, -13 lines 0 comments Download
M src/globals.h View 1 2 1 chunk +6 lines, -5 lines 0 comments Download
M test/cctest/test-utils.cc View 3 4 2 chunks +7 lines, -29 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
William Hesse
Tested on ia32, with --debug-code and --print-code. http://codereview.chromium.org/115860/diff/10/12 File src/assembler.cc (right): http://codereview.chromium.org/115860/diff/10/12#newcode186 Line 186: data_delta ...
11 years, 7 months ago (2009-05-28 13:16:09 UTC) #1
Kevin Millikin (Chromium)
LGTM. http://codereview.chromium.org/115860/diff/10/12 File src/assembler.cc (right): http://codereview.chromium.org/115860/diff/10/12#newcode186 Line 186: data_delta = data_delta >> kBitsPerByte; On 2009/05/28 ...
11 years, 7 months ago (2009-05-29 09:43:37 UTC) #2
William Hesse
11 years, 6 months ago (2009-05-29 11:16:08 UTC) #3
Added test to test-utils.cc

http://codereview.chromium.org/115860/diff/10/12
File src/assembler.cc (right):

http://codereview.chromium.org/115860/diff/10/12#newcode186
Line 186: data_delta = data_delta >> kBitsPerByte;
On 2009/05/29 09:43:37, Kevin Millikin wrote:
> On 2009/05/28 13:16:09, William Hesse wrote:
> > ArithmeticShiftRight is defined for ints, not intptr_t.  We cannot overload
it
> > on integer type, so we either need to
> > make multiple versions of it, or else use >> on negative ints without
> > encapsulating them.
> 
> This is fine, but there should be a comment here.  There should also be a test
> somewhere or a STATIC_ASSERT that would fail if an implementation did the
wrong
> thing.

Added test to test-utils.cc.
Added comment.

http://codereview.chromium.org/115860/diff/10/12#newcode300
Line 300: rinfo_.data_ += signed_b >> kPositionTypeTagBits;
On 2009/05/29 09:43:37, Kevin Millikin wrote:
> Possibly also a comment here.

Done.

Powered by Google App Engine
This is Rietveld 408576698