| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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_backend.helpers; | 5 library dart2js.js_backend.helpers; |
| 6 | 6 |
| 7 import '../common.dart'; | 7 import '../common.dart'; |
| 8 import '../common/names.dart' show Identifiers, Uris; | 8 import '../common/names.dart' show Identifiers, Uris; |
| 9 import '../common/resolution.dart' show Resolution; | 9 import '../common/resolution.dart' show Resolution; |
| 10 import '../compiler.dart' show Compiler; | 10 import '../compiler.dart' show Compiler; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 static final Uri DART_JS_NAMES = new Uri(scheme: 'dart', path: '_js_names'); | 37 static final Uri DART_JS_NAMES = new Uri(scheme: 'dart', path: '_js_names'); |
| 38 static final Uri DART_EMBEDDED_NAMES = | 38 static final Uri DART_EMBEDDED_NAMES = |
| 39 new Uri(scheme: 'dart', path: '_js_embedded_names'); | 39 new Uri(scheme: 'dart', path: '_js_embedded_names'); |
| 40 static final Uri DART_ISOLATE_HELPER = | 40 static final Uri DART_ISOLATE_HELPER = |
| 41 new Uri(scheme: 'dart', path: '_isolate_helper'); | 41 new Uri(scheme: 'dart', path: '_isolate_helper'); |
| 42 static final Uri PACKAGE_JS = new Uri(scheme: 'package', path: 'js/js.dart'); | 42 static final Uri PACKAGE_JS = new Uri(scheme: 'package', path: 'js/js.dart'); |
| 43 | 43 |
| 44 static const String INVOKE_ON = '_getCachedInvocation'; | 44 static const String INVOKE_ON = '_getCachedInvocation'; |
| 45 static const String START_ROOT_ISOLATE = 'startRootIsolate'; | 45 static const String START_ROOT_ISOLATE = 'startRootIsolate'; |
| 46 | 46 |
| 47 static const String JS = 'JS'; |
| 48 static const String JS_BUILTIN = 'JS_BUILTIN'; |
| 49 static const String JS_EMBEDDED_GLOBAL = 'JS_EMBEDDED_GLOBAL'; |
| 50 static const String JS_INTERCEPTOR_CONSTANT = 'JS_INTERCEPTOR_CONSTANT'; |
| 51 |
| 47 final Compiler compiler; | 52 final Compiler compiler; |
| 48 | 53 |
| 49 Element cachedCheckConcurrentModificationError; | 54 Element cachedCheckConcurrentModificationError; |
| 50 | 55 |
| 51 BackendHelpers(this.compiler); | 56 BackendHelpers(this.compiler); |
| 52 | 57 |
| 53 JavaScriptBackend get backend => compiler.backend; | 58 JavaScriptBackend get backend => compiler.backend; |
| 54 | 59 |
| 55 Resolution get resolution => backend.resolution; | 60 Resolution get resolution => backend.resolution; |
| 56 | 61 |
| (...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 712 MethodElement _objectNoSuchMethod; | 717 MethodElement _objectNoSuchMethod; |
| 713 | 718 |
| 714 MethodElement get objectNoSuchMethod { | 719 MethodElement get objectNoSuchMethod { |
| 715 if (_objectNoSuchMethod == null) { | 720 if (_objectNoSuchMethod == null) { |
| 716 _objectNoSuchMethod = | 721 _objectNoSuchMethod = |
| 717 coreClasses.objectClass.lookupLocalMember(Identifiers.noSuchMethod_); | 722 coreClasses.objectClass.lookupLocalMember(Identifiers.noSuchMethod_); |
| 718 } | 723 } |
| 719 return _objectNoSuchMethod; | 724 return _objectNoSuchMethod; |
| 720 } | 725 } |
| 721 } | 726 } |
| OLD | NEW |