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

Issue 2119007: ARM: Don't require the receiver on the stack for load IC... (Closed)

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

Description

ARM: Don't require the receiver on the stack for load IC Previously the receier was passed in both r0 and on the stack for a load IC. With this change the receiver is in r0 only. Committed: http://code.google.com/p/v8/source/detail?r=4681

Patch Set 1 #

Total comments: 6

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -78 lines) Patch
M src/arm/codegen-arm.cc View 1 7 chunks +20 lines, -16 lines 0 comments Download
M src/arm/full-codegen-arm.cc View 5 chunks +11 lines, -12 lines 0 comments Download
M src/arm/stub-cache-arm.cc View 1 6 chunks +6 lines, -18 lines 0 comments Download
M src/arm/virtual-frame-arm.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/arm/virtual-frame-arm.cc View 1 2 chunks +36 lines, -31 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Søren Thygesen Gjesse
10 years, 7 months ago (2010-05-19 09:14:56 UTC) #1
Erik Corry
LGTM http://codereview.chromium.org/2119007/diff/1/2 File src/arm/codegen-arm.cc (right): http://codereview.chromium.org/2119007/diff/1/2#newcode5455 src/arm/codegen-arm.cc:5455: __ Swap(r0, r1, ip); We are always spilled ...
10 years, 7 months ago (2010-05-19 09:35:24 UTC) #2
Søren Thygesen Gjesse
10 years, 7 months ago (2010-05-19 10:37:37 UTC) #3
http://codereview.chromium.org/2119007/diff/1/2
File src/arm/codegen-arm.cc (right):

http://codereview.chromium.org/2119007/diff/1/2#newcode5455
src/arm/codegen-arm.cc:5455: __ Swap(r0, r1, ip);
On 2010/05/19 09:35:25, Erik Corry wrote:
> We are always spilled here so there's no reason to do a 3-instruction swap.  
> You could just do __ Move(r0, receiver) which includes the if().

Done.

http://codereview.chromium.org/2119007/diff/1/4
File src/arm/stub-cache-arm.cc (right):

http://codereview.chromium.org/2119007/diff/1/4#newcode1620
src/arm/stub-cache-arm.cc:1620: //  -- r0    : name
On 2010/05/19 09:35:25, Erik Corry wrote:
> Surely r0 is receiver and r2 is name?

r0 is receiver, and no name in any register.

http://codereview.chromium.org/2119007/diff/1/5
File src/arm/virtual-frame-arm.cc (right):

http://codereview.chromium.org/2119007/diff/1/5#newcode524
src/arm/virtual-frame-arm.cc:524: // r0 and r1 contains the same value. Prefer a
state with r0 holding TOS.
On 2010/05/19 09:35:25, Erik Corry wrote:
> Does it lint?

Almost, but not quite. Fixed.

Powered by Google App Engine
This is Rietveld 408576698