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

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

Issue 1149303006: Let Backend determine support for deferred loading. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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 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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 void onResolutionComplete() {} 307 void onResolutionComplete() {}
308 void onTypeInferenceComplete() {} 308 void onTypeInferenceComplete() {}
309 309
310 ItemCompilationContext createItemCompilationContext() { 310 ItemCompilationContext createItemCompilationContext() {
311 return new ItemCompilationContext(); 311 return new ItemCompilationContext();
312 } 312 }
313 313
314 bool classNeedsRti(ClassElement cls); 314 bool classNeedsRti(ClassElement cls);
315 bool methodNeedsRti(FunctionElement function); 315 bool methodNeedsRti(FunctionElement function);
316 316
317 /// Register deferred loading. Returns `true` if the backend supports deferred
318 /// loading.
319 bool registerDeferredLoading(Spannable node, Registry registry);
320
317 /// Called during codegen when [constant] has been used. 321 /// Called during codegen when [constant] has been used.
318 void registerCompileTimeConstant(ConstantValue constant, Registry registry) {} 322 void registerCompileTimeConstant(ConstantValue constant, Registry registry) {}
319 323
320 /// Called during resolution when a constant value for [metadata] on 324 /// Called during resolution when a constant value for [metadata] on
321 /// [annotatedElement] has been evaluated. 325 /// [annotatedElement] has been evaluated.
322 void registerMetadataConstant(MetadataAnnotation metadata, 326 void registerMetadataConstant(MetadataAnnotation metadata,
323 Element annotatedElement, 327 Element annotatedElement,
324 Registry registry) {} 328 Registry registry) {}
325 329
326 /// Called to notify to the backend that a class is being instantiated. 330 /// Called to notify to the backend that a class is being instantiated.
(...skipping 2133 matching lines...) Expand 10 before | Expand all | Expand 10 after
2460 return futureClass.computeType(compiler).createInstantiation([elementType]); 2464 return futureClass.computeType(compiler).createInstantiation([elementType]);
2461 } 2465 }
2462 2466
2463 @override 2467 @override
2464 InterfaceType streamType([DartType elementType = const DynamicType()]) { 2468 InterfaceType streamType([DartType elementType = const DynamicType()]) {
2465 return streamClass.computeType(compiler).createInstantiation([elementType]); 2469 return streamClass.computeType(compiler).createInstantiation([elementType]);
2466 } 2470 }
2467 } 2471 }
2468 2472
2469 typedef void InternalErrorFunction(Spannable location, String message); 2473 typedef void InternalErrorFunction(Spannable location, String message);
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/dart_backend/backend.dart » ('j') | pkg/compiler/lib/src/warnings.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698