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

Issue 9363048: Implement capability to use the same library prefix for multiple library imports (currently this ... (Closed)

Created:
8 years, 10 months ago by siva
Modified:
8 years, 10 months ago
Reviewers:
regis, kasperl, hausner
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Implement capability to use the same library prefix for multiple library imports (currently this is flagged as an error). e.g: #import("mylib101.dart", prefix:"mylib"); #import("mylib102.dart", prefix:"mylib"); #import("mylib103.dart", prefix:"mylib"); Committed: https://code.google.com/p/dart/source/detail?r=4289

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : #

Total comments: 6

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+215 lines, -46 lines) Patch
M vm/class_finalizer.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M vm/object.h View 1 2 3 4 5 chunks +16 lines, -5 lines 0 comments Download
M vm/object.cc View 1 2 3 4 7 chunks +150 lines, -16 lines 0 comments Download
M vm/parser.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M vm/parser.cc View 1 2 3 4 5 chunks +36 lines, -21 lines 0 comments Download
M vm/raw_object.h View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M vm/raw_object_snapshot.cc View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
siva
8 years, 10 months ago (2012-02-14 23:03:30 UTC) #1
siva
synched up with latest changes from Regis.
8 years, 10 months ago (2012-02-15 02:14:25 UTC) #2
hausner
LGTM. http://codereview.chromium.org/9363048/diff/7002/vm/object.cc File vm/object.cc (right): http://codereview.chromium.org/9363048/diff/7002/vm/object.cc#newcode4779 vm/object.cc:4779: libs.SetAt(num_current_libs, library); If you handle the case of ...
8 years, 10 months ago (2012-02-15 18:04:26 UTC) #3
regis
LGTM http://codereview.chromium.org/9363048/diff/7002/vm/parser.cc File vm/parser.cc (right): http://codereview.chromium.org/9363048/diff/7002/vm/parser.cc#newcode6194 vm/parser.cc:6194: resolved_type_class = lib_prefix.LookupLocalClass(unresolved_class_name); Nice cleanup!
8 years, 10 months ago (2012-02-15 18:39:47 UTC) #4
siva
Thanks. http://codereview.chromium.org/9363048/diff/7002/vm/object.cc File vm/object.cc (right): http://codereview.chromium.org/9363048/diff/7002/vm/object.cc#newcode4779 vm/object.cc:4779: libs.SetAt(num_current_libs, library); Good point. Restructured as suggested. On ...
8 years, 10 months ago (2012-02-15 20:52:47 UTC) #5
kasperl
8 years, 10 months ago (2012-02-16 05:47:44 UTC) #6
Thanks, Siva. This is cool stuff. I expect we do not have any tests for this
feature?

Powered by Google App Engine
This is Rietveld 408576698