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

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

Issue 1896843002: Store and serialize NativeBehavior in TreeElements. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 4 years, 8 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.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 CodegenImpact; 10 import '../common/codegen.dart' show CodegenImpact;
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698