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

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

Issue 1312943007: Add version validation for LookupMap, also add unittest directly in LookupMap. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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 7 import 'dart:async' show
8 EventSink, 8 EventSink,
9 Future; 9 Future;
10 10
(...skipping 1135 matching lines...) Expand 10 before | Expand all | Expand 10 after
1146 1146
1147 log('Inferring types...'); 1147 log('Inferring types...');
1148 typesTask.onResolutionComplete(mainFunction); 1148 typesTask.onResolutionComplete(mainFunction);
1149 1149
1150 if (stopAfterTypeInference) return; 1150 if (stopAfterTypeInference) return;
1151 1151
1152 backend.onTypeInferenceComplete(); 1152 backend.onTypeInferenceComplete();
1153 1153
1154 log('Compiling...'); 1154 log('Compiling...');
1155 phase = PHASE_COMPILING; 1155 phase = PHASE_COMPILING;
1156 backend.onCodegenStart();
1156 // TODO(johnniwinther): Move these to [CodegenEnqueuer]. 1157 // TODO(johnniwinther): Move these to [CodegenEnqueuer].
1157 if (hasIsolateSupport) { 1158 if (hasIsolateSupport) {
1158 backend.enableIsolateSupport(enqueuer.codegen); 1159 backend.enableIsolateSupport(enqueuer.codegen);
1159 } 1160 }
1160 if (compileAll) { 1161 if (compileAll) {
1161 libraryLoader.libraries.forEach((LibraryElement library) { 1162 libraryLoader.libraries.forEach((LibraryElement library) {
1162 fullyEnqueueLibrary(library, enqueuer.codegen); 1163 fullyEnqueueLibrary(library, enqueuer.codegen);
1163 }); 1164 });
1164 } 1165 }
1165 processQueue(enqueuer.codegen, mainFunction); 1166 processQueue(enqueuer.codegen, mainFunction);
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
1784 1785
1785 @override 1786 @override
1786 InterfaceType streamType([DartType elementType]) { 1787 InterfaceType streamType([DartType elementType]) {
1787 InterfaceType type = streamClass.computeType(compiler); 1788 InterfaceType type = streamClass.computeType(compiler);
1788 if (elementType == null) { 1789 if (elementType == null) {
1789 return streamClass.rawType; 1790 return streamClass.rawType;
1790 } 1791 }
1791 return type.createInstantiation([elementType]); 1792 return type.createInstantiation([elementType]);
1792 } 1793 }
1793 } 1794 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698