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

Issue 2474393003: [parser] Give preparser and parser independent loggers (Closed)

Created:
4 years, 1 month ago by Toon Verwaest
Modified:
4 years, 1 month ago
Reviewers:
vogelheim, marja
CC:
v8-reviews_googlegroups.com, marja
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[parser] Give preparser and parser independent loggers This - removes the ParserRecorder base class, - devirtualizes the LogFunction and LogMessage functions, - reuses the SingletonLogger for all preparser calls In a subsequent step the preparser should probably log directly to the CompleteParserRecorder rather than indirectly through the singleton logger... BUG= Committed: https://crrev.com/32105d214da5750506d11e6b292145e7cacbcd3b Cr-Commit-Position: refs/heads/master@{#40803}

Patch Set 1 #

Total comments: 1

Patch Set 2 : The function scope is used by the preparser, so we don't need to set flags again #

Total comments: 1

Patch Set 3 : Rename #

Patch Set 4 : Rebase #

Patch Set 5 : Drop reentrance dcheck and remove unused fields from preparserlogger #

Total comments: 2

Patch Set 6 : Unused variable #

Patch Set 7 : Addressed comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -172 lines) Patch
M src/parsing/parser.h View 1 2 3 chunks +1 line, -2 lines 0 comments Download
M src/parsing/parser.cc View 1 2 3 4 5 6 10 chunks +33 lines, -35 lines 0 comments Download
M src/parsing/parser-base.h View 2 chunks +1 line, -4 lines 0 comments Download
M src/parsing/preparse-data.h View 1 2 3 4 4 chunks +15 lines, -69 lines 0 comments Download
M src/parsing/preparse-data.cc View 1 2 4 chunks +11 lines, -14 lines 0 comments Download
M src/parsing/preparser.h View 1 2 3 4 5 chunks +11 lines, -8 lines 0 comments Download
M src/parsing/preparser.cc View 1 2 3 4 5 5 chunks +10 lines, -15 lines 0 comments Download
M test/cctest/test-parsing.cc View 1 2 8 chunks +19 lines, -25 lines 0 comments Download

Messages

Total messages: 30 (15 generated)
Toon Verwaest
ptal
4 years, 1 month ago (2016-11-04 14:10:27 UTC) #2
marja
(Didn't yet read through all of this, posting a mid-review comment) https://codereview.chromium.org/2474393003/diff/1/src/parsing/parser.cc File src/parsing/parser.cc (right): ...
4 years, 1 month ago (2016-11-04 14:47:07 UTC) #4
Toon Verwaest
Yeah I guess in the long run we should pass in the outer logger and ...
4 years, 1 month ago (2016-11-04 14:49:13 UTC) #6
marja
lgtm % https://codereview.chromium.org/2474393003/diff/20001/src/parsing/preparse-data.h File src/parsing/preparse-data.h (right): https://codereview.chromium.org/2474393003/diff/20001/src/parsing/preparse-data.h#newcode49 src/parsing/preparse-data.h:49: class SingletonLogger final { Now the names ...
4 years, 1 month ago (2016-11-04 14:59:57 UTC) #7
Toon Verwaest
Thanks, done!
4 years, 1 month ago (2016-11-04 15:08:40 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2474393003/60002
4 years, 1 month ago (2016-11-04 15:10:17 UTC) #11
vogelheim
lgtm (Only looked briefly, though, since Marja already reviewed and she knows the code better ...
4 years, 1 month ago (2016-11-04 15:17:15 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: v8_mac_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_mac_rel_ng/builds/11963) v8_mac_rel_ng_triggered on master.tryserver.v8 (JOB_FAILED, ...
4 years, 1 month ago (2016-11-04 15:28:08 UTC) #14
Toon Verwaest
Dropping the reentrance check since it's already failing with arrow functions. Over time we want ...
4 years, 1 month ago (2016-11-07 12:25:11 UTC) #17
vogelheim
lgtm (One nitpick, which isn't even related to your change. Feel free to ignore...) https://codereview.chromium.org/2474393003/diff/90001/src/parsing/parser.cc ...
4 years, 1 month ago (2016-11-07 12:43:59 UTC) #22
vogelheim
lgtm (One nitpick, which isn't even related to your change. Feel free to ignore...) https://codereview.chromium.org/2474393003/diff/90001/src/parsing/parser.cc ...
4 years, 1 month ago (2016-11-07 12:43:59 UTC) #23
Toon Verwaest
Addressed https://codereview.chromium.org/2474393003/diff/90001/src/parsing/parser.cc File src/parsing/parser.cc (right): https://codereview.chromium.org/2474393003/diff/90001/src/parsing/parser.cc#newcode721 src/parsing/parser.cc:721: if (produce_cached_parse_data()) { On 2016/11/07 12:43:59, vogelheim wrote: ...
4 years, 1 month ago (2016-11-07 12:55:34 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2474393003/130001
4 years, 1 month ago (2016-11-07 12:58:03 UTC) #27
commit-bot: I haz the power
Committed patchset #7 (id:130001)
4 years, 1 month ago (2016-11-07 13:23:07 UTC) #28
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:24:42 UTC) #30
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/32105d214da5750506d11e6b292145e7cacbcd3b
Cr-Commit-Position: refs/heads/master@{#40803}

Powered by Google App Engine
This is Rietveld 408576698