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

Issue 8008016: Small refactor to KeyedStoreIC::GenerateGeneric to make it slightly faster. (Closed)

Created:
9 years, 3 months ago by Yang
Modified:
9 years, 2 months ago
Reviewers:
Rico
CC:
v8-dev
Visibility:
Public.

Description

Small refactor to KeyedStoreIC::GenerateGeneric to make it slightly faster. Committed: http://code.google.com/p/v8/source/detail?r=9418

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -27 lines) Patch
M src/arm/ic-arm.cc View 2 chunks +13 lines, -16 lines 2 comments Download
M src/ia32/ic-ia32.cc View 1 chunk +11 lines, -11 lines 1 comment Download

Messages

Total messages: 2 (0 generated)
Yang
Please take a look. Checking for smi before checking for non-smi array should make storing ...
9 years, 3 months ago (2011-09-23 14:45:45 UTC) #1
Rico
9 years, 3 months ago (2011-09-24 18:40:35 UTC) #2
LGTM

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

http://codereview.chromium.org/8008016/diff/1/src/arm/ic-arm.cc#newcode1367
src/arm/ic-arm.cc:1367: __ add(address, elements,
fits on one line

http://codereview.chromium.org/8008016/diff/1/src/arm/ic-arm.cc#newcode1375
src/arm/ic-arm.cc:1375: // Make sure the elements are smi-only.
Comment seems wrong now, that is not what we check anymore.
Probably something like:
// If this is a smi only array call runtime.
(or be more generic if you like, this might not be Danno's last array type
specialization :-) )

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

http://codereview.chromium.org/8008016/diff/1/src/ia32/ic-ia32.cc#newcode821
src/ia32/ic-ia32.cc:821: if (FLAG_smi_only_arrays) {
Move (corrected) comment from ic-arm.cc in here

Powered by Google App Engine
This is Rietveld 408576698