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

Issue 10967052: Support for show/hide combinators (Closed)

Created:
8 years, 3 months ago by hausner
Modified:
8 years, 3 months ago
Reviewers:
siva
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Support for show/hide combinators - Add a new VM object called a Namespace. - A Namespace is a library, and two list of names to hide/show. - Convert Library and LibraryPrefix to contain Namespace objects instead of Libraries in their import list. Committed: https://code.google.com/p/dart/source/detail?r=12804

Patch Set 1 #

Patch Set 2 : #

Total comments: 22

Patch Set 3 : #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+449 lines, -144 lines) Patch
M runtime/vm/code_generator_test.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 2 1 chunk +5 lines, -3 lines 0 comments Download
M runtime/vm/debugger.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/debugger_api_impl.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/object.h View 1 2 6 chunks +36 lines, -9 lines 0 comments Download
M runtime/vm/object.cc View 1 2 21 chunks +181 lines, -97 lines 2 comments Download
M runtime/vm/parser.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/parser.cc View 1 2 10 chunks +88 lines, -23 lines 2 comments Download
M runtime/vm/raw_object.h View 1 2 3 chunks +20 lines, -5 lines 0 comments Download
M runtime/vm/raw_object.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M runtime/vm/raw_object_snapshot.cc View 1 2 3 chunks +50 lines, -2 lines 0 comments Download
M runtime/vm/snapshot.h View 1 2 3 chunks +3 lines, -0 lines 0 comments Download
M runtime/vm/snapshot.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
A tests/language/import1_lib.dart View 1 chunk +19 lines, -0 lines 0 comments Download
A tests/language/import_combinators_negative_test.dart View 1 chunk +13 lines, -0 lines 0 comments Download
A tests/language/import_combinators_test.dart View 1 chunk +12 lines, -0 lines 0 comments Download
M tests/language/language.status View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M tests/language/language_dart2js.status View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
hausner
The review is not as big as it looks. Lots of boilerplate due to the ...
8 years, 3 months ago (2012-09-21 21:59:27 UTC) #1
siva
Looks good overall but I have some spec questions. 1. Is this legal? import "xyz.dart" ...
8 years, 3 months ago (2012-09-24 18:28:51 UTC) #2
hausner
Thanks for the careful review. I'll press for a more precise spec. http://codereview.chromium.org/10967052/diff/8001/runtime/vm/code_generator_test.cc File runtime/vm/code_generator_test.cc ...
8 years, 3 months ago (2012-09-24 20:25:43 UTC) #3
siva
lgtm http://codereview.chromium.org/10967052/diff/16001/runtime/vm/parser.cc File runtime/vm/parser.cc (right): http://codereview.chromium.org/10967052/diff/16001/runtime/vm/parser.cc#newcode8172 runtime/vm/parser.cc:8172: String::Handle(lib.url()).ToCString()); We need a "if (first_lib_url.raw() == lib.url())" ...
8 years, 3 months ago (2012-09-24 21:12:37 UTC) #4
siva
http://codereview.chromium.org/10967052/diff/16001/runtime/vm/object.cc File runtime/vm/object.cc (right): http://codereview.chromium.org/10967052/diff/16001/runtime/vm/object.cc#newcode453 runtime/vm/object.cc:453: SET_CLASS_NAME(library_prefix, LibraryPrefix); oops forgot this: We are missing SET_CLASS_NAME(namespace, ...
8 years, 3 months ago (2012-09-24 21:20:40 UTC) #5
hausner
8 years, 3 months ago (2012-09-24 21:41:06 UTC) #6
See separate chicken^H^H^H^H^Heckin.

http://codereview.chromium.org/10967052/diff/16001/runtime/vm/object.cc
File runtime/vm/object.cc (right):

http://codereview.chromium.org/10967052/diff/16001/runtime/vm/object.cc#newco...
runtime/vm/object.cc:453: SET_CLASS_NAME(library_prefix, LibraryPrefix);
On 2012/09/24 21:20:40, siva wrote:
> oops forgot this:
> We are missing
> SET_CLASS_NAME(namespace, NameSpace);
> 
> and NameSpace added to symbols.h so that people referring
> to this class name will get something.

Done.

http://codereview.chromium.org/10967052/diff/16001/runtime/vm/parser.cc
File runtime/vm/parser.cc (right):

http://codereview.chromium.org/10967052/diff/16001/runtime/vm/parser.cc#newco...
runtime/vm/parser.cc:8172: String::Handle(lib.url()).ToCString());
On 2012/09/24 21:12:37, siva wrote:
> We need a "if (first_lib_url.raw() == lib.url())" check
> here to avoid weird error messages.

Done.

Powered by Google App Engine
This is Rietveld 408576698