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

Issue 1873573004: Serialize TreeElements (Closed)

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

Description

Patch Set 1 #

Total comments: 20

Patch Set 2 : Updated cf. comments. #

Patch Set 3 : Rebased #

Patch Set 4 : Check only the last test to avoid timeout. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1420 lines, -86 lines) Patch
M pkg/compiler/lib/src/common/resolution.dart View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/compiler.dart View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/library_loader.dart View 1 2 1 chunk +41 lines, -38 lines 0 comments Download
M pkg/compiler/lib/src/serialization/constant_serialization.dart View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M pkg/compiler/lib/src/serialization/equivalence.dart View 1 2 6 chunks +207 lines, -5 lines 0 comments Download
M pkg/compiler/lib/src/serialization/impact_serialization.dart View 1 2 4 chunks +5 lines, -24 lines 0 comments Download
M pkg/compiler/lib/src/serialization/keys.dart View 4 chunks +9 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/serialization/modelz.dart View 1 2 2 chunks +1 line, -3 lines 0 comments Download
A pkg/compiler/lib/src/serialization/resolved_ast_serialization.dart View 1 2 1 chunk +422 lines, -0 lines 0 comments Download
A pkg/compiler/lib/src/serialization/serialization_util.dart View 1 2 1 chunk +481 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/serialization/task.dart View 1 2 4 chunks +6 lines, -4 lines 0 comments Download
M tests/compiler/dart2js/serialization_helper.dart View 6 chunks +129 lines, -10 lines 0 comments Download
A tests/compiler/dart2js/serialization_resolved_ast_test.dart View 1 2 3 1 chunk +92 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
Johnni Winther
https://codereview.chromium.org/1873573004/diff/1/tests/compiler/dart2js/serialization_impact_test.dart File tests/compiler/dart2js/serialization_impact_test.dart (right): https://codereview.chromium.org/1873573004/diff/1/tests/compiler/dart2js/serialization_impact_test.dart#newcode50 tests/compiler/dart2js/serialization_impact_test.dart:50: checkAllImpacts(compilerNormal, compilerDeserialized, verbose: true); From https://codereview.chromium.org/1870133002/
4 years, 8 months ago (2016-04-08 15:25:40 UTC) #2
Siggi Cherem (dart-lang)
nice! lgtm https://codereview.chromium.org/1873573004/diff/1/pkg/compiler/lib/src/library_loader.dart File pkg/compiler/lib/src/library_loader.dart (right): https://codereview.chromium.org/1873573004/diff/1/pkg/compiler/lib/src/library_loader.dart#newcode655 pkg/compiler/lib/src/library_loader.dart:655: return deserializer.readLibrary(resolvedUri).then((LibraryElement library) { or use `await`? ...
4 years, 8 months ago (2016-04-08 16:55:33 UTC) #3
Johnni Winther
https://codereview.chromium.org/1873573004/diff/1/pkg/compiler/lib/src/library_loader.dart File pkg/compiler/lib/src/library_loader.dart (right): https://codereview.chromium.org/1873573004/diff/1/pkg/compiler/lib/src/library_loader.dart#newcode655 pkg/compiler/lib/src/library_loader.dart:655: return deserializer.readLibrary(resolvedUri).then((LibraryElement library) { On 2016/04/08 16:55:32, Siggi Cherem ...
4 years, 8 months ago (2016-04-11 08:54:04 UTC) #4
Johnni Winther
Committed patchset #4 (id:60001) manually as fefa2188ce4957b16ec6c020f710ebd090fbc07c (presubmit successful).
4 years, 8 months ago (2016-04-11 09:16:18 UTC) #6
Siggi Cherem (dart-lang)
https://codereview.chromium.org/1873573004/diff/1/pkg/compiler/lib/src/library_loader.dart File pkg/compiler/lib/src/library_loader.dart (right): https://codereview.chromium.org/1873573004/diff/1/pkg/compiler/lib/src/library_loader.dart#newcode655 pkg/compiler/lib/src/library_loader.dart:655: return deserializer.readLibrary(resolvedUri).then((LibraryElement library) { On 2016/04/11 08:54:04, Johnni Winther ...
4 years, 8 months ago (2016-04-11 17:48:07 UTC) #7
Johnni Winther
4 years, 8 months ago (2016-04-12 08:05:47 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/1873573004/diff/1/pkg/compiler/lib/src/librar...
File pkg/compiler/lib/src/library_loader.dart (right):

https://codereview.chromium.org/1873573004/diff/1/pkg/compiler/lib/src/librar...
pkg/compiler/lib/src/library_loader.dart:655: return
deserializer.readLibrary(resolvedUri).then((LibraryElement library) {
On 2016/04/11 17:48:07, Siggi Cherem (dart-lang) wrote:
> On 2016/04/11 08:54:04, Johnni Winther wrote:
> > On 2016/04/08 16:55:32, Siggi Cherem (dart-lang) wrote:
> > > or use `await`?
> > 
> > Aren't we still avoiding the using of async/await for the dartino self-test?
> 
> are they still blocked on that? I thought it was going to take about a month
or
> so to get past that.

I'll check with sgjesse and let you know.

https://codereview.chromium.org/1873573004/diff/1/pkg/compiler/lib/src/serial...
File pkg/compiler/lib/src/serialization/resolved_ast_serialization.dart (right):

https://codereview.chromium.org/1873573004/diff/1/pkg/compiler/lib/src/serial...
pkg/compiler/lib/src/serialization/resolved_ast_serialization.dart:80:
elements.analyzedElement.compilationUnit.script.resourceUri,
On 2016/04/11 17:48:07, Siggi Cherem (dart-lang) wrote:
> On 2016/04/11 08:54:04, Johnni Winther wrote:
> > On 2016/04/08 16:55:33, Siggi Cherem (dart-lang) wrote:
> > > eventually we should look into what URI to use - readableUri might be
closer
> > to
> > > what we need. Basically, I believe we need something that is not absolute
> for
> > > one person's file-system (so the serialized data is transferable to other
> > > machines)
> > 
> > This is a known issue for the serialization itself. It needs to always
> serialize
> > relative to some abstract base (like library root, package roots, current
> > working directory). With such ability, resourceUri will remain valid.
> 
> could we file a bug/add a todo to track this issue explicitly?

Done: #26244

Powered by Google App Engine
This is Rietveld 408576698