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

Side by Side Diff: tests/compiler/dart2js/memory_compiler.dart

Issue 23258002: Load builtin helper libraries on demand. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library dart2js.test.memory_compiler; 5 library dart2js.test.memory_compiler;
6 6
7 import 'package:expect/expect.dart'; 7 import 'package:expect/expect.dart';
8 import 'memory_source_file_helper.dart'; 8 import 'memory_source_file_helper.dart';
9 9
10 import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart' 10 import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart'
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 diagnosticHandler, 42 diagnosticHandler,
43 libraryRoot, 43 libraryRoot,
44 packageRoot, 44 packageRoot,
45 options); 45 options);
46 if (cachedCompiler != null) { 46 if (cachedCompiler != null) {
47 compiler.coreLibrary = cachedCompiler.libraries['dart:core']; 47 compiler.coreLibrary = cachedCompiler.libraries['dart:core'];
48 compiler.types = cachedCompiler.types; 48 compiler.types = cachedCompiler.types;
49 cachedCompiler.libraries.forEach((String uri, library) { 49 cachedCompiler.libraries.forEach((String uri, library) {
50 if (library.isPlatformLibrary) { 50 if (library.isPlatformLibrary) {
51 compiler.libraries[uri] = library; 51 compiler.libraries[uri] = library;
52 compiler.onLibraryScanned(library, library.canonicalUri); 52 compiler.onLibraryLoaded(library, library.canonicalUri);
53 } 53 }
54 }); 54 });
55 55
56 compiler.symbolConstructor = cachedCompiler.symbolConstructor; 56 compiler.symbolConstructor = cachedCompiler.symbolConstructor;
57 compiler.mirrorSystemClass = cachedCompiler.mirrorSystemClass; 57 compiler.mirrorSystemClass = cachedCompiler.mirrorSystemClass;
58 compiler.mirrorsUsedClass = cachedCompiler.mirrorsUsedClass; 58 compiler.mirrorsUsedClass = cachedCompiler.mirrorsUsedClass;
59 compiler.mirrorSystemGetNameFunction = 59 compiler.mirrorSystemGetNameFunction =
60 cachedCompiler.mirrorSystemGetNameFunction; 60 cachedCompiler.mirrorSystemGetNameFunction;
61 compiler.symbolImplementationClass = 61 compiler.symbolImplementationClass =
62 cachedCompiler.symbolImplementationClass; 62 cachedCompiler.symbolImplementationClass;
(...skipping 28 matching lines...) Expand all
91 } 91 }
92 92
93 List<Uri> libraries = <Uri>[]; 93 List<Uri> libraries = <Uri>[];
94 memorySourceFiles.forEach((String path, _) { 94 memorySourceFiles.forEach((String path, _) {
95 libraries.add(new Uri(scheme: 'memory', path: path)); 95 libraries.add(new Uri(scheme: 'memory', path: path));
96 }); 96 });
97 97
98 return analyze(libraries, libraryRoot, packageRoot, 98 return analyze(libraries, libraryRoot, packageRoot,
99 provider, diagnosticHandler, options); 99 provider, diagnosticHandler, options);
100 } 100 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698