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

Unified Diff: pkg/compiler/lib/src/common/backend_api.dart

Issue 2045223002: Compute and cache element NativeBehavior during resolution. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Cleanup. Created 4 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 side-by-side diff with in-line comments
Download patch
Index: pkg/compiler/lib/src/common/backend_api.dart
diff --git a/pkg/compiler/lib/src/common/backend_api.dart b/pkg/compiler/lib/src/common/backend_api.dart
index 080a03b416a96f7d048d823bbefb37682f8da139..70c4d4091951ad255434ed599ac322a1fdcf2fe0 100644
--- a/pkg/compiler/lib/src/common/backend_api.dart
+++ b/pkg/compiler/lib/src/common/backend_api.dart
@@ -44,7 +44,7 @@ import 'registry.dart' show Registry;
import 'tasks.dart' show CompilerTask;
import 'work.dart' show ItemCompilationContext;
-abstract class Backend implements Target {
+abstract class Backend extends Target {
final Compiler compiler;
Backend(this.compiler);
@@ -404,6 +404,12 @@ abstract class Backend implements Target {
EnqueueTask makeEnqueuer() => new EnqueueTask(compiler);
}
+/// Interface for resolving native data for a target specific element.
+abstract class NativeRegistry {
+ /// Registers [nativeData] as part of the resolution impact.
+ void registerNativeData(var nativeData);
Harry Terkelsen 2016/06/08 16:34:42 I think this should be 'NativeBehavior nativeData'
Johnni Winther 2016/06/10 07:58:51 It should have been 'dynamic' (it is in Resolution
+}
+
/// Interface for resolving calls to foreign functions.
abstract class ForeignResolver {
/// Returns the constant expression of [node], or `null` if [node] is not
« no previous file with comments | « no previous file | pkg/compiler/lib/src/common/resolution.dart » ('j') | pkg/compiler/lib/src/native/enqueue.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698