mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 11:42:11 +00:00
Move js library back into compiler directory.
R=ricow@google.com Review URL: https://codereview.chromium.org//538513002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39870 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
parent
f4a8837f2d
commit
46043093af
|
@ -22,7 +22,7 @@
|
|||
'inputs': [
|
||||
'<!@(["python", "tools/list_files.py", "\\.dart$", "sdk/lib"])',
|
||||
'<!@(["python", "tools/list_files.py", "", '
|
||||
'"sdk/lib/_internal/lib/preambles"])',
|
||||
'"sdk/lib/_internal/compiler/js_lib/preambles"])',
|
||||
'<!@(["python", "tools/list_files.py", "", "sdk/bin"])',
|
||||
'tools/create_sdk.py',
|
||||
'<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)',
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
// TODO(jmesserly): we need to wrap document somehow (a dart:html hook?)
|
||||
|
||||
// dartNativeDispatchHooksTransformer is described on initHooks() in
|
||||
// sdk/lib/_internal/lib/native_helper.dart.
|
||||
// sdk/lib/_internal/compiler/js_lib/native_helper.dart.
|
||||
if (typeof window.dartNativeDispatchHooksTransformer == 'undefined')
|
||||
window.dartNativeDispatchHooksTransformer = [];
|
||||
|
||||
|
@ -163,7 +163,7 @@
|
|||
var ShadowDOMPolyfill = window.ShadowDOMPolyfill;
|
||||
if (!ShadowDOMPolyfill) {
|
||||
// dartNativeDispatchHooksTransformer is described on initHooks() in
|
||||
// sdk/lib/_internal/lib/native_helper.dart.
|
||||
// sdk/lib/_internal/compiler/js_lib/native_helper.dart.
|
||||
if (typeof window.dartNativeDispatchHooksTransformer == 'undefined')
|
||||
window.dartNativeDispatchHooksTransformer = [];
|
||||
|
||||
|
|
|
@ -1965,7 +1965,7 @@ Please include the following information:
|
|||
static const MessageKind PREAMBLE = const MessageKind(
|
||||
"When run on the command-line, the compiled output might"
|
||||
" require a preamble file located in:\n"
|
||||
" <sdk>/lib/_internal/lib/preambles.");
|
||||
" <sdk>/lib/_internal/complire/js_lib/preambles.");
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
// Patch errors start.
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
library dart._js_mirrors;
|
||||
|
||||
import '../compiler/implementation/runtime_data.dart' as encoding;
|
||||
import '../implementation/runtime_data.dart' as encoding;
|
||||
|
||||
import 'dart:collection' show
|
||||
UnmodifiableListView,
|
|
@ -4,10 +4,10 @@ execute the preambles before executing the output of dart2js.
|
|||
|
||||
=Usage=
|
||||
- d8:
|
||||
d8 <sdk>/lib/_internal/lib/preambles/d8.js <output>.js
|
||||
d8 <sdk>/lib/_internal/compiler/js_lib/preambles/d8.js <output>.js
|
||||
|
||||
- jsshell:
|
||||
jsshell -f <sdk>/lib/_internal/lib/preambles/d8.js -f <output>.js
|
||||
jsshell -f <sdk>/lib/_internal/compiler/js_lib/preambles/d8.js -f <output>.js
|
||||
|
||||
- node.js:
|
||||
The d8 preamble file works for most programs.
|
|
@ -25,7 +25,7 @@ const Map<String, LibraryInfo> LIBRARIES = const {
|
|||
"async": const LibraryInfo(
|
||||
"async/async.dart",
|
||||
maturity: Maturity.STABLE,
|
||||
dart2jsPatchPath: "_internal/lib/async_patch.dart"),
|
||||
dart2jsPatchPath: "_internal/compiler/js_lib/async_patch.dart"),
|
||||
|
||||
"_blink": const LibraryInfo(
|
||||
"_blink/dartium/_blink_dartium.dart",
|
||||
|
@ -42,17 +42,17 @@ const Map<String, LibraryInfo> LIBRARIES = const {
|
|||
"collection": const LibraryInfo(
|
||||
"collection/collection.dart",
|
||||
maturity: Maturity.STABLE,
|
||||
dart2jsPatchPath: "_internal/lib/collection_patch.dart"),
|
||||
dart2jsPatchPath: "_internal/compiler/js_lib/collection_patch.dart"),
|
||||
|
||||
"convert": const LibraryInfo(
|
||||
"convert/convert.dart",
|
||||
maturity: Maturity.STABLE,
|
||||
dart2jsPatchPath: "_internal/lib/convert_patch.dart"),
|
||||
dart2jsPatchPath: "_internal/compiler/js_lib/convert_patch.dart"),
|
||||
|
||||
"core": const LibraryInfo(
|
||||
"core/core.dart",
|
||||
maturity: Maturity.STABLE,
|
||||
dart2jsPatchPath: "_internal/lib/core_patch.dart"),
|
||||
dart2jsPatchPath: "_internal/compiler/js_lib/core_patch.dart"),
|
||||
|
||||
"html": const LibraryInfo(
|
||||
"html/dartium/html_dartium.dart",
|
||||
|
@ -78,12 +78,12 @@ const Map<String, LibraryInfo> LIBRARIES = const {
|
|||
"io/io.dart",
|
||||
category: "Server",
|
||||
maturity: Maturity.STABLE,
|
||||
dart2jsPatchPath: "_internal/lib/io_patch.dart"),
|
||||
dart2jsPatchPath: "_internal/compiler/js_lib/io_patch.dart"),
|
||||
|
||||
"isolate": const LibraryInfo(
|
||||
"isolate/isolate.dart",
|
||||
maturity: Maturity.STABLE,
|
||||
dart2jsPatchPath: "_internal/lib/isolate_patch.dart"),
|
||||
dart2jsPatchPath: "_internal/compiler/js_lib/isolate_patch.dart"),
|
||||
|
||||
"js": const LibraryInfo(
|
||||
"js/dartium/js_dartium.dart",
|
||||
|
@ -94,12 +94,12 @@ const Map<String, LibraryInfo> LIBRARIES = const {
|
|||
"math": const LibraryInfo(
|
||||
"math/math.dart",
|
||||
maturity: Maturity.STABLE,
|
||||
dart2jsPatchPath: "_internal/lib/math_patch.dart"),
|
||||
dart2jsPatchPath: "_internal/compiler/js_lib/math_patch.dart"),
|
||||
|
||||
"mirrors": const LibraryInfo(
|
||||
"mirrors/mirrors.dart",
|
||||
maturity: Maturity.UNSTABLE,
|
||||
dart2jsPatchPath: "_internal/lib/mirrors_patch.dart"),
|
||||
dart2jsPatchPath: "_internal/compiler/js_lib/mirrors_patch.dart"),
|
||||
|
||||
"profiler": const LibraryInfo(
|
||||
"profiler/profiler.dart",
|
||||
|
@ -115,10 +115,10 @@ const Map<String, LibraryInfo> LIBRARIES = const {
|
|||
"typed_data": const LibraryInfo(
|
||||
"typed_data/typed_data.dart",
|
||||
maturity: Maturity.STABLE,
|
||||
dart2jsPatchPath: "_internal/lib/typed_data_patch.dart"),
|
||||
dart2jsPatchPath: "_internal/compiler/js_lib/typed_data_patch.dart"),
|
||||
|
||||
"_native_typed_data": const LibraryInfo(
|
||||
"_internal/lib/native_typed_data.dart",
|
||||
"_internal/compiler/js_lib/native_typed_data.dart",
|
||||
category: "Internal",
|
||||
implementation: true,
|
||||
documented: false,
|
||||
|
@ -153,46 +153,46 @@ const Map<String, LibraryInfo> LIBRARIES = const {
|
|||
category: "Internal",
|
||||
documented: false,
|
||||
dart2jsPatchPath:
|
||||
"_internal/lib/internal_patch.dart"),
|
||||
"_internal/compiler/js_lib/internal_patch.dart"),
|
||||
|
||||
"_js_helper": const LibraryInfo(
|
||||
"_internal/lib/js_helper.dart",
|
||||
"_internal/compiler/js_lib/js_helper.dart",
|
||||
category: "Internal",
|
||||
documented: false,
|
||||
platforms: DART2JS_PLATFORM),
|
||||
|
||||
"_interceptors": const LibraryInfo(
|
||||
"_internal/lib/interceptors.dart",
|
||||
"_internal/compiler/js_lib/interceptors.dart",
|
||||
category: "Internal",
|
||||
documented: false,
|
||||
platforms: DART2JS_PLATFORM),
|
||||
|
||||
"_foreign_helper": const LibraryInfo(
|
||||
"_internal/lib/foreign_helper.dart",
|
||||
"_internal/compiler/js_lib/foreign_helper.dart",
|
||||
category: "Internal",
|
||||
documented: false,
|
||||
platforms: DART2JS_PLATFORM),
|
||||
|
||||
"_isolate_helper": const LibraryInfo(
|
||||
"_internal/lib/isolate_helper.dart",
|
||||
"_internal/compiler/js_lib/isolate_helper.dart",
|
||||
category: "Internal",
|
||||
documented: false,
|
||||
platforms: DART2JS_PLATFORM),
|
||||
|
||||
"_js_mirrors": const LibraryInfo(
|
||||
"_internal/lib/js_mirrors.dart",
|
||||
"_internal/compiler/js_lib/js_mirrors.dart",
|
||||
category: "Internal",
|
||||
documented: false,
|
||||
platforms: DART2JS_PLATFORM),
|
||||
|
||||
"_js_names": const LibraryInfo(
|
||||
"_internal/lib/js_names.dart",
|
||||
"_internal/compiler/js_lib/js_names.dart",
|
||||
category: "Internal",
|
||||
documented: false,
|
||||
platforms: DART2JS_PLATFORM),
|
||||
|
||||
"_js_primitives": const LibraryInfo(
|
||||
"_internal/lib/js_primitives.dart",
|
||||
"_internal/compiler/js_lib/js_primitives.dart",
|
||||
category: "Internal",
|
||||
documented: false,
|
||||
platforms: DART2JS_PLATFORM),
|
||||
|
@ -200,7 +200,7 @@ const Map<String, LibraryInfo> LIBRARIES = const {
|
|||
// TODO(ahe): This library is only for dart2dart, perhaps it should use a
|
||||
// different platform.
|
||||
"_mirror_helper": const LibraryInfo(
|
||||
"_internal/lib/mirror_helper.dart",
|
||||
"_internal/compiler/js_lib/mirror_helper.dart",
|
||||
category: "Internal",
|
||||
documented: false,
|
||||
platforms: DART2JS_PLATFORM)
|
||||
|
|
|
@ -93,7 +93,7 @@ mixin_mixin_bound_test: RuntimeError # Issue 12605
|
|||
mixin_mixin_bound2_test: RuntimeError # Issue 12605
|
||||
|
||||
[ $compiler == dart2js ]
|
||||
malformed_test/none: Fail # Expect failure in lib/_internal/lib/preambles/d8.js
|
||||
malformed_test/none: Fail # Expect failure in lib/_internal/compiler/js_lib/preambles/d8.js
|
||||
generic_field_mixin4_test: Crash # Issue 18651
|
||||
generic_field_mixin5_test: Crash # Issue 18651
|
||||
|
||||
|
|
|
@ -203,7 +203,6 @@ def Main():
|
|||
for library in [join('_blink', 'dartium'),
|
||||
join('_chrome', 'dart2js'), join('_chrome', 'dartium'),
|
||||
join('_internal', 'compiler'),
|
||||
join('_internal', 'lib'),
|
||||
'async', 'collection', 'convert', 'core',
|
||||
'internal', 'io', 'isolate',
|
||||
join('html', 'dart2js'), join('html', 'dartium'),
|
||||
|
|
|
@ -275,7 +275,7 @@ class Dart2jsCompilerConfiguration extends Dart2xCompilerConfiguration {
|
|||
Uri sdk = useSdk ?
|
||||
nativeDirectoryToUri(buildDir).resolve('dart-sdk/') :
|
||||
nativeDirectoryToUri(TestUtils.dartDir.toNativePath()).resolve('sdk/');
|
||||
Uri preambleDir = sdk.resolve('lib/_internal/lib/preambles/');
|
||||
Uri preambleDir = sdk.resolve('lib/_internal/compiler/js_lib/preambles/');
|
||||
return runtimeConfiguration.dart2jsPreambles(preambleDir)
|
||||
..add(artifact.filename);
|
||||
}
|
||||
|
|
|
@ -1722,7 +1722,7 @@ class AnalyzeLibraryTestSuite extends DartcCompilationTestSuite {
|
|||
// NOTE: We exclude tests and patch files for now.
|
||||
return filename.endsWith(".dart") &&
|
||||
!filename.endsWith("_test.dart") &&
|
||||
!filename.contains("_internal/lib");
|
||||
!filename.contains("_internal/compiler/js_lib");
|
||||
}
|
||||
|
||||
bool get listRecursively => true;
|
||||
|
|
Loading…
Reference in a new issue