| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 resolution; | 5 part of resolution; |
| 6 | 6 |
| 7 abstract class TreeElements { | 7 abstract class TreeElements { |
| 8 AnalyzableElement get analyzedElement; | 8 AnalyzableElement get analyzedElement; |
| 9 Iterable<Node> get superUses; | 9 Iterable<Node> get superUses; |
| 10 | 10 |
| (...skipping 2915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2926 registry.registerSuperNoSuchMethod(); | 2926 registry.registerSuperNoSuchMethod(); |
| 2927 } | 2927 } |
| 2928 } | 2928 } |
| 2929 } | 2929 } |
| 2930 | 2930 |
| 2931 if (target != null && target.isForeign(compiler.backend)) { | 2931 if (target != null && target.isForeign(compiler.backend)) { |
| 2932 if (selector.name == 'JS') { | 2932 if (selector.name == 'JS') { |
| 2933 registry.registerJsCall(node, this); | 2933 registry.registerJsCall(node, this); |
| 2934 } else if (selector.name == 'JS_EMBEDDED_GLOBAL') { | 2934 } else if (selector.name == 'JS_EMBEDDED_GLOBAL') { |
| 2935 registry.registerJsEmbeddedGlobalCall(node, this); | 2935 registry.registerJsEmbeddedGlobalCall(node, this); |
| 2936 } else if (selector.name == 'JS_BUILTIN') { |
| 2937 registry.registerJsBuiltinCall(node, this); |
| 2936 } else if (selector.name == 'JS_INTERCEPTOR_CONSTANT') { | 2938 } else if (selector.name == 'JS_INTERCEPTOR_CONSTANT') { |
| 2937 if (!node.argumentsNode.isEmpty) { | 2939 if (!node.argumentsNode.isEmpty) { |
| 2938 Node argument = node.argumentsNode.nodes.head; | 2940 Node argument = node.argumentsNode.nodes.head; |
| 2939 if (argumentsToJsInterceptorConstant == null) { | 2941 if (argumentsToJsInterceptorConstant == null) { |
| 2940 argumentsToJsInterceptorConstant = new Set<Node>(); | 2942 argumentsToJsInterceptorConstant = new Set<Node>(); |
| 2941 } | 2943 } |
| 2942 argumentsToJsInterceptorConstant.add(argument); | 2944 argumentsToJsInterceptorConstant.add(argument); |
| 2943 } | 2945 } |
| 2944 } | 2946 } |
| 2945 } | 2947 } |
| (...skipping 2150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5096 } | 5098 } |
| 5097 | 5099 |
| 5098 /// The result for the resolution of the `assert` method. | 5100 /// The result for the resolution of the `assert` method. |
| 5099 class AssertResult implements ResolutionResult { | 5101 class AssertResult implements ResolutionResult { |
| 5100 const AssertResult(); | 5102 const AssertResult(); |
| 5101 | 5103 |
| 5102 Element get element => null; | 5104 Element get element => null; |
| 5103 | 5105 |
| 5104 String toString() => 'AssertResult()'; | 5106 String toString() => 'AssertResult()'; |
| 5105 } | 5107 } |
| OLD | NEW |