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

Issue 9860009: Removes dartc reliance on its own libraries, now can be targeted at any implementation's libraries (Closed)

Created:
8 years, 9 months ago by zundel
Modified:
8 years, 9 months ago
CC:
reviews_dartlang.org, danrubel, sra1, ahe
Visibility:
Public.

Description

Removes dartc reliance on its own libraries, now can be targeted at any implementation's libraries Adds a new cmdline flags --dart-sdk to point it at a directory where the dart library files are staged --platform the name of the platform {dartium, vm, frog, dart2js} to target with the analyzer Committed: https://code.google.com/p/dart/source/detail?r=5885 Committed: https://code.google.com/p/dart/source/detail?r=5930

Patch Set 1 : Updated editor to use "Any" config #

Total comments: 11

Patch Set 2 : Incorporated feedback from dgrove #

Total comments: 8

Patch Set 3 : Updated 'configs' to be 'config' directory, updated addLib() to throw exception #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+450 lines, -4686 lines) Patch
M compiler/dart-compiler.gyp View 4 chunks +0 lines, -145 lines 0 comments Download
M compiler/dartc.xml View 3 chunks +0 lines, -95 lines 0 comments Download
M compiler/java/com/google/dart/compiler/CommandLineOptions.java View 3 chunks +26 lines, -1 line 0 comments Download
M compiler/java/com/google/dart/compiler/DartCompiler.java View 9 chunks +29 lines, -23 lines 0 comments Download
M compiler/java/com/google/dart/compiler/DefaultCompilerConfiguration.java View 1 chunk +2 lines, -1 line 0 comments Download
M compiler/java/com/google/dart/compiler/InternalCompilerException.java View 1 chunk +4 lines, -0 lines 0 comments Download
M compiler/java/com/google/dart/compiler/SystemLibraryManager.java View 1 2 2 chunks +226 lines, -215 lines 2 comments Download
M compiler/java/com/google/dart/compiler/UnitTestBatchRunner.java View 1 chunk +2 lines, -0 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/CoreTypeProviderImplementation.java View 1 chunk +4 lines, -2 lines 2 comments Download
M compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java View 4 chunks +14 lines, -2 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/Resolver.java View 3 chunks +5 lines, -2 lines 0 comments Download
M compiler/java/com/google/dart/compiler/testing/TestCompilerConfiguration.java View 3 chunks +5 lines, -2 lines 0 comments Download
M compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java View 4 chunks +15 lines, -3 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/SystemLibraryManagerTest.java View 5 chunks +9 lines, -9 lines 0 comments Download
D compiler/lib/clock.dart View 1 chunk +0 lines, -25 lines 0 comments Download
D compiler/lib/corelib.dart View 1 chunk +0 lines, -40 lines 0 comments Download
D compiler/lib/corelib_impl.dart View 1 chunk +0 lines, -43 lines 0 comments Download
D compiler/lib/coverage.dart View 1 chunk +0 lines, -213 lines 0 comments Download
D compiler/lib/error.dart View 1 chunk +0 lines, -34 lines 0 comments Download
D compiler/lib/implementation/array.dart View 1 chunk +0 lines, -263 lines 0 comments Download
D compiler/lib/implementation/array.js View 1 chunk +0 lines, -57 lines 0 comments Download
D compiler/lib/implementation/arrays.dart View 1 chunk +0 lines, -79 lines 0 comments Download
D compiler/lib/implementation/bool.dart View 1 chunk +0 lines, -23 lines 0 comments Download
D compiler/lib/implementation/bool.js View 1 chunk +0 lines, -15 lines 0 comments Download
D compiler/lib/implementation/collections.dart View 1 chunk +0 lines, -57 lines 0 comments Download
D compiler/lib/implementation/core.dart View 1 chunk +0 lines, -54 lines 0 comments Download
D compiler/lib/implementation/core.js View 1 chunk +0 lines, -528 lines 0 comments Download
D compiler/lib/implementation/date_implementation.dart View 1 chunk +0 lines, -170 lines 0 comments Download
D compiler/lib/implementation/date_implementation.js View 1 chunk +0 lines, -80 lines 0 comments Download
D compiler/lib/implementation/isolate.js View 1 chunk +0 lines, -525 lines 0 comments Download
D compiler/lib/implementation/math_natives.dart View 1 chunk +0 lines, -26 lines 0 comments Download
D compiler/lib/implementation/math_natives.js View 1 chunk +0 lines, -56 lines 0 comments Download
D compiler/lib/implementation/number.dart View 1 chunk +0 lines, -97 lines 0 comments Download
D compiler/lib/implementation/number.js View 1 chunk +0 lines, -202 lines 0 comments Download
D compiler/lib/implementation/object.js View 1 chunk +0 lines, -5 lines 0 comments Download
D compiler/lib/implementation/print.js View 1 chunk +0 lines, -14 lines 0 comments Download
D compiler/lib/implementation/regexp.dart View 1 chunk +0 lines, -149 lines 0 comments Download
D compiler/lib/implementation/regexp.js View 1 chunk +0 lines, -67 lines 0 comments Download
D compiler/lib/implementation/rtt.js View 1 chunk +0 lines, -441 lines 0 comments Download
D compiler/lib/implementation/string.dart View 1 chunk +0 lines, -235 lines 0 comments Download
D compiler/lib/implementation/string.js View 1 chunk +0 lines, -153 lines 0 comments Download
D compiler/lib/implementation/string_base.dart View 1 chunk +0 lines, -23 lines 0 comments Download
D compiler/lib/implementation/string_buffer.dart View 1 chunk +0 lines, -87 lines 0 comments Download
D compiler/lib/implementation/time_zone_implementation.dart View 1 chunk +0 lines, -23 lines 0 comments Download
D compiler/lib/object.dart View 1 chunk +0 lines, -23 lines 0 comments Download
D compiler/lib/print.dart View 1 chunk +0 lines, -19 lines 0 comments Download
M compiler/scripts/dartc.sh View 2 chunks +2 lines, -1 line 0 comments Download
M compiler/scripts/dartc_run.sh View 1 chunk +1 line, -1 line 0 comments Download
M editor/tools/features/com.google.dart.tools.deploy.feature_releng/build_rcp.xml View 1 chunk +0 lines, -2 lines 0 comments Download
D editor/tools/plugins/com.google.dart.tools.core/import.config View 1 chunk +0 lines, -39 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/EditorLibraryManager.java View 1 chunk +6 lines, -212 lines 1 comment Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/SystemLibraryManagerProvider.java View 3 chunks +23 lines, -52 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/SystemLibraryManagerProviderDartCTest.java View 1 chunk +1 line, -1 line 1 comment Download
M editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/SystemLibraryManagerProviderVmTest.java View 1 chunk +1 line, -1 line 1 comment Download
M editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/filesview/SdkDirectoryNode.java View 1 chunk +1 line, -1 line 0 comments Download
A + lib/config/import_any.config View 1 2 1 chunk +12 lines, -8 lines 0 comments Download
A + lib/config/import_dart2js.config View 1 2 1 chunk +12 lines, -8 lines 0 comments Download
A + lib/config/import_dartium.config View 1 2 1 chunk +11 lines, -8 lines 0 comments Download
A + lib/config/import_frog.config View 1 2 1 chunk +9 lines, -8 lines 0 comments Download
A + lib/config/import_vm.config View 1 2 1 chunk +9 lines, -8 lines 0 comments Download
A + lib/isolate/isolate_runtime.dart View 1 chunk +3 lines, -2 lines 0 comments Download
M tests/co19/co19-compiler.status View 1 chunk +2 lines, -2 lines 0 comments Download
M tests/language/language.status View 2 chunks +1 line, -1 line 0 comments Download
M tools/create_sdk.py View 1 2 2 chunks +13 lines, -0 lines 0 comments Download
M tools/testing/dart/test_suite.dart View 2 chunks +2 lines, -5 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
zundel
No renaming of dartc in this CL. This CL is essentially limited to removing the ...
8 years, 9 months ago (2012-03-26 22:59:56 UTC) #1
dgrove
https://chromiumcodereview.appspot.com/9860009/diff/4001/lib/import_any.config File lib/import_any.config (left): https://chromiumcodereview.appspot.com/9860009/diff/4001/lib/import_any.config#oldcode39 lib/import_any.config:39: dart\:isolate = dart-sdk/lib/isolate/isolate_compiler.dart Can we please put these configs ...
8 years, 9 months ago (2012-03-26 23:21:56 UTC) #2
zundel
http://codereview.chromium.org/9860009/diff/4001/lib/import_any.config File lib/import_any.config (left): http://codereview.chromium.org/9860009/diff/4001/lib/import_any.config#oldcode39 lib/import_any.config:39: dart\:isolate = dart-sdk/lib/isolate/isolate_compiler.dart On 2012/03/26 23:21:56, dgrove wrote: > ...
8 years, 9 months ago (2012-03-27 00:38:11 UTC) #3
dgrove
http://codereview.chromium.org/9860009/diff/4001/tools/create_sdk.py File tools/create_sdk.py (right): http://codereview.chromium.org/9860009/diff/4001/tools/create_sdk.py#newcode312 tools/create_sdk.py:312: copyfile(isolate_runtime_src, isolate_runtime_dest) Got it. On 2012/03/27 00:38:12, zundel wrote: ...
8 years, 9 months ago (2012-03-27 04:29:27 UTC) #4
scheglov
LGTM for DArtC changes https://chromiumcodereview.appspot.com/9860009/diff/2003/compiler/java/com/google/dart/compiler/SystemLibraryManager.java File compiler/java/com/google/dart/compiler/SystemLibraryManager.java (right): https://chromiumcodereview.appspot.com/9860009/diff/2003/compiler/java/com/google/dart/compiler/SystemLibraryManager.java#newcode179 compiler/java/com/google/dart/compiler/SystemLibraryManager.java:179: * to either a "file:" ...
8 years, 9 months ago (2012-03-27 06:06:06 UTC) #5
zundel
PTAL. http://codereview.chromium.org/9860009/diff/2003/compiler/java/com/google/dart/compiler/SystemLibraryManager.java File compiler/java/com/google/dart/compiler/SystemLibraryManager.java (right): http://codereview.chromium.org/9860009/diff/2003/compiler/java/com/google/dart/compiler/SystemLibraryManager.java#newcode179 compiler/java/com/google/dart/compiler/SystemLibraryManager.java:179: * to either a "file:" or "jar:" URI ...
8 years, 9 months ago (2012-03-27 14:00:53 UTC) #6
Brian Wilkerson
LGTM https://chromiumcodereview.appspot.com/9860009/diff/5066/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/EditorLibraryManager.java File editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/EditorLibraryManager.java (right): https://chromiumcodereview.appspot.com/9860009/diff/5066/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/EditorLibraryManager.java#newcode27 editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/EditorLibraryManager.java:27: public class EditorLibraryManager extends SystemLibraryManager { Is there ...
8 years, 9 months ago (2012-03-27 14:10:30 UTC) #7
scheglov
LGTM
8 years, 9 months ago (2012-03-27 14:19:54 UTC) #8
dgrove
lgtm
8 years, 9 months ago (2012-03-27 15:18:56 UTC) #9
zundel
I tried to land this change and had to back out. The issue is that ...
8 years, 9 months ago (2012-03-27 19:39:28 UTC) #10
zundel
I tried to land this change and had to back out. The issue is that ...
8 years, 9 months ago (2012-03-27 19:39:28 UTC) #11
danrubel
https://chromiumcodereview.appspot.com/9860009/diff/5066/compiler/java/com/google/dart/compiler/SystemLibraryManager.java File compiler/java/com/google/dart/compiler/SystemLibraryManager.java (right): https://chromiumcodereview.appspot.com/9860009/diff/5066/compiler/java/com/google/dart/compiler/SystemLibraryManager.java#newcode69 compiler/java/com/google/dart/compiler/SystemLibraryManager.java:69: private final File sdkLibPath; Perhaps rename to sdkLibDir? I ...
8 years, 9 months ago (2012-03-28 16:40:59 UTC) #12
zundel
8 years, 9 months ago (2012-03-28 18:13:24 UTC) #13
https://chromiumcodereview.appspot.com/9860009/diff/5066/compiler/java/com/go...
File compiler/java/com/google/dart/compiler/SystemLibraryManager.java (right):

https://chromiumcodereview.appspot.com/9860009/diff/5066/compiler/java/com/go...
compiler/java/com/google/dart/compiler/SystemLibraryManager.java:69: private
final File sdkLibPath;
On 2012/03/28 16:41:00, danrubel wrote:
> Perhaps rename to sdkLibDir?
> I saw the "Path" suffix and assumed it was a string not a file.

I've already committed it. Next time I'm in there I'll rename it (unless someone
else gets to it first)

https://chromiumcodereview.appspot.com/9860009/diff/5066/compiler/java/com/go...
File
compiler/java/com/google/dart/compiler/resolver/CoreTypeProviderImplementation.java
(right):

https://chromiumcodereview.appspot.com/9860009/diff/5066/compiler/java/com/go...
compiler/java/com/google/dart/compiler/resolver/CoreTypeProviderImplementation.java:52:
"ListImplementation", "GrowableObjectArray", "ListFactory"}, scope, listener);
On 2012/03/28 16:41:00, danrubel wrote:
> Can we or should we push some of these into the import.config file rather than
> having a hard coded list of possibilities here?

Possibly. We could also look at the Element for 'List' and pull out the class
listed in the 'default' clause of that interface.  I'm wondering if
'ListFactory' wouldn't just work for all of them.  

But it isn't just this type, mapLiteralType too (we just got lucky)its all of
the typed literals. Probably we can go back to using the "List", "Map", and
"String" interfaces, since we aren't using this class to generate code anymore. 
I filed a bug to investigate later.

http://code.google.com/p/dart/issues/detail?id=2335

Powered by Google App Engine
This is Rietveld 408576698