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

Issue 3387003: Replace 2 ARM ldr instructions with one ldrd in the code generated... (Closed)

Created:
10 years, 3 months ago by Erik Corry
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Replace 2 ARM ldr instructions with one ldrd in the code generated for a SubStringStub and StringCompareStub in the ARM backend. This is a commit of http://codereview.chromium.org/3341012 for Andreas Anyuru. Committed: http://code.google.com/p/v8/source/detail?r=5457

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -25 lines) Patch
M AUTHORS View 1 chunk +1 line, -0 lines 0 comments Download
M src/arm/code-stubs-arm.cc View 9 chunks +28 lines, -25 lines 6 comments Download

Messages

Total messages: 3 (0 generated)
Erik Corry
10 years, 3 months ago (2010-09-15 09:59:49 UTC) #1
Søren Thygesen Gjesse
LGTM http://codereview.chromium.org/3387003/diff/1/3 File src/arm/code-stubs-arm.cc (right): http://codereview.chromium.org/3387003/diff/1/3#newcode4218 src/arm/code-stubs-arm.cc:4218: __ b(lt, &runtime); // Fail if to > ...
10 years, 3 months ago (2010-09-15 10:09:06 UTC) #2
Erik Corry
10 years, 3 months ago (2010-09-15 10:22:41 UTC) #3
http://codereview.chromium.org/3387003/diff/1/3
File src/arm/code-stubs-arm.cc (right):

http://codereview.chromium.org/3387003/diff/1/3#newcode4218
src/arm/code-stubs-arm.cc:4218: __ b(lt, &runtime);  // Fail if to > length.
On 2010/09/15 10:09:07, Søren Gjesse wrote:
> Looks as if "to" is not live after here, maybe set it to no_reg at this
point...

Done.

http://codereview.chromium.org/3387003/diff/1/3#newcode4242
src/arm/code-stubs-arm.cc:4242: Label make_two_character_string;
On 2010/09/15 10:09:07, Søren Gjesse wrote:
> ... and then "from" should be set to no_reg here (and before all other calls
to
> StringHelper functions which clobbers r7) ... maybe not.

No, r7 with its original contents is used below here.

http://codereview.chromium.org/3387003/diff/1/3#newcode4309
src/arm/code-stubs-arm.cc:4309: StringHelper::GenerateCopyCharactersLong(masm,
r1, r5, r2, r3, r4, r6, r7,
On 2010/09/15 10:09:07, Søren Gjesse wrote:
> All arguments on a single (new line)?

Done.

Powered by Google App Engine
This is Rietveld 408576698