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

Issue 5545006: Optimized scanner to avoid virtual calls for every character read. (Closed)

Created:
10 years ago by Lasse Reichstein
Modified:
9 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

Optimized scanner to avoid virtual calls for every character read. Committed as revision 5935

Patch Set 1 #

Total comments: 40

Patch Set 2 : Addressed review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+889 lines, -338 lines) Patch
M src/api.cc View 1 1 chunk +11 lines, -3 lines 0 comments Download
M src/checks.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/compiler.cc View 1 1 chunk +8 lines, -1 line 0 comments Download
M src/parser.h View 6 chunks +24 lines, -9 lines 0 comments Download
M src/parser.cc View 1 24 chunks +77 lines, -42 lines 0 comments Download
M src/preparser.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/preparser-api.cc View 1 1 chunk +54 lines, -11 lines 0 comments Download
M src/scanner.h View 1 5 chunks +84 lines, -117 lines 0 comments Download
M src/scanner.cc View 1 3 chunks +254 lines, -113 lines 0 comments Download
M src/scanner-base.h View 1 3 chunks +62 lines, -18 lines 0 comments Download
M src/scanner-base.cc View 1 4 chunks +18 lines, -15 lines 0 comments Download
M test/cctest/test-parsing.cc View 5 chunks +294 lines, -9 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Lasse Reichstein
10 years ago (2010-12-07 08:31:32 UTC) #1
Erik Corry
lgtm but see below. http://codereview.chromium.org/5545006/diff/1/src/compiler.cc File src/compiler.cc (right): http://codereview.chromium.org/5545006/diff/1/src/compiler.cc#newcode285 src/compiler.cc:285: Handle<ExternalTwoByteString>::cast(source), 0, source->length()); This is ...
10 years ago (2010-12-07 12:27:30 UTC) #2
Lasse Reichstein
http://codereview.chromium.org/5545006/diff/1/src/compiler.cc File src/compiler.cc (right): http://codereview.chromium.org/5545006/diff/1/src/compiler.cc#newcode285 src/compiler.cc:285: Handle<ExternalTwoByteString>::cast(source), 0, source->length()); As discussed offline, let's leave it ...
10 years ago (2010-12-07 14:05:53 UTC) #3
Vitaly Repeshko
10 years ago (2010-12-07 14:15:49 UTC) #4
Drive by comment.

http://codereview.chromium.org/5545006/diff/1/src/parser.cc
File src/parser.cc (right):

http://codereview.chromium.org/5545006/diff/1/src/parser.cc#newcode2439
src/parser.cc:2439: && Token::IsCountOp(peek())) {
On 2010/12/07 14:05:54, Lasse Reichstein wrote:
> I prefer having them on the second line, but let's be consistent for now and
do
> a sweeping change later :)

Please don't :)

While
http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml?showone=Boolea...
does not prohibit having them on the second line, it says the style with
trailing operators is more common.

Powered by Google App Engine
This is Rietveld 408576698