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

Issue 2843010: ARM: Load the heap number map into a register and keep it... (Closed)

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

Description

ARM: Load the heap number map into a register and keep it there throughout the binary op stub (used for checking and creating heap numbers). Committed: http://code.google.com/p/v8/source/detail?r=4897

Patch Set 1 #

Total comments: 8

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -35 lines) Patch
M src/arm/codegen-arm.h View 1 1 chunk +3 lines, -1 line 0 comments Download
M src/arm/codegen-arm.cc View 1 2 21 chunks +52 lines, -25 lines 0 comments Download
M src/arm/full-codegen-arm.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/arm/ic-arm.cc View 5 chunks +10 lines, -5 lines 0 comments Download
M src/arm/macro-assembler-arm.h View 2 chunks +2 lines, -0 lines 0 comments Download
M src/arm/macro-assembler-arm.cc View 1 3 chunks +14 lines, -3 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Erik Corry
10 years, 6 months ago (2010-06-17 14:04:26 UTC) #1
Søren Thygesen Gjesse
LGTM http://codereview.chromium.org/2843010/diff/1/2 File src/arm/codegen-arm.cc (right): http://codereview.chromium.org/2843010/diff/1/2#newcode7368 src/arm/codegen-arm.cc:7368: ASSERT(heap_number_map.is(r6)); // This is a register that we ...
10 years, 6 months ago (2010-06-17 14:15:25 UTC) #2
Erik Corry
10 years, 6 months ago (2010-06-17 19:27:09 UTC) #3
http://codereview.chromium.org/2843010/diff/1/2
File src/arm/codegen-arm.cc (right):

http://codereview.chromium.org/2843010/diff/1/2#newcode7368
src/arm/codegen-arm.cc:7368: ASSERT(heap_number_map.is(r6));  // This is a
register that we don't use.
On 2010/06/17 14:15:25, Søren Gjesse wrote:
> don't use -> don't otherwise use in this stub?

I delayed the allocation of r6 to avoid penalizing those programs that avoid
non-Smis.  And in the process, the need for this comment evaporated.

http://codereview.chromium.org/2843010/diff/1/2#newcode7762
src/arm/codegen-arm.cc:7762: ASSERT(heap_number_map.is(r6));  // This is a
register we don't use.
On 2010/06/17 14:15:25, Søren Gjesse wrote:
> don't use -> don't otherwise use in this stub?

Ditto.

http://codereview.chromium.org/2843010/diff/1/2#newcode8012
src/arm/codegen-arm.cc:8012: Register num_map = r6;
On 2010/06/17 14:15:25, Søren Gjesse wrote:
> num_map -> heap_number_map for consistency.

This variable went away!

http://codereview.chromium.org/2843010/diff/1/6
File src/arm/macro-assembler-arm.cc (right):

http://codereview.chromium.org/2843010/diff/1/6#newcode1670
src/arm/macro-assembler-arm.cc:1670: // Store heap number map in the allocated
object.
On 2010/06/17 14:15:25, Søren Gjesse wrote:
> Why not also use AssertRegisterIsRoot here?

Done.

Powered by Google App Engine
This is Rietveld 408576698