| Index: pkg/compiler/lib/src/js_emitter/native_generator.dart
|
| diff --git a/pkg/compiler/lib/src/js_emitter/native_generator.dart b/pkg/compiler/lib/src/js_emitter/native_generator.dart
|
| index 65ae253f3bc4f92771375c983ea5910da0c83b85..d0b49dd48813711762869475d838cbac2473aad2 100644
|
| --- a/pkg/compiler/lib/src/js_emitter/native_generator.dart
|
| +++ b/pkg/compiler/lib/src/js_emitter/native_generator.dart
|
| @@ -34,8 +34,7 @@ class NativeGenerator {
|
| jsAst.Expression dispatchPropertyNameAccess =
|
| generateEmbeddedGlobalAccess(embeddedNames.DISPATCH_PROPERTY_NAME);
|
|
|
| - return js.statement(
|
| - '''
|
| + return js.statement('''
|
| !function() {
|
| var intern = #internStringFunction;
|
|
|
| @@ -63,15 +62,14 @@ class NativeGenerator {
|
| #dispatchPropertyName = #getIsolateTag("dispatch_record");
|
| }
|
| }();
|
| - ''',
|
| - {
|
| - 'initializeDispatchProperty':
|
| - backendUsage.needToInitializeDispatchProperty,
|
| - 'internStringFunction': internStringFunction,
|
| - 'getIsolateTag': getIsolateTagAccess,
|
| - 'isolateTag': isolateTagAccess,
|
| - 'dispatchPropertyName': dispatchPropertyNameAccess
|
| - });
|
| + ''', {
|
| + 'initializeDispatchProperty':
|
| + backendUsage.needToInitializeDispatchProperty,
|
| + 'internStringFunction': internStringFunction,
|
| + 'getIsolateTag': getIsolateTagAccess,
|
| + 'isolateTag': isolateTagAccess,
|
| + 'dispatchPropertyName': dispatchPropertyNameAccess
|
| + });
|
| }
|
|
|
| static String generateIsolateTagRoot() {
|
| @@ -155,8 +153,7 @@ class NativeGenerator {
|
| jsAst.Expression leafTagsAccess) {
|
| jsAst.Expression subclassRead =
|
| subclassReadGenerator(js('subclasses[i]', []));
|
| - return js.statement(
|
| - '''
|
| + return js.statement('''
|
| // The native info looks like this:
|
| //
|
| // HtmlElement: {
|
| @@ -204,15 +201,14 @@ class NativeGenerator {
|
| }
|
| }
|
| }
|
| - ''',
|
| - {
|
| - 'info': infoAccess,
|
| - 'constructor': constructorAccess,
|
| - 'subclassRead': subclassRead,
|
| - 'interceptorsByTagAccess': interceptorsByTagAccess,
|
| - 'leafTagsAccess': leafTagsAccess,
|
| - 'nativeSuperclassTagName': embeddedNames.NATIVE_SUPERCLASS_TAG_NAME,
|
| - 'allowNativesSubclassing': true
|
| - });
|
| + ''', {
|
| + 'info': infoAccess,
|
| + 'constructor': constructorAccess,
|
| + 'subclassRead': subclassRead,
|
| + 'interceptorsByTagAccess': interceptorsByTagAccess,
|
| + 'leafTagsAccess': leafTagsAccess,
|
| + 'nativeSuperclassTagName': embeddedNames.NATIVE_SUPERCLASS_TAG_NAME,
|
| + 'allowNativesSubclassing': true
|
| + });
|
| }
|
| }
|
|
|