OLD | NEW |
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 CodegenImpact; | 10 import '../common/codegen.dart' show CodegenImpact; |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 | 369 |
370 FunctionElement helperForMainArity() => null; | 370 FunctionElement helperForMainArity() => null; |
371 | 371 |
372 void forgetElement(Element element) {} | 372 void forgetElement(Element element) {} |
373 | 373 |
374 void registerMainHasArguments(Enqueuer enqueuer) {} | 374 void registerMainHasArguments(Enqueuer enqueuer) {} |
375 | 375 |
376 void registerAsyncMarker( | 376 void registerAsyncMarker( |
377 FunctionElement element, Enqueuer enqueuer, Registry registry) {} | 377 FunctionElement element, Enqueuer enqueuer, Registry registry) {} |
378 | 378 |
379 /// Called when resolving a call to a foreign function. | 379 /// Called when resolving a call to a foreign function. If a non-null value |
380 void registerForeignCall(Send node, Element element, | 380 /// is returned, this is stored as native data for [node] in the resolved |
| 381 /// AST. |
| 382 dynamic resolveForeignCall(Send node, Element element, |
381 CallStructure callStructure, ForeignResolver resolver) {} | 383 CallStructure callStructure, ForeignResolver resolver) {} |
382 | 384 |
383 /// Returns the location of the patch-file associated with [libraryName] | 385 /// Returns the location of the patch-file associated with [libraryName] |
384 /// resolved from [plaformConfigUri]. | 386 /// resolved from [plaformConfigUri]. |
385 /// | 387 /// |
386 /// Returns null if there is none. | 388 /// Returns null if there is none. |
387 Uri resolvePatchUri(String libraryName, Uri plaformConfigUri); | 389 Uri resolvePatchUri(String libraryName, Uri plaformConfigUri); |
388 | 390 |
389 /// Creates an impact strategy to use for compilation. | 391 /// Creates an impact strategy to use for compilation. |
390 ImpactStrategy createImpactStrategy( | 392 ImpactStrategy createImpactStrategy( |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 } | 428 } |
427 } | 429 } |
428 | 430 |
429 /// Interface for serialization of backend specific data. | 431 /// Interface for serialization of backend specific data. |
430 class BackendSerialization { | 432 class BackendSerialization { |
431 const BackendSerialization(); | 433 const BackendSerialization(); |
432 | 434 |
433 SerializerPlugin get serializer => const SerializerPlugin(); | 435 SerializerPlugin get serializer => const SerializerPlugin(); |
434 DeserializerPlugin get deserializer => const DeserializerPlugin(); | 436 DeserializerPlugin get deserializer => const DeserializerPlugin(); |
435 } | 437 } |
OLD | NEW |