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

Unified Diff: sdk/lib/_internal/compiler/implementation/compiler.dart

Issue 22871009: Address long-standing review comments. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 4 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 | sdk/lib/_internal/compiler/implementation/js_backend/backend.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/compiler.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/compiler.dart (revision 26191)
+++ sdk/lib/_internal/compiler/implementation/compiler.dart (working copy)
@@ -129,30 +129,69 @@
bool classNeedsRti(ClassElement cls);
bool methodNeedsRti(FunctionElement function);
- // The following methods are hooks for the backend to register its
- // helper methods.
+ /// Called during resolution to notify to the backend that a class is
+ /// being instantiated.
void registerInstantiatedClass(ClassElement cls,
Enqueuer enqueuer,
TreeElements elements) {}
+
+ /// Called during resolution to notify to the backend that the
+ /// program uses string interpolation.
void registerStringInterpolation(TreeElements elements) {}
+
+ /// Called during resolution to notify to the backend that the
+ /// program has a catch statement.
void registerCatchStatement(Enqueuer enqueuer,
TreeElements elements) {}
- void registerWrapException(TreeElements elements) {}
+
+ /// Called during resolution to notify to the backend that the
+ /// program explicitly throws an exception.
void registerThrowExpression(TreeElements elements) {}
+
+ /// Called during resolution to notify to the backend that the
+ /// program has a global variable with a lazy initializer.
void registerLazyField(TreeElements elements) {}
+
+ /// Called during resolution to notify to the backend that the
+ /// program uses a type variable as an expression.
void registerTypeVariableExpression(TreeElements elements) {}
+
+ /// Called during resolution to notify to the backend that the
+ /// program uses a type literal.
void registerTypeLiteral(Element element, TreeElements elements) {}
+
+ /// Called during resolution to notify to the backend that the
+ /// program has a catch statement with a stack trace.
void registerStackTraceInCatch(TreeElements elements) {}
+
+ /// Register an is check to the backend.
void registerIsCheck(DartType type,
Enqueuer enqueuer,
TreeElements elements) {}
+
+ /// Register an as check to the backend.
void registerAsCheck(DartType type, TreeElements elements) {}
+
+ /// Register that the application may throw a [NoSuchMethodError].
void registerThrowNoSuchMethod(TreeElements elements) {}
+
+ /// Register that the application may throw a [RuntimeError].
void registerThrowRuntimeError(TreeElements elements) {}
+
+ /// Register that the application may throw an
+ /// [AbstractClassInstantiationError].
void registerAbstractClassInstantiation(TreeElements elements) {}
+
+ /// Register that the application may throw a [FallThroughError].
void registerFallThroughError(TreeElements elements) {}
+
+ /// Register that a super call will end up calling
+ /// [: super.noSuchMethod :].
void registerSuperNoSuchMethod(TreeElements elements) {}
+
+ /// Register that the application creates a constant map.
void registerConstantMap(TreeElements elements) {}
+
/**
* Call this to register that an instantiated generic class has a call
* method.
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/js_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698