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

Issue 196077: X64: Extract all smi operations into MacroAssembler macros. (Closed)

Created:
11 years, 3 months ago by Lasse Reichstein
Modified:
9 years, 6 months ago
Reviewers:
William Hesse
CC:
v8-dev
Visibility:
Public.

Description

X64: Extract all smi operations into MacroAssembler macros. First step in changing Smi representation.

Patch Set 1 #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+1176 lines, -545 lines) Patch
M src/ia32/assembler-ia32.h View 1 chunk +1 line, -1 line 0 comments Download
M src/x64/assembler-x64.h View 5 chunks +13 lines, -2 lines 0 comments Download
M src/x64/assembler-x64.cc View 3 chunks +11 lines, -2 lines 0 comments Download
M src/x64/builtins-x64.cc View 15 chunks +20 lines, -23 lines 3 comments Download
M src/x64/codegen-x64.cc View 64 chunks +173 lines, -419 lines 5 comments Download
M src/x64/ic-x64.cc View 14 chunks +18 lines, -29 lines 0 comments Download
M src/x64/macro-assembler-x64.h View 1 chunk +209 lines, -0 lines 0 comments Download
M src/x64/macro-assembler-x64.cc View 1 chunk +680 lines, -0 lines 0 comments Download
M src/x64/stub-cache-x64.cc View 19 chunks +19 lines, -37 lines 0 comments Download
M src/x64/virtual-frame-x64.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M test/mjsunit/smi-negative-zero.js View 2 chunks +30 lines, -30 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Lasse Reichstein
Review, and any suggestions for abstracting indexing by a smi, please.
11 years, 3 months ago (2009-09-10 09:38:59 UTC) #1
William Hesse
LGTM. Is there a performance impact? http://codereview.chromium.org/196077/diff/1/5 File src/x64/builtins-x64.cc (right): http://codereview.chromium.org/196077/diff/1/5#newcode358 Line 358: __ PositiveSmiTimesPowerOfTwoToInteger64(rdx, ...
11 years, 3 months ago (2009-09-10 11:13:22 UTC) #2
Lasse Reichstein
Performance is approx. the same (~0.2% increase on V8 benchmark suite). http://codereview.chromium.org/196077/diff/1/5 File src/x64/builtins-x64.cc (right): ...
11 years, 3 months ago (2009-09-10 12:28:11 UTC) #3
Lasse Reichstein
11 years, 3 months ago (2009-09-10 12:45:35 UTC) #4
http://codereview.chromium.org/196077/diff/1/5
File src/x64/builtins-x64.cc (right):

http://codereview.chromium.org/196077/diff/1/5#newcode358
Line 358: __ PositiveSmiTimesPowerOfTwoToInteger64(rdx, rdx, kPointerSizeLog2);
Ah, you were referring to the implementation. That did miss a zero extension in
the general case.

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

http://codereview.chromium.org/196077/diff/1/6#newcode727
Line 727: Condition is_smi = masm_->CheckSmi(receiver.reg());
... but I'll leave that for a later change (e.g. when abstracting indexing using
a smi).

Powered by Google App Engine
This is Rietveld 408576698