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

Issue 974213002: Extract ParseInfo from CompilationInfo. (Closed)

Created:
5 years, 9 months ago by titzer
Modified:
5 years, 9 months ago
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Extract ParseInfo from CompilationInfo. Rationale: separate the inputs and outputs of parsing + analysis from the business of compiling (i.e. generating machine code). BUG= Committed: https://crrev.com/0f6702562e0ebf40f09fb1d11839f7c9a6d42c39 Cr-Commit-Position: refs/heads/master@{#27078}

Patch Set 1 #

Total comments: 21

Patch Set 2 : Make ParserInfo::InitFrom* return this. #

Patch Set 3 : #

Total comments: 1

Patch Set 4 : #

Patch Set 5 : #

Total comments: 5

Patch Set 6 : #

Patch Set 7 : #

Total comments: 8

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+707 lines, -596 lines) Patch
M src/api.cc View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -8 lines 0 comments Download
M src/ast-numbering.cc View 1 chunk +0 lines, -1 line 0 comments Download
M src/background-parsing-task.h View 1 2 3 4 5 6 7 3 chunks +3 lines, -10 lines 0 comments Download
M src/background-parsing-task.cc View 1 2 3 4 5 6 7 8 9 2 chunks +26 lines, -19 lines 0 comments Download
M src/codegen.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +21 lines, -15 lines 0 comments Download
M src/compiler.h View 1 2 3 4 5 6 7 8 18 chunks +42 lines, -221 lines 0 comments Download
M src/compiler.cc View 1 2 3 4 5 6 7 8 9 28 chunks +149 lines, -163 lines 0 comments Download
M src/compiler/ast-loop-assignment-analyzer.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/basic-block-instrumentor.cc View 1 chunk +1 line, -2 lines 0 comments Download
M src/compiler/js-inlining.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/linkage.cc View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -8 lines 0 comments Download
M src/globals.h View 1 chunk +7 lines, -0 lines 0 comments Download
M src/hydrogen.cc View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -4 lines 0 comments Download
M src/parser.h View 1 2 3 4 5 5 chunks +201 lines, -14 lines 0 comments Download
M src/parser.cc View 1 2 3 4 5 13 chunks +81 lines, -26 lines 0 comments Download
M src/preparse-data.h View 1 2 3 4 5 1 chunk +30 lines, -1 line 0 comments Download
M src/preparse-data.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/rewriter.h View 2 chunks +2 lines, -2 lines 0 comments Download
M src/rewriter.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M src/runtime/runtime-debug.cc View 1 2 3 4 5 6 7 8 3 chunks +8 lines, -5 lines 0 comments Download
M src/runtime/runtime-internal.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -9 lines 0 comments Download
M src/scopes.h View 4 chunks +5 lines, -7 lines 0 comments Download
M src/scopes.cc View 6 chunks +8 lines, -8 lines 0 comments Download
M src/serialize.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -1 line 0 comments Download
M test/cctest/compiler/function-tester.h View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -4 lines 0 comments Download
M test/cctest/compiler/test-codegen-deopt.cc View 1 2 chunks +5 lines, -3 lines 0 comments Download
M test/cctest/compiler/test-loop-assignment-analysis.cc View 1 chunk +7 lines, -5 lines 0 comments Download
M test/cctest/compiler/test-pipeline.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-parsing.cc View 1 2 3 4 5 11 chunks +54 lines, -43 lines 0 comments Download
M test/cctest/test-serialize.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M tools/parser-shell.cc View 1 2 3 4 5 2 chunks +16 lines, -10 lines 0 comments Download

Messages

Total messages: 20 (5 generated)
marja
Nice! (Tryjobs would be nice.) Here are some comments (but not an exhaustive list, I'll ...
5 years, 9 months ago (2015-03-04 09:24:40 UTC) #2
rossberg
Also like it, though I just took a superficial glance. A few suggestions below. https://codereview.chromium.org/974213002/diff/1/src/globals.h ...
5 years, 9 months ago (2015-03-04 10:25:12 UTC) #4
titzer
https://codereview.chromium.org/974213002/diff/1/src/background-parsing-task.cc File src/background-parsing-task.cc (right): https://codereview.chromium.org/974213002/diff/1/src/background-parsing-task.cc#newcode25 src/background-parsing-task.cc:25: info->set_source_stream(source->source_stream.get()); On 2015/03/04 09:24:40, marja wrote: > Would it ...
5 years, 9 months ago (2015-03-04 22:39:35 UTC) #5
Michael Starzinger
https://codereview.chromium.org/974213002/diff/40001/src/compiler.cc File src/compiler.cc (right): https://codereview.chromium.org/974213002/diff/40001/src/compiler.cc#newcode495 src/compiler.cc:495: // TODO(titzer): how is that possibly ok? I can ...
5 years, 9 months ago (2015-03-04 22:50:46 UTC) #7
marja
moar comments https://codereview.chromium.org/974213002/diff/80001/src/background-parsing-task.cc File src/background-parsing-task.cc (right): https://codereview.chromium.org/974213002/diff/80001/src/background-parsing-task.cc#newcode31 src/background-parsing-task.cc:31: bool disable_lazy = !Compiler::DebuggerWantsEagerCompilation(isolate); ... shouldn't we ...
5 years, 9 months ago (2015-03-05 10:52:55 UTC) #8
titzer
https://codereview.chromium.org/974213002/diff/1/src/globals.h File src/globals.h (right): https://codereview.chromium.org/974213002/diff/1/src/globals.h#newcode457 src/globals.h:457: enum ParseRestriction { On 2015/03/04 10:25:12, rossberg wrote: > ...
5 years, 9 months ago (2015-03-05 20:18:31 UTC) #9
Michael Starzinger
https://codereview.chromium.org/974213002/diff/1/src/globals.h File src/globals.h (right): https://codereview.chromium.org/974213002/diff/1/src/globals.h#newcode457 src/globals.h:457: enum ParseRestriction { On 2015/03/05 20:18:30, titzer wrote: > ...
5 years, 9 months ago (2015-03-05 20:56:55 UTC) #10
rossberg
On 2015/03/05 20:56:55, Michael Starzinger wrote: > https://codereview.chromium.org/974213002/diff/1/src/globals.h > File src/globals.h (right): > > https://codereview.chromium.org/974213002/diff/1/src/globals.h#newcode457 ...
5 years, 9 months ago (2015-03-06 07:03:40 UTC) #11
Michael Starzinger
On 2015/03/06 07:03:40, rossberg wrote: > On 2015/03/05 20:56:55, Michael Starzinger wrote: > > https://codereview.chromium.org/974213002/diff/1/src/globals.h ...
5 years, 9 months ago (2015-03-06 08:36:28 UTC) #12
marja
... you could avoid the cyclic dependency by putting ParseInfo and related classes into a ...
5 years, 9 months ago (2015-03-06 08:40:40 UTC) #13
marja
I had a look at the following parts: parser, compiler, scopes, background-parsing-task, tests, parser-shell. They ...
5 years, 9 months ago (2015-03-09 09:18:07 UTC) #14
titzer
https://codereview.chromium.org/974213002/diff/120001/src/background-parsing-task.cc File src/background-parsing-task.cc (left): https://codereview.chromium.org/974213002/diff/120001/src/background-parsing-task.cc#oldcode20 src/background-parsing-task.cc:20: // We don't set the context to the CompilationInfo ...
5 years, 9 months ago (2015-03-09 13:03:09 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/974213002/220001
5 years, 9 months ago (2015-03-09 14:23:09 UTC) #18
commit-bot: I haz the power
Committed patchset #12 (id:220001)
5 years, 9 months ago (2015-03-09 14:51:17 UTC) #19
commit-bot: I haz the power
5 years, 9 months ago (2015-03-09 14:51:38 UTC) #20
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/0f6702562e0ebf40f09fb1d11839f7c9a6d42c39
Cr-Commit-Position: refs/heads/master@{#27078}

Powered by Google App Engine
This is Rietveld 408576698