| 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 library dart2js.js_emitter.native_generator; | 5 library dart2js.js_emitter.native_generator; |
| 6 | 6 |
| 7 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames; | 7 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames; |
| 8 | 8 |
| 9 import '../js/js.dart' as jsAst; | 9 import '../js/js.dart' as jsAst; |
| 10 import '../js/js.dart' show js; | 10 import '../js/js.dart' show js; |
| 11 import '../js_backend/js_backend.dart' | 11 import '../js_backend/js_backend.dart' show JavaScriptBackend; |
| 12 show | |
| 13 JavaScriptBackend; | |
| 14 | 12 |
| 15 import 'model.dart'; | 13 import 'model.dart'; |
| 16 | 14 |
| 17 class NativeGenerator { | 15 class NativeGenerator { |
| 18 static bool needsIsolateAffinityTagInitialization(JavaScriptBackend backend) { | 16 static bool needsIsolateAffinityTagInitialization(JavaScriptBackend backend) { |
| 19 return backend.needToInitializeIsolateAffinityTag; | 17 return backend.needToInitializeIsolateAffinityTag; |
| 20 } | 18 } |
| 21 | 19 |
| 22 /// Generates the code for isolate affinity tags. | 20 /// Generates the code for isolate affinity tags. |
| 23 /// | 21 /// |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 'info': infoAccess, | 209 'info': infoAccess, |
| 212 'constructor': constructorAccess, | 210 'constructor': constructorAccess, |
| 213 'subclassRead': subclassRead, | 211 'subclassRead': subclassRead, |
| 214 'interceptorsByTagAccess': interceptorsByTagAccess, | 212 'interceptorsByTagAccess': interceptorsByTagAccess, |
| 215 'leafTagsAccess': leafTagsAccess, | 213 'leafTagsAccess': leafTagsAccess, |
| 216 'nativeSuperclassTagName': embeddedNames.NATIVE_SUPERCLASS_TAG_NAME, | 214 'nativeSuperclassTagName': embeddedNames.NATIVE_SUPERCLASS_TAG_NAME, |
| 217 'allowNativesSubclassing': true | 215 'allowNativesSubclassing': true |
| 218 }); | 216 }); |
| 219 } | 217 } |
| 220 } | 218 } |
| OLD | NEW |