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

Issue 10752002: support unparsing of "new Object()": (Closed)

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

Description

support unparsing of "new Object()": main() { new Object(); } Committed: https://code.google.com/p/dart/source/detail?r=9496

Patch Set 1 #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -0 lines) Patch
M lib/compiler/implementation/dart_backend/backend.dart View 1 chunk +19 lines, -0 lines 4 comments Download
M tests/compiler/dart2js/unparser_test.dart View 2 chunks +5 lines, -0 lines 3 comments Download

Messages

Total messages: 4 (0 generated)
Roman
Not sure about this CL. Instantiation of classes requires much deeper investigation, current changes just ...
8 years, 5 months ago (2012-07-09 16:56:59 UTC) #1
Anton Muhin
https://chromiumcodereview.appspot.com/10752002/diff/1/lib/compiler/implementation/dart_backend/backend.dart File lib/compiler/implementation/dart_backend/backend.dart (right): https://chromiumcodereview.appspot.com/10752002/diff/1/lib/compiler/implementation/dart_backend/backend.dart#newcode51 lib/compiler/implementation/dart_backend/backend.dart:51: if (compilationUnitUri !== null && compilationUnitUri.path !== null && ...
8 years, 5 months ago (2012-07-09 18:31:25 UTC) #2
Roman
Anton, sorry, but I accidentally used "git cl dcommit" instead of "git cl upload" and ...
8 years, 5 months ago (2012-07-10 03:20:29 UTC) #3
Anton Muhin
8 years, 5 months ago (2012-07-10 06:56:30 UTC) #4
And no worries about accidental commit, please.

https://chromiumcodereview.appspot.com/10752002/diff/1/tests/compiler/dart2js...
File tests/compiler/dart2js/unparser_test.dart (right):

https://chromiumcodereview.appspot.com/10752002/diff/1/tests/compiler/dart2js...
tests/compiler/dart2js/unparser_test.dart:127: testUnparse('main(){new
Object();}');
Sorry, let me rephrase it.

In the description of CL I read "support unparsing of "new Object()":", but in
CL itself I only see that you filter out corelib classes.

So I'd like to understand in details (and ideally update the description,
although it's probably too late right now), why this change helps us to unparsr
constructs like new Object?

Is it because now we shouldn't now care about elements corresponding to classes
in corelib?

On 2012/07/10 03:20:29, Roman wrote:
> On 2012/07/09 18:31:26, antonmuhin wrote:
> > sorry, what you stopped to output now, element for Object class?
> 
> I don't think I understand the question.

Powered by Google App Engine
This is Rietveld 408576698