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

Issue 2044233004: Speed up adding literal chars when the buffer is known to be one-byte (Closed)

Created:
4 years, 6 months ago by Toon Verwaest
Modified:
4 years, 6 months ago
Reviewers:
vogelheim, adamk
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Speed up adding literal chars when the buffer is known to be one-byte We have fast-paths in identifier and string scanning that know that so far they have only handled one-byte input. In that case, we can add chars to the literal buffer assuming that it's still in one-byte state, avoiding 2 branches. This seemingly reduces identifier scanning from ~5% to ~4% on octane-codeload. BUG= Committed: https://crrev.com/e7de678a2c108949856e3005fe62f43d49aad7ec Cr-Commit-Position: refs/heads/master@{#36868}

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -10 lines) Patch
M src/parsing/scanner.h View 1 2 chunks +17 lines, -2 lines 0 comments Download
M src/parsing/scanner.cc View 1 2 5 chunks +5 lines, -8 lines 0 comments Download

Messages

Total messages: 19 (9 generated)
Toon Verwaest
ptal
4 years, 6 months ago (2016-06-08 11:43:42 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2044233004/1
4 years, 6 months ago (2016-06-08 13:32:27 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-08 14:00:17 UTC) #7
vogelheim
lgtm https://codereview.chromium.org/2044233004/diff/1/src/parsing/scanner.h File src/parsing/scanner.h (right): https://codereview.chromium.org/2044233004/diff/1/src/parsing/scanner.h#newcode163 src/parsing/scanner.h:163: DCHECK(is_one_byte_); Maybe also dcheck whether code_unit is actually ...
4 years, 6 months ago (2016-06-09 12:05:15 UTC) #8
Toon Verwaest
Addressed comment
4 years, 6 months ago (2016-06-09 14:01:31 UTC) #9
Toon Verwaest
adamk: ptal as owner of parsing
4 years, 6 months ago (2016-06-09 14:03:21 UTC) #11
adamk
lgtm
4 years, 6 months ago (2016-06-09 14:40:44 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2044233004/40001
4 years, 6 months ago (2016-06-09 14:45:46 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-06-09 15:12:47 UTC) #17
commit-bot: I haz the power
4 years, 6 months ago (2016-06-09 15:15:04 UTC) #19
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/e7de678a2c108949856e3005fe62f43d49aad7ec
Cr-Commit-Position: refs/heads/master@{#36868}

Powered by Google App Engine
This is Rietveld 408576698