Index: sdk/lib/_internal/compiler/implementation/js_backend/emitter_no_eval.dart |
=================================================================== |
--- sdk/lib/_internal/compiler/implementation/js_backend/emitter_no_eval.dart (revision 15244) |
+++ sdk/lib/_internal/compiler/implementation/js_backend/emitter_no_eval.dart (working copy) |
@@ -59,6 +59,18 @@ |
}"""; |
} |
+ String get lazyInitializerFunction { |
+ return """ |
+function(prototype, staticName, fieldName, getterName, lazyValue, getter) { |
+$lazyInitializerLogic |
+}"""; |
+ } |
+ |
+ void emitLazyInitializedGetter(VariableElement element, CodeBuffer buffer) { |
+ String isolate = namer.CURRENT_ISOLATE; |
+ buffer.add(', function() { return $isolate.${namer.getName(element)}; }'); |
+ } |
+ |
void emitBoundClosureClassHeader(String mangledName, |
String superName, |
String extraArgument, |