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

Issue 23452043: Introduce newline tokens into the token stream. (Closed)

Created:
7 years, 3 months ago by Michael Lippautz (Google)
Modified:
7 years, 3 months ago
Reviewers:
hausner, siva, Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Introduce newline tokens into the token stream. CL only introduces the tokens into the compressed token stream. We do not use the newline tokens (yet). Overhead: snapshot: 6.4% (860k/808k) compressed token stream (gen_snapshot): 21% (314312/259907) BUG= R=asiva@google.com, hausner@google.com Committed: https://code.google.com/p/dart/source/detail?r=27677

Patch Set 1 #

Total comments: 6

Patch Set 2 : adressed comments #

Patch Set 3 : fixed newline token value #

Patch Set 4 : rebase (fingerprints) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+262 lines, -177 lines) Patch
M runtime/vm/flow_graph_builder.h View 1 2 3 1 chunk +15 lines, -15 lines 0 comments Download
M runtime/vm/intermediate_language.h View 1 2 3 4 chunks +64 lines, -64 lines 0 comments Download
M runtime/vm/intrinsifier.h View 1 2 3 2 chunks +78 lines, -78 lines 0 comments Download
M runtime/vm/object.h View 2 chunks +9 lines, -1 line 0 comments Download
M runtime/vm/object.cc View 1 2 3 4 chunks +15 lines, -5 lines 0 comments Download
M runtime/vm/object_test.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/parser.cc View 1 2 3 8 chunks +14 lines, -4 lines 0 comments Download
M runtime/vm/scanner.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M runtime/vm/scanner.cc View 1 2 3 2 chunks +17 lines, -0 lines 0 comments Download
M runtime/vm/scanner_test.cc View 4 chunks +45 lines, -8 lines 0 comments Download
M runtime/vm/token.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Michael Lippautz (Google)
Parser changes are only getting rid of "TokenPos() - 1". We could also loop backwards ...
7 years, 3 months ago (2013-09-18 19:40:06 UTC) #1
hausner
Generally lgtm but try to eliminate the newline counters in the scanner. https://codereview.chromium.org/23452043/diff/1/runtime/vm/object_test.cc File runtime/vm/object_test.cc ...
7 years, 3 months ago (2013-09-18 22:27:47 UTC) #2
Michael Lippautz (Google)
Thanks! https://codereview.chromium.org/23452043/diff/1/runtime/vm/object_test.cc File runtime/vm/object_test.cc (right): https://codereview.chromium.org/23452043/diff/1/runtime/vm/object_test.cc#newcode2083 runtime/vm/object_test.cc:2083: EXPECT_EQ(8, first_idx); // Token } is first and ...
7 years, 3 months ago (2013-09-18 23:59:31 UTC) #3
Michael Lippautz (Google)
Newline occurrences while generating the snapshot. format: <occurences> NL: <#NLs> 25275 NL: 1 3929 NL: ...
7 years, 3 months ago (2013-09-19 00:17:33 UTC) #4
siva
lgtm
7 years, 3 months ago (2013-09-19 20:07:55 UTC) #5
Michael Lippautz (Google)
7 years, 3 months ago (2013-09-19 21:46:58 UTC) #6
Message was sent while issue was closed.
Committed patchset #4 manually as r27677 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698