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

Side by Side Diff: pkg/compiler/lib/src/compiler.dart

Issue 790023004: Remove static state. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | pkg/compiler/lib/src/native/behavior.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 part of dart2js; 5 part of dart2js;
6 6
7 /** 7 /**
8 * If true, print a warning for each method that was resolved, but not 8 * If true, print a warning for each method that was resolved, but not
9 * compiled. 9 * compiled.
10 */ 10 */
(...skipping 1408 matching lines...) Expand 10 before | Expand all | Expand 10 after
1419 */ 1419 */
1420 Uri resolvePatchUri(String dartLibraryPath); 1420 Uri resolvePatchUri(String dartLibraryPath);
1421 1421
1422 Future runCompiler(Uri uri) { 1422 Future runCompiler(Uri uri) {
1423 // TODO(ahe): This prevents memory leaks when invoking the compiler 1423 // TODO(ahe): This prevents memory leaks when invoking the compiler
1424 // multiple times. Implement a better mechanism where we can store 1424 // multiple times. Implement a better mechanism where we can store
1425 // such caches in the compiler and get access to them through a 1425 // such caches in the compiler and get access to them through a
1426 // suitably maintained static reference to the current compiler. 1426 // suitably maintained static reference to the current compiler.
1427 StringToken.canonicalizedSubstrings.clear(); 1427 StringToken.canonicalizedSubstrings.clear();
1428 Selector.canonicalizedValues.clear(); 1428 Selector.canonicalizedValues.clear();
1429 TypedSelector.canonicalizedValues.clear(); 1429 world.canonicalizedValues.clear();
1430 1430
1431 assert(uri != null || analyzeOnly || hasIncrementalSupport); 1431 assert(uri != null || analyzeOnly || hasIncrementalSupport);
1432 return new Future.sync(() { 1432 return new Future.sync(() {
1433 if (librariesToAnalyzeWhenRun != null) { 1433 if (librariesToAnalyzeWhenRun != null) {
1434 return Future.forEach(librariesToAnalyzeWhenRun, (libraryUri) { 1434 return Future.forEach(librariesToAnalyzeWhenRun, (libraryUri) {
1435 log('Analyzing $libraryUri ($buildId)'); 1435 log('Analyzing $libraryUri ($buildId)');
1436 return libraryLoader.loadLibrary(libraryUri); 1436 return libraryLoader.loadLibrary(libraryUri);
1437 }); 1437 });
1438 } 1438 }
1439 }).then((_) { 1439 }).then((_) {
(...skipping 968 matching lines...) Expand 10 before | Expand all | Expand 10 after
2408 InterfaceType get nullType => nullClass.computeType(compiler); 2408 InterfaceType get nullType => nullClass.computeType(compiler);
2409 2409
2410 @override 2410 @override
2411 InterfaceType get numType => numClass.computeType(compiler); 2411 InterfaceType get numType => numClass.computeType(compiler);
2412 2412
2413 @override 2413 @override
2414 InterfaceType get stringType => stringClass.computeType(compiler); 2414 InterfaceType get stringType => stringClass.computeType(compiler);
2415 } 2415 }
2416 2416
2417 typedef void InternalErrorFunction(Spannable location, String message); 2417 typedef void InternalErrorFunction(Spannable location, String message);
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/native/behavior.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698