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

Issue 596082: Optimize string plus smi... (Closed)

Created:
10 years, 10 months ago by Søren Thygesen Gjesse
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Optimize string plus smi When adding a string with a smi value the number string cache is checked in generated code. If the there is a string value in the number string cache the resulting string is produced in generated code. Committed: http://code.google.com/p/v8/source/detail?r=3843

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 2

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -7 lines) Patch
M src/ia32/assembler-ia32.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/ia32/codegen-ia32.cc View 1 2 3 2 chunks +46 lines, -5 lines 0 comments Download
M src/v8-counters.h View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
Søren Thygesen Gjesse
10 years, 10 months ago (2010-02-12 09:28:15 UTC) #1
Mads Ager (chromium)
LGTM http://codereview.chromium.org/596082/diff/6002/6003 File src/ia32/codegen-ia32.cc (right): http://codereview.chromium.org/596082/diff/6002/6003#newcode7677 src/ia32/codegen-ia32.cc:7677: __ IncrementCounter(not_equal, &Counters::string_puls_smi_miss, 1); puls -> plus
10 years, 10 months ago (2010-02-12 10:28:12 UTC) #2
Søren Thygesen Gjesse
10 years, 10 months ago (2010-02-12 11:49:53 UTC) #3
http://codereview.chromium.org/596082/diff/6002/6003
File src/ia32/codegen-ia32.cc (right):

http://codereview.chromium.org/596082/diff/6002/6003#newcode7677
src/ia32/codegen-ia32.cc:7677: __ IncrementCounter(not_equal,
&Counters::string_puls_smi_miss, 1);
On 2010/02/12 10:28:12, Mads Ager wrote:
> puls -> plus

Done (I will should probably remove these counters again soon).

Powered by Google App Engine
This is Rietveld 408576698