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

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

Issue 935033005: Register literals through backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Changes commited as r43876. Created 5 years, 10 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
« no previous file with comments | « no previous file | dart/pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/pkg/compiler/lib/src/compiler.dart
diff --git a/dart/pkg/compiler/lib/src/compiler.dart b/dart/pkg/compiler/lib/src/compiler.dart
index d0b85f5acd79124dfc230d6b5311233f55cbc8f7..44248839a73555a622b921e424f6cd208fb7ecb2 100644
--- a/dart/pkg/compiler/lib/src/compiler.dart
+++ b/dart/pkg/compiler/lib/src/compiler.dart
@@ -524,9 +524,10 @@ abstract class Backend {
void registerMainHasArguments(Enqueuer enqueuer) {}
- void registerAsyncMarker(FunctionElement element,
- Enqueuer enqueuer,
- Registry registry) {}
+ void registerAsyncMarker(
+ FunctionElement element,
+ Enqueuer enqueuer,
+ Registry registry) {}
}
/// Backend callbacks function specific to the resolution phase.
@@ -593,6 +594,27 @@ class ResolutionCallbacks {
/// Called when resolving the `Symbol` constructor.
void onSymbolConstructor(Registry registry) {}
+
+ /// Called when resolving a literal int.
+ void onLiteralInt(Registry registry) {}
+
+ /// Called when resolving a literal double.
+ void onLiteralDouble(Registry registry) {}
+
+ /// Called when resolving a literal bool.
+ void onLiteralBool(Registry registry) {}
+
+ /// Called when resolving a literal String.
+ void onLiteralString(Registry registry) {}
+
+ /// Called when resolving a literal null.
+ void onLiteralNull(Registry registry) {}
+
+ /// Called when resolving a literal Symbol.
+ void onLiteralSymbol(Registry registry) {}
+
+ /// Called when resolving a literal Function (aka a closure).
+ void onLiteralFunction(Registry registry) {}
}
/**
« no previous file with comments | « no previous file | dart/pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698