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

Issue 7669: Incomplete change for inlining more smi cases for (Closed)

Created:
12 years, 2 months ago by Kasper Lund
Modified:
9 years, 7 months ago
Reviewers:
iposva
CC:
v8-dev
Visibility:
Public.

Description

Refactor the smi case inlining for binary operations, so it's easier to inline the code on demand. Right now, we still only inline the smi case code for bitwise operations. Committed: http://code.google.com/p/v8/source/detail?r=547

Patch Set 1 #

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+254 lines, -265 lines) Patch
M src/assembler-ia32.cc View 1 chunk +17 lines, -5 lines 0 comments Download
M src/codegen-ia32.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/codegen-ia32.cc View 1 10 chunks +235 lines, -259 lines 3 comments Download

Messages

Total messages: 1 (0 generated)
iposva
12 years, 2 months ago (2008-10-21 16:59:22 UTC) #1
Other than the VirtualFrame vs native frame confusion below, this change LGTM.

-Ivan

http://codereview.chromium.org/7669/diff/401/404
File src/codegen-ia32.cc (right):

http://codereview.chromium.org/7669/diff/401/404#newcode774
Line 774: __ push(eax);
This push here relies on the fact that the code generators VirtualFrame frame_
maps directly to the machine frame. I think this should be changed to return the
result in eax.

http://codereview.chromium.org/7669/diff/401/404#newcode819
Line 819: __ mov(eax, frame_->Top());  // get x
This should be a Pop(reg) to balance it with the requirement for the Push(eax)
below.

http://codereview.chromium.org/7669/diff/401/404#newcode827
Line 827: __ mov(frame_->Top(), eax);
We should frame_->Push(eax) here, since the deferred code does not know the
location of the virtual frame top. It works now, because the virtual frame and
the machine frame are exact mappings.

Powered by Google App Engine
This is Rietveld 408576698