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 3276004: Simplify code by removing special-casing for single-character patterns (Closed)

Created:
10 years, 3 months ago by sandholm
Modified:
9 years, 7 months ago
Reviewers:
Erik Corry
CC:
v8-dev
Visibility:
Public.

Description

Simplify code by removing special-casing for single-character patterns Committed: http://code.google.com/p/v8/source/detail?r=5380

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 (+33 lines, -251 lines) Patch
M src/runtime.cc View 1 2 3 10 chunks +33 lines, -251 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
sandholm
10 years, 3 months ago (2010-08-30 16:28:48 UTC) #1
sandholm
10 years, 3 months ago (2010-08-31 08:25:19 UTC) #2
Erik Corry
I get around 6% slowdown on an artificial microbenchmark. On the other hand the lure ...
10 years, 3 months ago (2010-08-31 09:01:45 UTC) #3
sandholm
10 years, 3 months ago (2010-08-31 09:13:16 UTC) #4
http://codereview.chromium.org/3276004/diff/6001/7001
File src/runtime.cc (right):

http://codereview.chromium.org/3276004/diff/6001/7001#newcode2834
src/runtime.cc:2834: // We know our pattern is at least 2 characters, we cache
the first so
On 2010/08/31 09:01:45, Erik Corry wrote:
> Comment is wrong.

I added an assertion to make sure comment is correct. 
I also changed the loop back into a do-while to save checks.

Powered by Google App Engine
This is Rietveld 408576698