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

Issue 2086443002: Support completely serialized compilation in batch mode. (Closed)

Created:
4 years, 6 months ago by Johnni Winther
Modified:
4 years, 6 months ago
Reviewers:
Harry Terkelsen
CC:
reviews_dartlang.org
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Support completely serialized compilation in batch mode. This adds the ability to serialize the whole program and compiling it purely from serialized data. The features is added to batch-mode under the environment flag SERIALIZED_COMPILATION. R=het@google.com Committed: https://github.com/dart-lang/sdk/commit/035781504f9b3813799bc52f1e319037d96cbc37

Patch Set 1 #

Total comments: 10

Patch Set 2 : Updated cf. comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+230 lines, -26 lines) Patch
M pkg/compiler/lib/src/dart2js.dart View 1 1 chunk +105 lines, -26 lines 0 comments Download
M pkg/compiler/lib/src/options.dart View 1 chunk +125 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
Johnni Winther
4 years, 6 months ago (2016-06-20 13:37:02 UTC) #2
Harry Terkelsen
lgtm https://codereview.chromium.org/2086443002/diff/1/pkg/compiler/lib/src/dart2js.dart File pkg/compiler/lib/src/dart2js.dart (right): https://codereview.chromium.org/2086443002/diff/1/pkg/compiler/lib/src/dart2js.dart#newcode839 pkg/compiler/lib/src/dart2js.dart:839: Platform.environment['USE_SERIALIZED_DART_CORE'] == 'true'; this and SERIALIZED_COMPILATION should use ...
4 years, 6 months ago (2016-06-20 16:36:11 UTC) #3
Johnni Winther
Committed patchset #2 (id:20001) manually as 035781504f9b3813799bc52f1e319037d96cbc37 (presubmit successful).
4 years, 6 months ago (2016-06-23 09:23:15 UTC) #5
Johnni Winther
4 years, 6 months ago (2016-06-23 13:07:48 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/2086443002/diff/1/pkg/compiler/lib/src/dart2j...
File pkg/compiler/lib/src/dart2js.dart (right):

https://codereview.chromium.org/2086443002/diff/1/pkg/compiler/lib/src/dart2j...
pkg/compiler/lib/src/dart2js.dart:839:
Platform.environment['USE_SERIALIZED_DART_CORE'] == 'true';
On 2016/06/20 16:36:11, Harry Terkelsen wrote:
> this and SERIALIZED_COMPILATION should use const bool.fromEnvironment

Yes. I initially wanted to but (on Windows at least) environmental variables are
not accessible via `.fromEnvironment` constructors - and I need to set them for
a whole test-run.

Added a TODO to change them when we add an option to the test script.

https://codereview.chromium.org/2086443002/diff/1/pkg/compiler/lib/src/dart2j...
pkg/compiler/lib/src/dart2js.dart:855: String serializedData) async {
On 2016/06/20 16:36:11, Harry Terkelsen wrote:
> this doesn't look like it needs to be async

Done.

https://codereview.chromium.org/2086443002/diff/1/pkg/compiler/lib/src/dart2j...
pkg/compiler/lib/src/dart2js.dart:879: [String serializedData]) async {
On 2016/06/20 16:36:11, Harry Terkelsen wrote:
> ditto

Done.

https://codereview.chromium.org/2086443002/diff/1/pkg/compiler/lib/src/dart2j...
pkg/compiler/lib/src/dart2js.dart:894: String serializedDartCoreData;
On 2016/06/20 16:36:11, Harry Terkelsen wrote:
> nit: consider renaming to serializedDartCore in the spirit of
> http://journal.stuffwithstuff.com/2016/06/16/long-names-are-long/

Done.

https://codereview.chromium.org/2086443002/diff/1/pkg/compiler/lib/src/dart2j...
pkg/compiler/lib/src/dart2js.dart:898: Future<api.CompilationResult>
compileWithSerializedTestData(
On 2016/06/20 16:36:11, Harry Terkelsen wrote:
> I'm not sure what 'Test' means in this context

Renamed to 'compileFromSerializedData'

Powered by Google App Engine
This is Rietveld 408576698