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

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

Issue 2824423002: Compute NativeBasicData for KernelWorldBuilder (Closed)
Patch Set: Updated cf. comments. Created 3 years, 7 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 1899 matching lines...) Expand 10 before | Expand all | Expand 10 after
1910 if (cls == null && required) { 1910 if (cls == null && required) {
1911 throw new SpannableAssertionFailure( 1911 throw new SpannableAssertionFailure(
1912 cls, 1912 cls,
1913 "The library '${library.libraryName}' does not " 1913 "The library '${library.libraryName}' does not "
1914 "contain required class: '$name'."); 1914 "contain required class: '$name'.");
1915 } 1915 }
1916 return cls?.declaration; 1916 return cls?.declaration;
1917 } 1917 }
1918 1918
1919 @override 1919 @override
1920 void forEachClass(LibraryElement library, void f(ClassElement cls)) {
1921 library.implementation.forEachLocalMember((member) {
1922 if (member.isClass) {
1923 f(member);
1924 }
1925 });
1926 }
1927
1928 @override
1920 LibraryElement lookupLibrary(Uri uri, {bool required: false}) { 1929 LibraryElement lookupLibrary(Uri uri, {bool required: false}) {
1921 LibraryElement library = _libraryProvider.lookupLibrary(uri); 1930 LibraryElement library = _libraryProvider.lookupLibrary(uri);
1922 // If the script of the library is synthesized, the library does not exist 1931 // If the script of the library is synthesized, the library does not exist
1923 // and we do not try to load the helpers. 1932 // and we do not try to load the helpers.
1924 // 1933 //
1925 // This could for example happen if dart:async is disabled, then loading it 1934 // This could for example happen if dart:async is disabled, then loading it
1926 // should not try to find the given element. 1935 // should not try to find the given element.
1927 if (library != null && library.isSynthesized) { 1936 if (library != null && library.isSynthesized) {
1928 return null; 1937 return null;
1929 } 1938 }
(...skipping 29 matching lines...) Expand all
1959 ResolutionFunctionType getLocalFunctionType(LocalFunctionElement function) { 1968 ResolutionFunctionType getLocalFunctionType(LocalFunctionElement function) {
1960 return function.type; 1969 return function.type;
1961 } 1970 }
1962 1971
1963 @override 1972 @override
1964 ResolutionDartType getUnaliasedType(ResolutionDartType type) { 1973 ResolutionDartType getUnaliasedType(ResolutionDartType type) {
1965 type.computeUnaliased(_resolution); 1974 type.computeUnaliased(_resolution);
1966 return type.unaliased; 1975 return type.unaliased;
1967 } 1976 }
1968 } 1977 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/common_elements.dart ('k') | pkg/compiler/lib/src/js_backend/native_data.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698