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

Issue 1692015: Port handling of heap numbers in deferred code for binary ops from... (Closed)

Created:
10 years, 7 months ago by Mads Ager (chromium)
Modified:
9 years, 7 months ago
Reviewers:
Lasse Reichstein
CC:
v8-dev
Visibility:
Public.

Description

Port handling of heap numbers in deferred code for binary ops from ia32 to x64. Committed: http://code.google.com/p/v8/source/detail?r=4560

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -2 lines) Patch
M src/ia32/codegen-ia32.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/x64/codegen-x64.cc View 2 chunks +72 lines, -2 lines 3 comments Download

Messages

Total messages: 3 (0 generated)
Mads Ager (chromium)
10 years, 7 months ago (2010-04-29 12:09:30 UTC) #1
Lasse Reichstein
LGTM http://codereview.chromium.org/1692015/diff/1/3 File src/x64/codegen-x64.cc (right): http://codereview.chromium.org/1692015/diff/1/3#newcode5915 src/x64/codegen-x64.cc:5915: __ SmiToInteger32(left_, left_); If you have a spare ...
10 years, 7 months ago (2010-04-29 12:36:40 UTC) #2
Mads Ager (chromium)
10 years, 7 months ago (2010-05-03 08:47:08 UTC) #3
I have committed this change in its current state. Once you have the
AllocateHeapNumber method that does not require a scratch register we should get
rid of the push/pop of left_.

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

http://codereview.chromium.org/1692015/diff/1/3#newcode5915
src/x64/codegen-x64.cc:5915: __ SmiToInteger32(left_, left_);
On 2010/04/29 12:36:40, Lasse Reichstein wrote:
> If you have a spare register here, you could convert left_ into an integer in
> that and not have to convert it back afterwards.
> This is X64 - it should be possible to allocate a register - or can't we
because
> this is deferred code?

I can convert the smi into an integer in kScratchRegister and load it from
there. I don't think it will matter for performance since in that case we will
just transform two shifts into a move and a shift.

I have left it as is.

Powered by Google App Engine
This is Rietveld 408576698