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

Issue 7218012: Make ToBooleanStub more consistent across platforms. (Closed)

Created:
9 years, 6 months ago by Sven Panne
Modified:
9 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

Make ToBooleanStub more consistent across platforms. The declaration of the ToBoolean class moved to the platform-independent part and its implementations are now structurally very similar. This is just an intermediate cleanup step to add type recording at the call site. Note that the MIPS implementation has not really been touched, so it should continue to work, too. Committed: http://code.google.com/p/v8/source/detail?r=8359

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -142 lines) Patch
M src/arm/code-stubs-arm.h View 1 chunk +0 lines, -13 lines 0 comments Download
M src/arm/code-stubs-arm.cc View 1 3 chunks +30 lines, -43 lines 0 comments Download
M src/code-stubs.h View 1 chunk +12 lines, -0 lines 0 comments Download
M src/ia32/code-stubs-ia32.h View 1 chunk +0 lines, -12 lines 0 comments Download
M src/ia32/code-stubs-ia32.cc View 2 chunks +20 lines, -20 lines 0 comments Download
M src/ia32/full-codegen-ia32.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M src/ia32/lithium-codegen-ia32.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/mips/code-stubs-mips.h View 1 chunk +0 lines, -13 lines 0 comments Download
M src/mips/code-stubs-mips.cc View 1 3 chunks +2 lines, -3 lines 0 comments Download
M src/x64/code-stubs-x64.h View 1 chunk +0 lines, -12 lines 0 comments Download
M src/x64/code-stubs-x64.cc View 2 chunks +20 lines, -20 lines 0 comments Download
M src/x64/full-codegen-x64.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M src/x64/lithium-codegen-x64.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
Sven Panne
9 years, 6 months ago (2011-06-21 15:54:38 UTC) #1
Mads Ager (chromium)
LGTM with the ARM (and probably MIPS) conditions changed. http://codereview.chromium.org/7218012/diff/1/src/arm/code-stubs-arm.cc File src/arm/code-stubs-arm.cc (right): http://codereview.chromium.org/7218012/diff/1/src/arm/code-stubs-arm.cc#newcode1661 src/arm/code-stubs-arm.cc:1661: ...
9 years, 6 months ago (2011-06-22 07:43:24 UTC) #2
Sven Panne
9 years, 6 months ago (2011-06-22 08:02:59 UTC) #3
http://codereview.chromium.org/7218012/diff/1/src/arm/code-stubs-arm.cc
File src/arm/code-stubs-arm.cc (right):

http://codereview.chromium.org/7218012/diff/1/src/arm/code-stubs-arm.cc#newco...
src/arm/code-stubs-arm.cc:1661: __ Ret(gt);
On 2011/06/22 07:43:24, Mads Ager wrote:
> Not your change, but this should be ge, right? Otherwise we will not handle
> JS_VALUE_TYPE == FIRST_SPEC_OBJECT_TYPE here. I think we will handle it
> correctly below because it is not a string and not a heap number, but let's do
> it here instead.

Done, and for the corresponding test in code-stubs-mips.cc, too.

http://codereview.chromium.org/7218012/diff/1/src/arm/code-stubs-arm.cc#newco...
src/arm/code-stubs-arm.cc:1665: __ b(&not_string, gt);
On 2011/06/22 07:43:24, Mads Ager wrote:
> Again, this should be ge to accound for FIRST_NONSTRING_TYPE not being a
string
> (it is a map, so it shouldn't happen, but still).

Done, and for the corresponding test in code-stubs-mips.cc, too.

Powered by Google App Engine
This is Rietveld 408576698