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

Issue 6350021: Introduce ToNumber stub and use it in non-optimized code for to-number conver... (Closed)

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

Description

Introduce ToNumber stub and use it in non-optimized code for to-number conversion. This stub is used for increment/decrement operations and unary plus. The resulting code is more compact and faster than calling a JS builtin. Committed: http://code.google.com/p/v8/source/detail?r=6527

Patch Set 1 #

Total comments: 5

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -12 lines) Patch
M src/arm/code-stubs-arm.cc View 1 1 chunk +22 lines, -0 lines 0 comments Download
M src/arm/full-codegen-arm.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M src/code-stubs.h View 2 chunks +14 lines, -0 lines 0 comments Download
M src/ia32/code-stubs-ia32.cc View 1 1 chunk +22 lines, -0 lines 0 comments Download
M src/ia32/full-codegen-ia32.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M src/x64/code-stubs-x64.cc View 1 1 chunk +22 lines, -0 lines 0 comments Download
M src/x64/full-codegen-x64.cc View 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
fschneider
9 years, 11 months ago (2011-01-28 14:05:15 UTC) #1
William Hesse
LGTM, with comments. http://codereview.chromium.org/6350021/diff/1/src/ia32/code-stubs-ia32.cc File src/ia32/code-stubs-ia32.cc (right): http://codereview.chromium.org/6350021/diff/1/src/ia32/code-stubs-ia32.cc#newcode48 src/ia32/code-stubs-ia32.cc:48: __ ret(0); Ret() is an alternative ...
9 years, 11 months ago (2011-01-28 14:12:28 UTC) #2
fschneider
9 years, 11 months ago (2011-01-28 14:17:32 UTC) #3
http://codereview.chromium.org/6350021/diff/1/src/x64/code-stubs-x64.cc
File src/x64/code-stubs-x64.cc (right):

http://codereview.chromium.org/6350021/diff/1/src/x64/code-stubs-x64.cc#newco...
src/x64/code-stubs-x64.cc:43: // It is assumed to be already smi-checked.
On 2011/01/28 14:12:28, William Hesse wrote:
> This comment is probably wrong.  Otherwise, we wouldn't smi-check here.

Done.

http://codereview.chromium.org/6350021/diff/1/src/x64/code-stubs-x64.cc#newco...
src/x64/code-stubs-x64.cc:47: __ ret(0);
On 2011/01/28 14:12:28, William Hesse wrote:
> Ret() is an alternative to ret(0).

Done.

Powered by Google App Engine
This is Rietveld 408576698