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

Issue 3574002: Rename some x64 macros to be more precise about their semantics. (Closed)

Created:
10 years, 2 months ago by antonm
Modified:
9 years, 4 months ago
Reviewers:
Lasse Reichstein
CC:
v8-dev
Visibility:
Public.

Description

Rename some x64 macros to be more precise about their semantics. Committed: http://code.google.com/p/v8/source/detail?r=5566

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressing Lasse's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -44 lines) Patch
M src/x64/builtins-x64.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/x64/code-stubs-x64.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/x64/codegen-x64.cc View 1 5 chunks +6 lines, -8 lines 0 comments Download
M src/x64/full-codegen-x64.cc View 1 3 chunks +4 lines, -4 lines 0 comments Download
M src/x64/ic-x64.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/x64/macro-assembler-x64.h View 1 5 chunks +17 lines, -17 lines 0 comments Download
M src/x64/macro-assembler-x64.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M test/cctest/test-macro-assembler-x64.cc View 1 chunk +7 lines, -7 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
antonm
Lasse, I am not sure if this nit-picking is worth the noise. However I was ...
10 years, 2 months ago (2010-09-29 18:15:22 UTC) #1
Lasse Reichstein
Who could possibly object to nit-picking?!? LGTM. http://codereview.chromium.org/3574002/diff/1/5 File src/x64/full-codegen-x64.cc (right): http://codereview.chromium.org/3574002/diff/1/5#newcode1968 src/x64/full-codegen-x64.cc:1968: Condition non_negative_smi ...
10 years, 2 months ago (2010-09-30 09:30:13 UTC) #2
antonm
10 years, 2 months ago (2010-09-30 11:47:44 UTC) #3
Thanks a lot for review, Lasse.  Submitting

http://codereview.chromium.org/3574002/diff/1/5
File src/x64/full-codegen-x64.cc (right):

http://codereview.chromium.org/3574002/diff/1/5#newcode1968
src/x64/full-codegen-x64.cc:1968: Condition non_negative_smi = __
CheckNonNegativeSmi(rax);
On 2010/09/30 09:30:13, Lasse Reichstein wrote:
> Should be masm()-> (or however the macroassembler is accessed here). The __
> macro should not be used for calls that return values.

Oops, thanks a lot.  I fixed couple more similar places.

http://codereview.chromium.org/3574002/diff/1/8
File src/x64/macro-assembler-x64.h (right):

http://codereview.chromium.org/3574002/diff/1/8#newcode316
src/x64/macro-assembler-x64.h:316: void JumpIfNotSmiOrNegative(Register src,
LabelType* on_not_smi);
On 2010/09/30 09:30:13, Lasse Reichstein wrote:
> or negative what?
> Is it the double (triple?) negation that made you not call it
>  JumpIfNotNonNegativeSmi
> ? That would be more consistent, but admittedly a bit awkward.

As discussed on IM, we settled down on JumpUnlessNonNegatoveSmi and
JumpUnlessBothNonNegativeSmi

Powered by Google App Engine
This is Rietveld 408576698