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

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

Issue 1408253006: Introduce "platform configurations" to replace categories and libraries.dart. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix create_sdk scripts according to review Created 5 years, 1 month 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 | « pkg/compiler/lib/src/apiimpl.dart ('k') | pkg/compiler/lib/src/compiler.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.backend_api; 5 library dart2js.backend_api;
6 6
7 import 'dart:async' show Future; 7 import 'dart:async' show Future;
8 8
9 import '../common.dart'; 9 import '../common.dart';
10 import '../common/codegen.dart' show 10 import '../common/codegen.dart' show
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 405
406 void registerAsyncMarker(FunctionElement element, 406 void registerAsyncMarker(FunctionElement element,
407 Enqueuer enqueuer, 407 Enqueuer enqueuer,
408 Registry registry) {} 408 Registry registry) {}
409 409
410 /// Called when resolving a call to a foreign function. 410 /// Called when resolving a call to a foreign function.
411 void registerForeignCall(Send node, 411 void registerForeignCall(Send node,
412 Element element, 412 Element element,
413 CallStructure callStructure, 413 CallStructure callStructure,
414 ForeignResolver resolver) {} 414 ForeignResolver resolver) {}
415
416 /// Returns the location of the patch-file associated with [libraryName]
417 /// resolved from [plaformConfigUri].
418 ///
419 /// Returns null if there is none.
420 Uri resolvePatchUri(String libraryName, Uri plaformConfigUri);
415 } 421 }
416 422
417 /// Interface for resolving calls to foreign functions. 423 /// Interface for resolving calls to foreign functions.
418 abstract class ForeignResolver { 424 abstract class ForeignResolver {
419 /// Returns the constant expression of [node], or `null` if [node] is not 425 /// Returns the constant expression of [node], or `null` if [node] is not
420 /// a constant expression. 426 /// a constant expression.
421 ConstantExpression getConstant(Node node); 427 ConstantExpression getConstant(Node node);
422 428
423 /// Registers [type] as instantiated. 429 /// Registers [type] as instantiated.
424 void registerInstantiatedType(InterfaceType type); 430 void registerInstantiatedType(InterfaceType type);
425 431
426 /// Resolves [typeName] to a type in the context of [node]. 432 /// Resolves [typeName] to a type in the context of [node].
427 DartType resolveTypeFromString(Node node, String typeName); 433 DartType resolveTypeFromString(Node node, String typeName);
428 } 434 }
429 435
430 /// Backend transformation methods for the world impacts. 436 /// Backend transformation methods for the world impacts.
431 class ImpactTransformer { 437 class ImpactTransformer {
432 /// Transform the [ResolutionImpact] into a [WorldImpact] adding the 438 /// Transform the [ResolutionImpact] into a [WorldImpact] adding the
433 /// backend dependencies for features used in [worldImpact]. 439 /// backend dependencies for features used in [worldImpact].
434 WorldImpact transformResolutionImpact(ResolutionImpact worldImpact) { 440 WorldImpact transformResolutionImpact(ResolutionImpact worldImpact) {
435 return worldImpact; 441 return worldImpact;
436 } 442 }
437 443
438 /// Transform the [CodegenImpact] into a [WorldImpact] adding the 444 /// Transform the [CodegenImpact] into a [WorldImpact] adding the
439 /// backend dependencies for features used in [worldImpact]. 445 /// backend dependencies for features used in [worldImpact].
440 WorldImpact transformCodegenImpact(CodegenImpact worldImpact) { 446 WorldImpact transformCodegenImpact(CodegenImpact worldImpact) {
441 return worldImpact; 447 return worldImpact;
442 } 448 }
443 } 449 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/apiimpl.dart ('k') | pkg/compiler/lib/src/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698