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

Issue 768203002: Simplify template literal raw string creation (Closed)

Created:
6 years ago by arv (Not doing code reviews)
Modified:
6 years ago
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Project:
v8
Visibility:
Public.

Description

Simplify template literal raw string creation BUG=v8:3710 LOG=Y R=dslomov@chromium.org, marja@chromium.org

Patch Set 1 #

Total comments: 8

Patch Set 2 : Capture the raw characters in the scanner #

Patch Set 3 : Add DCHECK in PushBack and remove some unused functions #

Total comments: 1

Patch Set 4 : git rebase #

Patch Set 5 : Reduce length in PushBack instead #

Total comments: 1

Patch Set 6 : Add harmony unicode test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -94 lines) Patch
M src/parser.h View 1 2 3 3 chunks +8 lines, -10 lines 0 comments Download
M src/parser.cc View 1 2 3 5 chunks +21 lines, -71 lines 0 comments Download
M src/scanner.h View 1 2 3 4 11 chunks +57 lines, -9 lines 0 comments Download
M src/scanner.cc View 1 2 3 6 chunks +29 lines, -3 lines 0 comments Download
M test/mjsunit/harmony/templates.js View 1 2 3 4 5 2 chunks +26 lines, -1 line 0 comments Download

Messages

Total messages: 38 (5 generated)
arv (Not doing code reviews)
PTAL Instead of using an UTF8 encoder use a StringCharacterStream.
6 years ago (2014-12-01 19:48:53 UTC) #1
caitp (gmail)
On 2014/12/01 19:48:53, arv wrote: > PTAL > > Instead of using an UTF8 encoder ...
6 years ago (2014-12-01 19:57:20 UTC) #2
caitp (gmail)
https://codereview.chromium.org/768203002/diff/1/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/768203002/diff/1/src/parser.cc#newcode5314 src/parser.cc:5314: for (int from_index = 0; from_index < length && ...
6 years ago (2014-12-01 19:57:36 UTC) #4
Dmitry Lomov (no reviews)
I have one q: why length computation is correct? https://codereview.chromium.org/768203002/diff/1/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/768203002/diff/1/src/parser.cc#newcode5314 src/parser.cc:5314: ...
6 years ago (2014-12-01 19:58:05 UTC) #6
Dmitry Lomov (no reviews)
On 2014/12/01 19:58:05, Dmitry Lomov (chromium) wrote: > I have one q: why length computation ...
6 years ago (2014-12-01 19:59:05 UTC) #7
marja
https://codereview.chromium.org/768203002/diff/1/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/768203002/diff/1/src/parser.cc#newcode5311 src/parser.cc:5311: StringCharacterStream stream(String::cast(script()->source()), span_start); Oops; this problem was already present ...
6 years ago (2014-12-01 20:01:34 UTC) #8
caitp (gmail)
https://codereview.chromium.org/768203002/diff/1/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/768203002/diff/1/src/parser.cc#newcode5311 src/parser.cc:5311: StringCharacterStream stream(String::cast(script()->source()), span_start); On 2014/12/01 20:01:34, marja wrote: > ...
6 years ago (2014-12-01 20:05:15 UTC) #10
marja
Parsing can be done on a background thread, so we cannot access anything on the ...
6 years ago (2014-12-01 20:11:59 UTC) #11
Dmitry Lomov (no reviews)
On 2014/12/01 20:11:59, marja wrote: > Parsing can be done on a background thread, so ...
6 years ago (2014-12-01 20:15:33 UTC) #12
arv (Not doing code reviews)
https://codereview.chromium.org/768203002/diff/1/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/768203002/diff/1/src/parser.cc#newcode5311 src/parser.cc:5311: StringCharacterStream stream(String::cast(script()->source()), span_start); On 2014/12/01 20:05:15, caitp wrote: > ...
6 years ago (2014-12-01 20:18:44 UTC) #13
arv (Not doing code reviews)
On 2014/12/01 20:15:33, Dmitry Lomov (chromium) wrote: > On 2014/12/01 20:11:59, marja wrote: > > ...
6 years ago (2014-12-01 20:20:12 UTC) #14
arv (Not doing code reviews)
On 2014/12/01 20:20:12, arv wrote: > On 2014/12/01 20:15:33, Dmitry Lomov (chromium) wrote: > > ...
6 years ago (2014-12-01 21:42:07 UTC) #15
marja
Yeah, basically the LiteralBuffers are the only thing the Scanner has. :/ So I guess ...
6 years ago (2014-12-02 08:59:28 UTC) #16
arv (Not doing code reviews)
PTAL I added a LiteralBuffer and now capture all raw characters during ScanTemplateSpan. This is ...
6 years ago (2014-12-02 20:48:06 UTC) #17
caitp (gmail)
On 2014/12/02 20:48:06, arv wrote: > PTAL > > I added a LiteralBuffer and now ...
6 years ago (2014-12-02 20:54:50 UTC) #18
arv (Not doing code reviews)
Add DCHECK in PushBack and remove some unused functions
6 years ago (2014-12-02 21:32:11 UTC) #19
arv (Not doing code reviews)
On 2014/12/02 at 20:54:50, caitpotter88 wrote: > On 2014/12/02 20:48:06, arv wrote: > > PTAL ...
6 years ago (2014-12-02 21:34:52 UTC) #20
arv (Not doing code reviews)
git rebase
6 years ago (2014-12-02 21:35:58 UTC) #21
caitp (gmail)
https://codereview.chromium.org/768203002/diff/40001/src/scanner.h File src/scanner.h (right): https://codereview.chromium.org/768203002/diff/40001/src/scanner.h#newcode582 src/scanner.h:582: DCHECK(ch < 0 || !capturing_raw_literal_); I feel like PushBack() ...
6 years ago (2014-12-02 21:37:36 UTC) #22
arv (Not doing code reviews)
On 2014/12/02 at 21:37:36, caitpotter88 wrote: > https://codereview.chromium.org/768203002/diff/40001/src/scanner.h > File src/scanner.h (right): > > https://codereview.chromium.org/768203002/diff/40001/src/scanner.h#newcode582 ...
6 years ago (2014-12-02 21:47:28 UTC) #23
arv (Not doing code reviews)
On 2014/12/02 at 21:47:28, arv wrote: > On 2014/12/02 at 21:37:36, caitpotter88 wrote: > > ...
6 years ago (2014-12-02 22:03:45 UTC) #24
arv (Not doing code reviews)
Reduce length in PushBack instead
6 years ago (2014-12-02 22:05:01 UTC) #25
caitp (gmail)
On 2014/12/02 21:47:28, arv wrote: > On 2014/12/02 at 21:37:36, caitpotter88 wrote: > > https://codereview.chromium.org/768203002/diff/40001/src/scanner.h ...
6 years ago (2014-12-02 22:05:03 UTC) #26
caitp (gmail)
https://codereview.chromium.org/768203002/diff/80001/src/scanner.h File src/scanner.h (right): https://codereview.chromium.org/768203002/diff/80001/src/scanner.h#newcode587 src/scanner.h:587: if (capturing_raw_literal_) ReduceRawLiteralLength(2); Oh, I didn't realize you already ...
6 years ago (2014-12-02 22:06:01 UTC) #27
caitp (gmail)
6 years ago (2014-12-02 22:06:02 UTC) #28
arv (Not doing code reviews)
Add harmony unicode test
6 years ago (2014-12-02 22:46:06 UTC) #29
arv (Not doing code reviews)
Add harmony unicode test
6 years ago (2014-12-02 22:46:44 UTC) #30
arv (Not doing code reviews)
On 2014/12/02 22:06:01, caitp wrote: > https://codereview.chromium.org/768203002/diff/80001/src/scanner.h > File src/scanner.h (right): > > https://codereview.chromium.org/768203002/diff/80001/src/scanner.h#newcode587 > ...
6 years ago (2014-12-02 22:48:09 UTC) #32
arv (Not doing code reviews)
I added a test for --harmony-unicode since it required no changes to the actual code.
6 years ago (2014-12-02 22:59:57 UTC) #33
marja
lgtm
6 years ago (2014-12-03 09:48:28 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/768203002/120001
6 years ago (2014-12-03 13:51:37 UTC) #36
commit-bot: I haz the power
Committed patchset #6 (id:120001)
6 years ago (2014-12-03 14:17:20 UTC) #37
caitp (gmail)
6 years ago (2014-12-03 14:23:12 UTC) #38
Message was sent while issue was closed.
On 2014/12/03 14:17:20, I haz the power (commit-bot) wrote:
> Committed patchset #6 (id:120001)

Woo!

Powered by Google App Engine
This is Rietveld 408576698