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

Issue 1389313003: [parser] fix token end position for regexp literals (Closed)

Created:
5 years, 2 months ago by caitp (gmail)
Modified:
5 years, 2 months ago
Reviewers:
wingo, adamk, rossberg
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

[parser] fix token end position for regexp literals Make the end position of a regexp literal the first character following the regexp. This matches the behaviour of number literals and string literals, as well as single-character tokens. This change corrects the lazy-parsing of arrow functions with concise bodies, whose last token is a regular expression literal. BUG=v8:4474 LOG=N R=wingo@igalia.com, adamk@chromium.org, rossberg@chromium.org Committed: https://crrev.com/e2be5ce542b76637efa5f984f2413d85951d5077 Cr-Commit-Position: refs/heads/master@{#31189}

Patch Set 1 #

Patch Set 2 : Better fix #

Patch Set 3 : Fix test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -1 line) Patch
M src/scanner.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/es6/arrow-functions.js View 1 2 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (1 generated)
caitp (gmail)
PTAL Just going through the available bugs, and this one looked pretty simple to solve. ...
5 years, 2 months ago (2015-10-07 15:47:04 UTC) #1
caitp (gmail)
On 2015/10/07 15:47:04, caitp wrote: > PTAL > > Just going through the available bugs, ...
5 years, 2 months ago (2015-10-07 15:47:58 UTC) #2
caitp (gmail)
On 2015/10/07 15:47:58, caitp wrote: > On 2015/10/07 15:47:04, caitp wrote: > > PTAL > ...
5 years, 2 months ago (2015-10-07 17:45:15 UTC) #3
adamk
Did you do any git blame archaeology to see where that "- 1" came from? ...
5 years, 2 months ago (2015-10-07 18:12:16 UTC) #4
caitp (gmail)
On 2015/10/07 18:12:16, adamk wrote: > Did you do any git blame archaeology to see ...
5 years, 2 months ago (2015-10-07 18:14:19 UTC) #5
adamk
On 2015/10/07 18:14:19, caitp wrote: > On 2015/10/07 18:12:16, adamk wrote: > > Did you ...
5 years, 2 months ago (2015-10-07 22:34:38 UTC) #6
caitp (gmail)
On 2015/10/07 22:34:38, adamk wrote: > On 2015/10/07 18:14:19, caitp wrote: > > On 2015/10/07 ...
5 years, 2 months ago (2015-10-07 23:00:48 UTC) #7
adamk
Ah, I misunderstood (hadn't gone back to re-read what the parser does for regexps). This ...
5 years, 2 months ago (2015-10-07 23:37:39 UTC) #8
adamk
Oh, but please update the CL description (including the first line) to make it clear ...
5 years, 2 months ago (2015-10-07 23:45:24 UTC) #9
caitp (gmail)
On 2015/10/07 23:45:24, adamk wrote: > Oh, but please update the CL description (including the ...
5 years, 2 months ago (2015-10-08 04:19:00 UTC) #10
caitp (gmail)
On 2015/10/08 04:19:00, caitp wrote: > On 2015/10/07 23:45:24, adamk wrote: > > Oh, but ...
5 years, 2 months ago (2015-10-09 00:38:19 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1389313003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1389313003/40001
5 years, 2 months ago (2015-10-09 00:41:53 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 2 months ago (2015-10-09 01:02:02 UTC) #14
commit-bot: I haz the power
5 years, 2 months ago (2015-10-09 01:02:13 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/e2be5ce542b76637efa5f984f2413d85951d5077
Cr-Commit-Position: refs/heads/master@{#31189}

Powered by Google App Engine
This is Rietveld 408576698