| 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 import '../common.dart'; | 5 import '../common.dart'; |
| 6 import '../common/codegen.dart' show | 6 import '../common/codegen.dart' show |
| 7 CodegenRegistry, | 7 CodegenRegistry, |
| 8 CodegenWorkItem; | 8 CodegenWorkItem; |
| 9 import '../common/tasks.dart' show | 9 import '../common/tasks.dart' show |
| 10 CompilerTask; | 10 CompilerTask; |
| (...skipping 1580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1591 } else if (target == helpers.jsStringSplit) { | 1591 } else if (target == helpers.jsStringSplit) { |
| 1592 methodName = 'split'; | 1592 methodName = 'split'; |
| 1593 // Split returns a List, so we make sure the backend knows the | 1593 // Split returns a List, so we make sure the backend knows the |
| 1594 // list class is instantiated. | 1594 // list class is instantiated. |
| 1595 registry.registerInstantiatedClass(coreClasses.listClass); | 1595 registry.registerInstantiatedClass(coreClasses.listClass); |
| 1596 } else if (backend.isNative(target) && target.isFunction | 1596 } else if (backend.isNative(target) && target.isFunction |
| 1597 && !node.isInterceptedCall) { | 1597 && !node.isInterceptedCall) { |
| 1598 // A direct (i.e. non-interceptor) native call is the result of | 1598 // A direct (i.e. non-interceptor) native call is the result of |
| 1599 // optimization. The optimization ensures any type checks or | 1599 // optimization. The optimization ensures any type checks or |
| 1600 // conversions have been satisified. | 1600 // conversions have been satisified. |
| 1601 methodName = backend.getFixedBackendName(target); | 1601 methodName = backend.nativeData.getFixedBackendName(target); |
| 1602 } | 1602 } |
| 1603 } | 1603 } |
| 1604 | 1604 |
| 1605 js.Name methodLiteral; | 1605 js.Name methodLiteral; |
| 1606 if (methodName == null) { | 1606 if (methodName == null) { |
| 1607 methodLiteral = backend.namer.invocationName(node.selector); | 1607 methodLiteral = backend.namer.invocationName(node.selector); |
| 1608 registerMethodInvoke(node); | 1608 registerMethodInvoke(node); |
| 1609 } else { | 1609 } else { |
| 1610 methodLiteral = backend.namer.asName(methodName); | 1610 methodLiteral = backend.namer.asName(methodName); |
| 1611 } | 1611 } |
| (...skipping 1340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2952 new StaticUse.staticInvoke(helper, | 2952 new StaticUse.staticInvoke(helper, |
| 2953 new CallStructure.unnamed(argumentCount))); | 2953 new CallStructure.unnamed(argumentCount))); |
| 2954 return backend.emitter.staticFunctionAccess(helper); | 2954 return backend.emitter.staticFunctionAccess(helper); |
| 2955 } | 2955 } |
| 2956 | 2956 |
| 2957 @override | 2957 @override |
| 2958 void visitRef(HRef node) { | 2958 void visitRef(HRef node) { |
| 2959 visit(node.value); | 2959 visit(node.value); |
| 2960 } | 2960 } |
| 2961 } | 2961 } |
| OLD | NEW |