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

Issue 6658034: ARM: Implement inline conversion of heap numbers to int32 values for bitoperations. (Closed)

Created:
9 years, 9 months ago by Karl Klose
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

ARM: Implement inline conversion of heap numbers to int32 values for bitoperations. For bit operations, values are truncated and converted to the range -2^31 through 2^31 - 1. This patch provides inlined handling of this conversion for all heap numbers. Before, we were calling runtime for every heap number that did not fit into a signed int32.

Patch Set 1 #

Patch Set 2 : Fix bug. #

Total comments: 24

Patch Set 3 : Address comments. #

Total comments: 4

Patch Set 4 : Fixed text in source comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -47 lines) Patch
M src/arm/code-stubs-arm.cc View 1 2 3 5 chunks +115 lines, -47 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Karl Klose
9 years, 9 months ago (2011-03-10 13:38:31 UTC) #1
Søren Thygesen Gjesse
LGTM http://codereview.chromium.org/6658034/diff/2001/src/arm/code-stubs-arm.cc File src/arm/code-stubs-arm.cc (right): http://codereview.chromium.org/6658034/diff/2001/src/arm/code-stubs-arm.cc#newcode406 src/arm/code-stubs-arm.cc:406: static void LoadNumberAsInteger(MacroAssembler* masm, Maybe this function should ...
9 years, 9 months ago (2011-03-10 14:20:30 UTC) #2
Rodolph Perfetta
drive by comments. http://codereview.chromium.org/6658034/diff/2001/src/arm/code-stubs-arm.cc File src/arm/code-stubs-arm.cc (right): http://codereview.chromium.org/6658034/diff/2001/src/arm/code-stubs-arm.cc#newcode639 src/arm/code-stubs-arm.cc:639: __ vldr(double_scratch, FieldMemOperand(object, HeapNumber::kValueOffset)); Use Ldrd, ...
9 years, 9 months ago (2011-03-10 14:36:44 UTC) #3
Karl Klose
Thank you for the comments, Soeren and Rodolph. I have uploaded a new version, please ...
9 years, 9 months ago (2011-03-11 09:27:39 UTC) #4
Søren Thygesen Gjesse
LGTM http://codereview.chromium.org/6658034/diff/6001/src/arm/code-stubs-arm.cc File src/arm/code-stubs-arm.cc (right): http://codereview.chromium.org/6658034/diff/6001/src/arm/code-stubs-arm.cc#newcode637 src/arm/code-stubs-arm.cc:637: __ bind(&not_in_int32_range); There is a macro assembler instruction ...
9 years, 9 months ago (2011-03-11 10:06:24 UTC) #5
Alexandre
A suggestion to rename a function and move it to the MacroAssembler. I implemented the ...
9 years, 9 months ago (2011-03-11 11:08:34 UTC) #6
Rodolph Perfetta
9 years, 9 months ago (2011-03-11 11:09:54 UTC) #7
LGTM.

Powered by Google App Engine
This is Rietveld 408576698