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

Issue 314603004: Parser: Delay internalizing strings and values. (Closed)

Created:
6 years, 6 months ago by marja
Modified:
6 years, 6 months ago
Reviewers:
rossberg
CC:
v8-dev, Paweł Hajdan Jr., ulan, Michael Starzinger, dcarney, jochen (gone - plz use gerrit)
Visibility:
Public.

Description

Parser: Delay internalizing strings and values. This is needed so that we can run Parser on a non-main thread (independent of the Isolate and the V8 heap). BUG= R=rossberg@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=21841

Patch Set 1 #

Total comments: 35

Patch Set 2 : rebased #

Patch Set 3 : Code review (rossberg@) #

Patch Set 4 : Fix: two byte literal length + first char. #

Patch Set 5 : oops, #include fix #

Total comments: 10

Patch Set 6 : More code review (rossberg@). #

Total comments: 2

Patch Set 7 : more code review #

Patch Set 8 : fixing comment #

Patch Set 9 : non-trivial rebase - need to internalize symbols #

Total comments: 2

Patch Set 10 : more like this? #

Total comments: 1

Patch Set 11 : code review for the rebased version (rossberg@) - just reorganizing funcs #

Patch Set 12 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1508 lines, -641 lines) Patch
M include/v8.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M src/ast.h View 1 2 3 4 5 6 7 8 9 10 45 chunks +156 lines, -81 lines 0 comments Download
M src/ast.cc View 1 2 7 chunks +14 lines, -20 lines 0 comments Download
A src/ast-value-factory.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +294 lines, -0 lines 0 comments Download
A src/ast-value-factory.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +368 lines, -0 lines 0 comments Download
M src/compiler.h View 1 2 3 chunks +8 lines, -0 lines 0 comments Download
M src/compiler.cc View 1 2 5 chunks +9 lines, -4 lines 0 comments Download
M src/func-name-inferrer.h View 1 2 4 chunks +10 lines, -13 lines 0 comments Download
M src/func-name-inferrer.cc View 1 2 3 2 chunks +91 lines, -36 lines 0 comments Download
M src/heap.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +0 lines, -12 lines 0 comments Download
M src/interface.h View 1 2 4 chunks +7 lines, -5 lines 0 comments Download
M src/interface.cc View 1 4 chunks +9 lines, -15 lines 0 comments Download
M src/objects.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -39 lines 0 comments Download
M src/parser.h View 1 2 15 chunks +61 lines, -51 lines 0 comments Download
M src/parser.cc View 1 2 3 4 5 6 7 8 9 105 chunks +244 lines, -227 lines 0 comments Download
M src/preparser.h View 1 2 12 chunks +20 lines, -16 lines 0 comments Download
M src/prettyprinter.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M src/prettyprinter.cc View 1 2 6 chunks +10 lines, -4 lines 0 comments Download
M src/rewriter.cc View 1 2 3 4 5 6 7 3 chunks +8 lines, -4 lines 0 comments Download
M src/scanner.h View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M src/scanner.cc View 1 2 2 chunks +9 lines, -15 lines 0 comments Download
M src/scopeinfo.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/scopes.h View 1 2 13 chunks +23 lines, -19 lines 0 comments Download
M src/scopes.cc View 1 2 3 36 chunks +78 lines, -64 lines 0 comments Download
M src/utils.h View 1 2 3 4 5 6 7 8 1 chunk +30 lines, -0 lines 0 comments Download
M src/utils.cc View 1 1 chunk +20 lines, -0 lines 0 comments Download
M src/variables.h View 1 2 4 chunks +5 lines, -3 lines 0 comments Download
M src/variables.cc View 1 2 chunks +1 line, -3 lines 0 comments Download
M test/cctest/test-ast.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-parsing.cc View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M tools/gyp/v8.gyp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M tools/parser-shell.cc View 1 2 chunks +15 lines, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
marja
(rossberg, this is for you) (ulan, mstarzinger, dcarney, jochen fyi) Here's a new version of ...
6 years, 6 months ago (2014-06-03 09:28:11 UTC) #1
rossberg
Looks mostly good. My only concern is with the name AstStringTable and its construction API ...
6 years, 6 months ago (2014-06-11 14:58:13 UTC) #2
marja
Thanks for comments! rossberg@, could you take another look? The first new patch set is ...
6 years, 6 months ago (2014-06-12 09:57:54 UTC) #3
rossberg
LGTM, module a few nits. https://codereview.chromium.org/314603004/diff/1/src/ast.h File src/ast.h (right): https://codereview.chromium.org/314603004/diff/1/src/ast.h#newcode3156 src/ast.h:3156: Literal* NewLiteral(const AstString* string, ...
6 years, 6 months ago (2014-06-12 12:20:29 UTC) #4
marja
Wohoo, thanks for reviewing! I lifted the New(Null,Undefined,TheHole) one level up as you suggested and ...
6 years, 6 months ago (2014-06-12 12:35:04 UTC) #5
rossberg
Thanks. Still LGTM, just one more nit. :) https://codereview.chromium.org/314603004/diff/160001/src/ast-value-factory.h File src/ast-value-factory.h (right): https://codereview.chromium.org/314603004/diff/160001/src/ast-value-factory.h#newcode177 src/ast-value-factory.h:177: ASSERT(t ...
6 years, 6 months ago (2014-06-12 12:46:41 UTC) #6
marja
https://codereview.chromium.org/314603004/diff/160001/src/ast-value-factory.h File src/ast-value-factory.h (right): https://codereview.chromium.org/314603004/diff/160001/src/ast-value-factory.h#newcode177 src/ast-value-factory.h:177: ASSERT(t == AstValue::NULL_TYPE || t == AstValue::UNDEFINED || On ...
6 years, 6 months ago (2014-06-12 12:48:06 UTC) #7
marja
rossberg@, I had to do a non-trivial rebase because https://codereview.chromium.org/332663004 got committed first. So I'd ...
6 years, 6 months ago (2014-06-13 09:41:32 UTC) #8
rossberg
lgtm https://codereview.chromium.org/314603004/diff/220001/src/ast-value-factory.h File src/ast-value-factory.h (right): https://codereview.chromium.org/314603004/diff/220001/src/ast-value-factory.h#newcode159 src/ast-value-factory.h:159: SYMBOL Nitty nit: move up next to string ...
6 years, 6 months ago (2014-06-13 13:00:42 UTC) #9
marja
thx again! https://codereview.chromium.org/314603004/diff/220001/src/ast-value-factory.h File src/ast-value-factory.h (right): https://codereview.chromium.org/314603004/diff/220001/src/ast-value-factory.h#newcode159 src/ast-value-factory.h:159: SYMBOL On 2014/06/13 13:00:41, rossberg wrote: > ...
6 years, 6 months ago (2014-06-13 13:06:01 UTC) #10
marja
6 years, 6 months ago (2014-06-13 13:32:24 UTC) #11
Message was sent while issue was closed.
Committed patchset #12 manually as r21841 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698