Index: pkg/compiler/lib/src/js_backend/backend.dart |
diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart |
index d5034c908c2fc0209912edbd394e70eea80fbf60..9093b24787d437ae01c493074894ebf295060407 100644 |
--- a/pkg/compiler/lib/src/js_backend/backend.dart |
+++ b/pkg/compiler/lib/src/js_backend/backend.dart |
@@ -78,6 +78,8 @@ import 'type_variable_handler.dart'; |
const VERBOSE_OPTIMIZER_HINTS = false; |
abstract class FunctionCompiler { |
+ void onCodegenStart(); |
+ |
/// Generates JavaScript code for `work.element`. |
jsAst.Fun compile(CodegenWorkItem work, ClosedWorld closedWorld); |
@@ -1062,6 +1064,7 @@ class JavaScriptBackend { |
/// [WorldImpact] of enabled backend features is returned. |
WorldImpact onCodegenStart( |
ClosedWorld closedWorld, CodegenWorldBuilder codegenWorldBuilder) { |
+ functionCompiler.onCodegenStart(); |
_oneShotInterceptorData = new OneShotInterceptorData( |
closedWorld.interceptorData, closedWorld.commonElements); |
_namer = determineNamer(closedWorld, codegenWorldBuilder); |