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

Issue 465028: String check for binary add on x64 and ARM... (Closed)

Created:
11 years ago by Søren Thygesen Gjesse
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

String check for binary add on x64 and ARM The checking for strings when performing binary add was missing on x64 and ARM. This is a prerequisite for adding string add in generated code for these two platforms. Committed: http://code.google.com/p/v8/source/detail?r=3416

Patch Set 1 #

Total comments: 10

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -1 line) Patch
M src/arm/codegen-arm.cc View 1 1 chunk +45 lines, -0 lines 0 comments Download
M src/x64/codegen-x64.cc View 1 1 chunk +39 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
Søren Thygesen Gjesse
11 years ago (2009-12-03 13:00:55 UTC) #1
Lasse Reichstein
LGTM http://codereview.chromium.org/465028/diff/1/3 File src/arm/codegen-arm.cc (right): http://codereview.chromium.org/465028/diff/1/3#newcode5207 src/arm/codegen-arm.cc:5207: __ mov(r0, Operand(1)); // Set number of arguments. ...
11 years ago (2009-12-04 08:07:12 UTC) #2
Søren Thygesen Gjesse
11 years ago (2009-12-04 09:57:36 UTC) #3
http://codereview.chromium.org/465028/diff/1/3
File src/arm/codegen-arm.cc (right):

http://codereview.chromium.org/465028/diff/1/3#newcode5207
src/arm/codegen-arm.cc:5207: __ mov(r0, Operand(1));  // Set number of
arguments.
On 2009/12/04 08:07:12, Lasse Reichstein wrote:
> Why is number of arguments 1 here, not 2?

Good, question. It looks as if passing number of arguments in r0 in no longer
used. Will remove all these in separate changelist.

http://codereview.chromium.org/465028/diff/1/2
File src/x64/codegen-x64.cc (right):

http://codereview.chromium.org/465028/diff/1/2#newcode7732
src/x64/codegen-x64.cc:7732: __ InvokeBuiltin(Builtins::ADD, JUMP_FUNCTION);
On 2009/12/04 08:07:12, Lasse Reichstein wrote:
> Still calling it first?

Certainly not - good catch - removed. After removing this it turned out that I
had first and second argument mixed up in the code below.

http://codereview.chromium.org/465028/diff/1/2#newcode7739
src/x64/codegen-x64.cc:7739: is_smi = __ CheckSmi(rax);
On 2009/12/04 08:07:12, Lasse Reichstein wrote:
> Use masm->CheckSmi(rax) (or masm() or masm_ or whatever __ expands to here).
The
> __ macro for doing coverage testing doesn't allow returning a value.

__ -> masm-> (masm passed as parameter).

http://codereview.chromium.org/465028/diff/1/2#newcode7745
src/x64/codegen-x64.cc:7745: is_smi = __ CheckSmi(rdx);
On 2009/12/04 08:07:12, Lasse Reichstein wrote:
> Ditto on __.

Done.

http://codereview.chromium.org/465028/diff/1/2#newcode7760
src/x64/codegen-x64.cc:7760: is_smi = __ CheckSmi(rdx);
On 2009/12/04 08:07:12, Lasse Reichstein wrote:
> And again.

Done.

Powered by Google App Engine
This is Rietveld 408576698