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

Issue 522015: Faster handling of string indexing using [] with a SMI index.... (Closed)

Created:
10 years, 12 months ago by fschneider
Modified:
9 years, 6 months ago
Reviewers:
Kasper Lund
CC:
v8-dev
Visibility:
Public.

Description

Faster handling of string indexing using [] with a SMI index. Instead of falling back to calling GetObjectProperty we call GetCharAt directly if the object is a string and the key in a SMI. Committed: http://code.google.com/p/v8/source/detail?r=3528

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -1 line) Patch
M src/runtime.cc View 1 2 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
fschneider
10 years, 12 months ago (2009-12-28 12:49:07 UTC) #1
Kasper Lund
LGTM. http://codereview.chromium.org/522015/diff/1/2 File src/runtime.cc (right): http://codereview.chromium.org/522015/diff/1/2#newcode2778 src/runtime.cc:2778: } else if (args[0]->IsString() && Fits nicely on ...
10 years, 12 months ago (2009-12-28 12:52:46 UTC) #2
fschneider
10 years, 12 months ago (2009-12-28 13:00:29 UTC) #3
http://codereview.chromium.org/522015/diff/1/2
File src/runtime.cc (right):

http://codereview.chromium.org/522015/diff/1/2#newcode2778
src/runtime.cc:2778: } else if (args[0]->IsString() &&
On 2009/12/28 12:52:46, Kasper Lund wrote:
> Fits nicely on one line, right?

Done.

http://codereview.chromium.org/522015/diff/1/2#newcode2780
src/runtime.cc:2780: // Fast case for string indexing using [] with a SMI index.
On 2009/12/28 12:52:46, Kasper Lund wrote:
> SMI -> Smi or smi

Done.

Powered by Google App Engine
This is Rietveld 408576698