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

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

Issue 2824423002: Compute NativeBasicData for KernelWorldBuilder (Closed)
Patch Set: 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
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 1939 matching lines...) Expand 10 before | Expand all | Expand 10 after
1950 if (cls == null && required) { 1950 if (cls == null && required) {
1951 throw new SpannableAssertionFailure( 1951 throw new SpannableAssertionFailure(
1952 cls, 1952 cls,
1953 "The library '${library.libraryName}' does not " 1953 "The library '${library.libraryName}' does not "
1954 "contain required class: '$name'."); 1954 "contain required class: '$name'.");
1955 } 1955 }
1956 return cls?.declaration; 1956 return cls?.declaration;
1957 } 1957 }
1958 1958
1959 @override 1959 @override
1960 void forEachClass(LibraryElement library, void f(ClassElement cls)) {
1961 library.implementation.forEachLocalMember((member) {
1962 if (member.isClass) {
1963 f(member);
1964 }
1965 });
1966 }
1967
1968 @override
1960 LibraryElement lookupLibrary(Uri uri, {bool required: false}) { 1969 LibraryElement lookupLibrary(Uri uri, {bool required: false}) {
1961 LibraryElement library = _libraryProvider.lookupLibrary(uri); 1970 LibraryElement library = _libraryProvider.lookupLibrary(uri);
1962 // If the script of the library is synthesized, the library does not exist 1971 // If the script of the library is synthesized, the library does not exist
1963 // and we do not try to load the helpers. 1972 // and we do not try to load the helpers.
1964 // 1973 //
1965 // This could for example happen if dart:async is disabled, then loading it 1974 // This could for example happen if dart:async is disabled, then loading it
1966 // should not try to find the given element. 1975 // should not try to find the given element.
1967 if (library != null && library.isSynthesized) { 1976 if (library != null && library.isSynthesized) {
1968 return null; 1977 return null;
1969 } 1978 }
(...skipping 29 matching lines...) Expand all
1999 ResolutionFunctionType getLocalFunctionType(LocalFunctionElement function) { 2008 ResolutionFunctionType getLocalFunctionType(LocalFunctionElement function) {
2000 return function.type; 2009 return function.type;
2001 } 2010 }
2002 2011
2003 @override 2012 @override
2004 ResolutionDartType getUnaliasedType(ResolutionDartType type) { 2013 ResolutionDartType getUnaliasedType(ResolutionDartType type) {
2005 type.computeUnaliased(_resolution); 2014 type.computeUnaliased(_resolution);
2006 return type.unaliased; 2015 return type.unaliased;
2007 } 2016 }
2008 } 2017 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698