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

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

Issue 2836733002: dart2js: patch file support cleanup (Closed)
Patch Set: remove js_array change Created 3 years, 8 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_backend/backend.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 library dart2js.compiler_base; 5 library dart2js.compiler_base;
6 6
7 import 'dart:async' show Future; 7 import 'dart:async' show Future;
8 8
9 import '../compiler_new.dart' as api; 9 import '../compiler_new.dart' as api;
10 import 'closure.dart' as closureMapping show ClosureTask; 10 import 'closure.dart' as closureMapping show ClosureTask;
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 'importChain': importChains 418 'importChain': importChains
419 .join(MessageTemplate.IMPORT_EXPERIMENTAL_MIRRORS_PADDING) 419 .join(MessageTemplate.IMPORT_EXPERIMENTAL_MIRRORS_PADDING)
420 }); 420 });
421 } 421 }
422 } 422 }
423 } 423 }
424 backend.onLibrariesLoaded(loadedLibraries); 424 backend.onLibrariesLoaded(loadedLibraries);
425 return loadedLibraries; 425 return loadedLibraries;
426 } 426 }
427 427
428 // TODO(johnniwinther): Move this to [PatchParser] when it is moved to the
429 // [JavaScriptBackend]. Currently needed for testing.
430 String get patchVersion => backend.patchVersion;
431
432 /** 428 /**
433 * Get an [Uri] pointing to a patch for the dart: library with 429 * Get an [Uri] pointing to a patch for the dart: library with
434 * the given path. Returns null if there is no patch. 430 * the given path. Returns null if there is no patch.
435 */ 431 */
436 Uri resolvePatchUri(String dartLibraryPath); 432 Uri resolvePatchUri(String dartLibraryPath);
437 433
438 Future runInternal(Uri uri) async { 434 Future runInternal(Uri uri) async {
439 // TODO(ahe): This prevents memory leaks when invoking the compiler 435 // TODO(ahe): This prevents memory leaks when invoking the compiler
440 // multiple times. Implement a better mechanism where we can store 436 // multiple times. Implement a better mechanism where we can store
441 // such caches in the compiler and get access to them through a 437 // such caches in the compiler and get access to them through a
(...skipping 1516 matching lines...) Expand 10 before | Expand all | Expand 10 after
1958 ResolutionFunctionType getLocalFunctionType(LocalFunctionElement function) { 1954 ResolutionFunctionType getLocalFunctionType(LocalFunctionElement function) {
1959 return function.type; 1955 return function.type;
1960 } 1956 }
1961 1957
1962 @override 1958 @override
1963 ResolutionDartType getUnaliasedType(ResolutionDartType type) { 1959 ResolutionDartType getUnaliasedType(ResolutionDartType type) {
1964 type.computeUnaliased(_resolution); 1960 type.computeUnaliased(_resolution);
1965 return type.unaliased; 1961 return type.unaliased;
1966 } 1962 }
1967 } 1963 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698