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

Issue 10919127: Introduce AST cloning. (Closed)

Created:
8 years, 3 months ago by Anton Muhin
Modified:
8 years, 3 months ago
Reviewers:
Roman
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Introduce AST cloning. As a temporary testing measure, clone AST of most elements. R=smok@google.com Committed: https://code.google.com/p/dart/source/detail?r=12049

Patch Set 1 #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+243 lines, -18 lines) Patch
M lib/compiler/implementation/dart_backend/backend.dart View 3 chunks +9 lines, -3 lines 0 comments Download
M lib/compiler/implementation/dart_backend/dart_backend.dart View 1 chunk +1 line, -0 lines 0 comments Download
M lib/compiler/implementation/dart_backend/placeholder_collector.dart View 4 chunks +13 lines, -8 lines 2 comments Download
A lib/compiler/implementation/dart_backend/utils.dart View 1 chunk +205 lines, -0 lines 3 comments Download
M tests/compiler/dart2js/unparser_test.dart View 3 chunks +15 lines, -7 lines 2 comments Download

Messages

Total messages: 4 (0 generated)
Anton Muhin
That turned out more complicated than I expected originally, so I'd rather run it by ...
8 years, 3 months ago (2012-09-06 15:58:48 UTC) #1
Roman
General question - why do we need cloning? https://chromiumcodereview.appspot.com/10919127/diff/1/lib/compiler/implementation/dart_backend/placeholder_collector.dart File lib/compiler/implementation/dart_backend/placeholder_collector.dart (right): https://chromiumcodereview.appspot.com/10919127/diff/1/lib/compiler/implementation/dart_backend/placeholder_collector.dart#newcode201 lib/compiler/implementation/dart_backend/placeholder_collector.dart:201: if ...
8 years, 3 months ago (2012-09-07 08:10:56 UTC) #2
Anton Muhin
Regarding cloning. Most of the fields in Node hierarchy are final, that's technical issue. Overall, ...
8 years, 3 months ago (2012-09-07 12:26:07 UTC) #3
Roman
8 years, 3 months ago (2012-09-07 13:19:59 UTC) #4
lgtm

https://chromiumcodereview.appspot.com/10919127/diff/1/lib/compiler/implement...
File lib/compiler/implementation/dart_backend/utils.dart (right):

https://chromiumcodereview.appspot.com/10919127/diff/1/lib/compiler/implement...
lib/compiler/implementation/dart_backend/utils.dart:9:
CloningVisitor(this.originalTreeElements)
On 2012/09/07 12:26:07, Anton Muhin wrote:
> I might be missing some simple solution, but I found no easier way to recreate
> this mapping after the cloning.  Do you have any particular ideas in mind?
> 
> On 2012/09/07 08:10:56, Roman wrote:
> > I suggest removing TreeElements cloning from this visitor to another place.
> This
> > would make CloningVisitor more simple from client perspective.
> 

Nothing particular.

Powered by Google App Engine
This is Rietveld 408576698