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

Issue 5733004: Attempt to fix compare performance regression.

Created:
10 years ago by Vitaly Repeshko
Modified:
10 years ago
Reviewers:
fschneider
CC:
v8-dev
Visibility:
Public.

Description

Attempt to fix compare performance regression.

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -6 lines) Patch
M src/ia32/ic-ia32.cc View 1 chunk +12 lines, -1 line 0 comments Download
M src/ic.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/ic.cc View 1 chunk +7 lines, -4 lines 1 comment Download

Messages

Total messages: 2 (0 generated)
Vitaly Repeshko
10 years ago (2010-12-11 02:20:28 UTC) #1
fschneider
10 years ago (2010-12-11 15:18:46 UTC) #2
LGTM!

http://codereview.chromium.org/5733004/diff/1/src/ic.cc
File src/ic.cc (right):

http://codereview.chromium.org/5733004/diff/1/src/ic.cc#newcode2142
src/ic.cc:2142: x->IsNumber() && y->IsNumber()) return HEAP_NUMBERS;
Would the condition 
(state == UNINITIALIZED || state == SMIS) &&
x->IsNumber() &&
y->IsNumber())

be sufficient here? So that we always go from SMI to HEAP_NUMBER before going to
GENERIC.

Powered by Google App Engine
This is Rietveld 408576698