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

Unified Diff: lib/src/compiler.dart

Issue 1528613004: First cut of mini dart:html. (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Fix build_sdk Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/codegen/js_codegen.dart ('k') | test/codegen/expect/html_input.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/compiler.dart
diff --git a/lib/src/compiler.dart b/lib/src/compiler.dart
index 1b764eeb49b84c85f053fa4e1ce24705ef03607a..acf5494ed5505fdecc2413c79a29819afe8650d5 100644
--- a/lib/src/compiler.dart
+++ b/lib/src/compiler.dart
@@ -510,7 +510,10 @@ const corelibOrder = const [
// are actually used by the application.
'dart.mirrors',
'dart._js_mirrors',
- 'dart.js'
+ 'dart.js',
+ 'dart._metadata',
+ 'dart.dom.html_common',
+ 'dart.dom.html'
// _foreign_helper is not included, as it only defines the JS builtin that
// the compiler handles at compile time.
];
@@ -518,6 +521,15 @@ const corelibOrder = const [
/// Runtime files added to all applications when running the compiler in the
/// command line.
final defaultRuntimeFiles = () {
+ String coreToFile(String name) {
+ var parts = name.split('.');
+ var length = parts.length;
+ if (length > 1) {
+ name = parts[0] + '/' + parts[length - 1];
+ }
+ return name + '.js';
+ }
+
var files = [
'harmony_feature_check.js',
'dart_library.js',
@@ -530,7 +542,7 @@ final defaultRuntimeFiles = () {
'dart/_operations.js',
'dart/_runtime.js',
];
- files.addAll(corelibOrder.map((l) => l.replaceAll('.', '/') + '.js'));
+ files.addAll(corelibOrder.map(coreToFile));
return files;
}();
« no previous file with comments | « lib/src/codegen/js_codegen.dart ('k') | test/codegen/expect/html_input.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698