| 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 'dart:math' as math; | 5 import 'dart:math' as math; |
| 6 import '../common.dart'; | 6 import '../common.dart'; |
| 7 import '../common/codegen.dart' show CodegenRegistry, CodegenWorkItem; | 7 import '../common/codegen.dart' show CodegenRegistry, CodegenWorkItem; |
| 8 import '../common/tasks.dart' show CompilerTask; | 8 import '../common/tasks.dart' show CompilerTask; |
| 9 import '../compiler.dart' show Compiler; | 9 import '../compiler.dart' show Compiler; |
| 10 import '../constants/constant_system.dart'; | 10 import '../constants/constant_system.dart'; |
| (...skipping 1686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1697 .withSourceInformation(node.sourceInformation)); | 1697 .withSourceInformation(node.sourceInformation)); |
| 1698 registry.registerStaticUse(new StaticUse.constructorBodyInvoke( | 1698 registry.registerStaticUse(new StaticUse.constructorBodyInvoke( |
| 1699 node.element, new CallStructure.unnamed(arguments.length))); | 1699 node.element, new CallStructure.unnamed(arguments.length))); |
| 1700 } | 1700 } |
| 1701 | 1701 |
| 1702 void visitOneShotInterceptor(HOneShotInterceptor node) { | 1702 void visitOneShotInterceptor(HOneShotInterceptor node) { |
| 1703 List<js.Expression> arguments = visitArguments(node.inputs); | 1703 List<js.Expression> arguments = visitArguments(node.inputs); |
| 1704 var isolate = new js.VariableUse( | 1704 var isolate = new js.VariableUse( |
| 1705 backend.namer.globalObjectForLibrary(helpers.interceptorsLibrary)); | 1705 backend.namer.globalObjectForLibrary(helpers.interceptorsLibrary)); |
| 1706 Selector selector = node.selector; | 1706 Selector selector = node.selector; |
| 1707 js.Name methodName = backend.interceptorData | 1707 js.Name methodName = backend.oneShotInterceptorData |
| 1708 .registerOneShotInterceptor(selector, backend.namer); | 1708 .registerOneShotInterceptor(selector, backend.namer); |
| 1709 push(js | 1709 push(js |
| 1710 .propertyCall(isolate, methodName, arguments) | 1710 .propertyCall(isolate, methodName, arguments) |
| 1711 .withSourceInformation(node.sourceInformation)); | 1711 .withSourceInformation(node.sourceInformation)); |
| 1712 if (selector.isGetter) { | 1712 if (selector.isGetter) { |
| 1713 registerGetter(node); | 1713 registerGetter(node); |
| 1714 } else if (selector.isSetter) { | 1714 } else if (selector.isSetter) { |
| 1715 registerSetter(node); | 1715 registerSetter(node); |
| 1716 } else { | 1716 } else { |
| 1717 registerMethodInvoke(node); | 1717 registerMethodInvoke(node); |
| (...skipping 1398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3116 registry.registerStaticUse(new StaticUse.staticInvoke( | 3116 registry.registerStaticUse(new StaticUse.staticInvoke( |
| 3117 helper, new CallStructure.unnamed(argumentCount))); | 3117 helper, new CallStructure.unnamed(argumentCount))); |
| 3118 return backend.emitter.staticFunctionAccess(helper); | 3118 return backend.emitter.staticFunctionAccess(helper); |
| 3119 } | 3119 } |
| 3120 | 3120 |
| 3121 @override | 3121 @override |
| 3122 void visitRef(HRef node) { | 3122 void visitRef(HRef node) { |
| 3123 visit(node.value); | 3123 visit(node.value); |
| 3124 } | 3124 } |
| 3125 } | 3125 } |
| OLD | NEW |