| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 part of dart2js.js_emitter; | 5 library dart2js.js_emitter.native_generator; |
| 6 |
| 7 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames; |
| 8 |
| 9 import '../js/js.dart' as jsAst; |
| 10 import '../js/js.dart' show js; |
| 11 import '../js_backend/js_backend.dart' |
| 12 show |
| 13 JavaScriptBackend; |
| 14 |
| 15 import 'model.dart'; |
| 6 | 16 |
| 7 class NativeGenerator { | 17 class NativeGenerator { |
| 8 static bool needsIsolateAffinityTagInitialization(JavaScriptBackend backend) { | 18 static bool needsIsolateAffinityTagInitialization(JavaScriptBackend backend) { |
| 9 return backend.needToInitializeIsolateAffinityTag; | 19 return backend.needToInitializeIsolateAffinityTag; |
| 10 } | 20 } |
| 11 | 21 |
| 12 /// Generates the code for isolate affinity tags. | 22 /// Generates the code for isolate affinity tags. |
| 13 /// | 23 /// |
| 14 /// Independently Dart programs on the same page must not interfer and | 24 /// Independently Dart programs on the same page must not interfer and |
| 15 /// this code sets up the variables needed to guarantee that behavior. | 25 /// this code sets up the variables needed to guarantee that behavior. |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 'info': infoAccess, | 211 'info': infoAccess, |
| 202 'constructor': constructorAccess, | 212 'constructor': constructorAccess, |
| 203 'subclassRead': subclassRead, | 213 'subclassRead': subclassRead, |
| 204 'interceptorsByTagAccess': interceptorsByTagAccess, | 214 'interceptorsByTagAccess': interceptorsByTagAccess, |
| 205 'leafTagsAccess': leafTagsAccess, | 215 'leafTagsAccess': leafTagsAccess, |
| 206 'nativeSuperclassTagName': embeddedNames.NATIVE_SUPERCLASS_TAG_NAME, | 216 'nativeSuperclassTagName': embeddedNames.NATIVE_SUPERCLASS_TAG_NAME, |
| 207 'allowNativesSubclassing': true | 217 'allowNativesSubclassing': true |
| 208 }); | 218 }); |
| 209 } | 219 } |
| 210 } | 220 } |
| OLD | NEW |