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

Issue 1235503010: fixes #219, able to compile multiple entry points (Closed)

Created:
5 years, 5 months ago by Jennifer Messerly
Modified:
5 years, 5 months ago
Reviewers:
vsm
CC:
dev-compiler+reviews_dartlang.org
Base URL:
git@github.com:dart-lang/dev_compiler.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

fixes #219, able to compile multiple entry points also speeds up codegen_test by reusing the analysis context BatchCompiler is pretty close to how analyzer_cli works now (other than missing features) R=vsm@google.com Committed: https://github.com/dart-lang/dev_compiler/commit/e260ddaa284a9b6ac054a14696895accf050882d

Patch Set 1 : pretty url #

Total comments: 2

Patch Set 2 : workaround tree mutation #

Total comments: 4

Patch Set 3 : #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+1170 lines, -3037 lines) Patch
M bin/devc.dart View 4 chunks +11 lines, -7 lines 0 comments Download
M lib/devc.dart View 1 chunk +5 lines, -333 lines 0 comments Download
M lib/src/analysis_context.dart View 1 2 5 chunks +20 lines, -38 lines 0 comments Download
M lib/src/checker/checker.dart View 25 chunks +56 lines, -56 lines 0 comments Download
M lib/src/checker/rules.dart View 1 chunk +0 lines, -1 line 0 comments Download
M lib/src/codegen/code_generator.dart View 4 chunks +2 lines, -19 lines 0 comments Download
M lib/src/codegen/html_codegen.dart View 4 chunks +16 lines, -12 lines 0 comments Download
M lib/src/codegen/js_codegen.dart View 10 chunks +13 lines, -39 lines 0 comments Download
M lib/src/codegen/js_module_item_order.dart View 1 chunk +1 line, -1 line 0 comments Download
M lib/src/codegen/reify_coercions.dart View 1 chunk +1 line, -1 line 0 comments Download
A lib/src/compiler.dart View 1 1 chunk +401 lines, -0 lines 2 comments Download
D lib/src/dependency_graph.dart View 1 chunk +0 lines, -552 lines 0 comments Download
M lib/src/info.dart View 1 chunk +1 line, -4 lines 0 comments Download
M lib/src/options.dart View 6 chunks +10 lines, -13 lines 0 comments Download
M lib/src/report.dart View 3 chunks +20 lines, -12 lines 0 comments Download
A + lib/src/server/dependency_graph.dart View 4 chunks +10 lines, -53 lines 0 comments Download
A + lib/src/server/server.dart View 11 chunks +100 lines, -130 lines 0 comments Download
M lib/src/summary.dart View 1 chunk +1 line, -1 line 1 comment Download
D lib/src/testing.dart View 1 chunk +0 lines, -252 lines 0 comments Download
M lib/strong_mode.dart View 2 chunks +2 lines, -9 lines 0 comments Download
M test/all_tests.dart View 2 chunks +2 lines, -0 lines 0 comments Download
M test/checker/checker_test.dart View 1 chunk +1 line, -2 lines 0 comments Download
M test/checker/inferred_type_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M test/checker/self_host_test.dart View 1 chunk +6 lines, -10 lines 0 comments Download
M test/codegen/expect/BenchmarkBase.txt View 1 chunk +1 line, -3 lines 0 comments Download
M test/codegen/expect/DeltaBlue.txt View 1 chunk +5 lines, -15 lines 0 comments Download
M test/codegen/expect/cascade.txt View 1 chunk +6 lines, -18 lines 0 comments Download
M test/codegen/expect/constructors.txt View 1 chunk +3 lines, -9 lines 0 comments Download
M test/codegen/expect/expect.txt View 1 chunk +3 lines, -9 lines 0 comments Download
M test/codegen/expect/fieldtest.txt View 1 chunk +4 lines, -12 lines 0 comments Download
M test/codegen/expect/methods.txt View 1 chunk +4 lines, -12 lines 0 comments Download
M test/codegen/expect/misc.txt View 1 chunk +3 lines, -9 lines 0 comments Download
M test/codegen/expect/opassign.txt View 1 chunk +7 lines, -21 lines 0 comments Download
M test/codegen/expect/sunflower/dom.js View 1 1 chunk +1 line, -1 line 0 comments Download
D test/codegen/expect/sunflower/math.png View Binary file 0 comments Download
D test/codegen/expect/sunflower/sunflower.css View 1 chunk +0 lines, -50 lines 0 comments Download
M test/codegen/expect/sunflower/sunflower.html View 1 chunk +1 line, -1 line 0 comments Download
M test/codegen/expect/sunflower/sunflower.txt View 1 chunk +1 line, -3 lines 0 comments Download
M test/codegen/expect/syncstar_syntax.txt View 1 chunk +4 lines, -12 lines 0 comments Download
M test/codegen/expect/syncstar_yield_test.txt View 1 chunk +2 lines, -12 lines 0 comments Download
M test/codegen/expect/syncstar_yieldstar_test.txt View 1 chunk +4 lines, -18 lines 0 comments Download
M test/codegen_test.dart View 10 chunks +19 lines, -92 lines 0 comments Download
M test/dependency_graph_test.dart View 1 chunk +5 lines, -3 lines 0 comments Download
M test/end_to_end_test.dart View 1 chunk +6 lines, -8 lines 0 comments Download
M test/report_test.dart View 2 chunks +5 lines, -5 lines 0 comments Download
M test/test_util.dart View 1 chunk +0 lines, -13 lines 0 comments Download
A + test/testing.dart View 3 chunks +22 lines, -10 lines 0 comments Download
M tool/sdk_expected_errors.txt View 1 chunk +384 lines, -1152 lines 0 comments Download
M tool/test.sh View 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
Jennifer Messerly
Essentially introduces a new BatchCompiler API, splitting it off the server/dependency graph code. The idea ...
5 years, 5 months ago (2015-07-15 21:41:39 UTC) #3
Jennifer Messerly
On 2015/07/15 21:41:39, John Messerly wrote: > Essentially introduces a new BatchCompiler API, splitting it ...
5 years, 5 months ago (2015-07-15 21:44:18 UTC) #4
Jennifer Messerly
https://codereview.chromium.org/1235503010/diff/20001/test/codegen/expect/expect.js File test/codegen/expect/expect.js (right): https://codereview.chromium.org/1235503010/diff/20001/test/codegen/expect/expect.js#newcode69 test/codegen/expect/expect.js:69: let stringDifference = Expect._stringDifference(dart.as(dart.as(dart.as(expected, core.String), core.String), core.String), dart.as(dart.as(dart.as(actual, core.String), ...
5 years, 5 months ago (2015-07-15 21:45:15 UTC) #5
Jennifer Messerly
Added a workaround for that issue. https://codereview.chromium.org/1235503010/diff/20001/test/codegen/expect/expect.js File test/codegen/expect/expect.js (right): https://codereview.chromium.org/1235503010/diff/20001/test/codegen/expect/expect.js#newcode69 test/codegen/expect/expect.js:69: let stringDifference = ...
5 years, 5 months ago (2015-07-15 22:31:35 UTC) #6
vsm
https://codereview.chromium.org/1235503010/diff/40001/lib/src/analysis_context.dart File lib/src/analysis_context.dart (right): https://codereview.chromium.org/1235503010/diff/40001/lib/src/analysis_context.dart#newcode41 lib/src/analysis_context.dart:41: if (context.libraryResolverFactory is! LibraryResolverWithInference) { Will this ever fail? ...
5 years, 5 months ago (2015-07-16 13:58:16 UTC) #7
Jennifer Messerly
https://codereview.chromium.org/1235503010/diff/40001/lib/src/analysis_context.dart File lib/src/analysis_context.dart (right): https://codereview.chromium.org/1235503010/diff/40001/lib/src/analysis_context.dart#newcode41 lib/src/analysis_context.dart:41: if (context.libraryResolverFactory is! LibraryResolverWithInference) { On 2015/07/16 13:58:16, vsm ...
5 years, 5 months ago (2015-07-16 16:36:19 UTC) #8
Jennifer Messerly
I'm also going to look at analysis message order, it seems to come back somewhat ...
5 years, 5 months ago (2015-07-16 22:03:52 UTC) #9
vsm
lgtm! https://codereview.chromium.org/1235503010/diff/60001/lib/src/compiler.dart File lib/src/compiler.dart (right): https://codereview.chromium.org/1235503010/diff/60001/lib/src/compiler.dart#newcode268 lib/src/compiler.dart:268: // TODO(jmesserly): do we need an option for ...
5 years, 5 months ago (2015-07-16 23:56:40 UTC) #10
Jennifer Messerly
5 years, 5 months ago (2015-07-17 00:41:38 UTC) #11
Message was sent while issue was closed.
Committed patchset #3 (id:60001) manually as
e260ddaa284a9b6ac054a14696895accf050882d (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698