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

Issue 6744006: Add binary-op stub variant to handle oddball objects more efficiently. (Closed)

Created:
9 years, 9 months ago by fschneider
Modified:
9 years, 6 months ago
Reviewers:
Erik Corry
CC:
v8-dev
Visibility:
Public.

Description

Add binary-op stub variant to handle oddball objects more efficiently. Committed: http://code.google.com/p/v8/source/detail?r=7396

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Total comments: 12

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -1 line) Patch
M src/arm/code-stubs-arm.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/arm/code-stubs-arm.cc View 1 2 2 chunks +36 lines, -0 lines 0 comments Download
M src/ia32/code-stubs-ia32.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/ia32/code-stubs-ia32.cc View 1 2 2 chunks +36 lines, -1 line 0 comments Download
M src/ic.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/ic.cc View 1 2 3 chunks +6 lines, -0 lines 0 comments Download
M src/x64/code-stubs-x64.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/x64/code-stubs-x64.cc View 1 2 2 chunks +36 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
fschneider
9 years, 9 months ago (2011-03-25 14:11:47 UTC) #1
Erik Corry
LGTM http://codereview.chromium.org/6744006/diff/1/src/ic.cc File src/ic.cc (right): http://codereview.chromium.org/6744006/diff/1/src/ic.cc#newcode2199 src/ic.cc:2199: if (left->IsNumber() && right->IsUndefined()) return ODDBALL; How about ...
9 years, 9 months ago (2011-03-25 14:15:13 UTC) #2
Erik Corry
http://codereview.chromium.org/6744006/diff/1/src/ia32/code-stubs-ia32.cc File src/ia32/code-stubs-ia32.cc (right): http://codereview.chromium.org/6744006/diff/1/src/ia32/code-stubs-ia32.cc#newcode2029 src/ia32/code-stubs-ia32.cc:2029: GenerateAddStrings(masm); Please add comment that we need this because ...
9 years, 9 months ago (2011-03-25 14:21:17 UTC) #3
fschneider
Added x64 and ARM code. Please review! http://codereview.chromium.org/6744006/diff/1/src/ia32/code-stubs-ia32.cc File src/ia32/code-stubs-ia32.cc (right): http://codereview.chromium.org/6744006/diff/1/src/ia32/code-stubs-ia32.cc#newcode2029 src/ia32/code-stubs-ia32.cc:2029: GenerateAddStrings(masm); On ...
9 years, 9 months ago (2011-03-28 08:00:54 UTC) #4
Erik Corry
LGTM http://codereview.chromium.org/6744006/diff/5001/src/arm/code-stubs-arm.cc File src/arm/code-stubs-arm.cc (right): http://codereview.chromium.org/6744006/diff/5001/src/arm/code-stubs-arm.cc#newcode3621 src/arm/code-stubs-arm.cc:3621: // Convert odd ball arguments to numbers. odd ...
9 years, 9 months ago (2011-03-28 15:15:24 UTC) #5
fschneider
9 years, 9 months ago (2011-03-28 16:28:59 UTC) #6
http://codereview.chromium.org/6744006/diff/5001/src/arm/code-stubs-arm.cc
File src/arm/code-stubs-arm.cc (right):

http://codereview.chromium.org/6744006/diff/5001/src/arm/code-stubs-arm.cc#ne...
src/arm/code-stubs-arm.cc:3621: // Convert odd ball arguments to numbers.
On 2011/03/28 15:15:24, Erik Corry wrote:
> odd ball -> oddball

Done.

http://codereview.chromium.org/6744006/diff/5001/src/arm/code-stubs-arm.cc#ne...
src/arm/code-stubs-arm.cc:3623: __ cmp(r1, Operand(FACTORY->undefined_value()));
On 2011/03/28 15:15:24, Erik Corry wrote:
> You should use CompareRoot here.

Done.

http://codereview.chromium.org/6744006/diff/5001/src/arm/code-stubs-arm.cc#ne...
src/arm/code-stubs-arm.cc:3628: __ Move(r1, FACTORY->nan_value());
On 2011/03/28 15:15:24, Erik Corry wrote:
> LoadRoot.

Done.

http://codereview.chromium.org/6744006/diff/5001/src/arm/code-stubs-arm.cc#ne...
src/arm/code-stubs-arm.cc:3637: __ Move(r0, FACTORY->nan_value());
On 2011/03/28 15:15:24, Erik Corry wrote:
> LoadRoot

Done.

http://codereview.chromium.org/6744006/diff/5001/src/ic.cc
File src/ic.cc (right):

http://codereview.chromium.org/6744006/diff/5001/src/ic.cc#newcode2200
src/ic.cc:2200: if (left->IsUndefined() && right->IsUndefined()) return ODDBALL;
On 2011/03/28 15:15:24, Erik Corry wrote:
> The ARM code can't actually handle this case.

Done.

http://codereview.chromium.org/6744006/diff/5001/src/x64/code-stubs-x64.cc
File src/x64/code-stubs-x64.cc (right):

http://codereview.chromium.org/6744006/diff/5001/src/x64/code-stubs-x64.cc#ne...
src/x64/code-stubs-x64.cc:1455: __ Cmp(rdx, FACTORY->undefined_value());
On 2011/03/28 15:15:24, Erik Corry wrote:
> CompareRoot and LoadRoot.

Done.

Powered by Google App Engine
This is Rietveld 408576698