| 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:collection'; | 5 import 'dart:collection'; |
| 6 | 6 |
| 7 import 'package:js_runtime/shared/embedded_names.dart'; | 7 import 'package:js_runtime/shared/embedded_names.dart'; |
| 8 | 8 |
| 9 import '../closure.dart'; | 9 import '../closure.dart'; |
| 10 import '../common.dart'; | 10 import '../common.dart'; |
| (...skipping 4203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4214 element.kind != ElementKind.FIELD) { | 4214 element.kind != ElementKind.FIELD) { |
| 4215 inputs.add(invokeInterceptor(receiver)); | 4215 inputs.add(invokeInterceptor(receiver)); |
| 4216 } | 4216 } |
| 4217 inputs.add(receiver); | 4217 inputs.add(receiver); |
| 4218 inputs.addAll(arguments); | 4218 inputs.addAll(arguments); |
| 4219 TypeMask type; | 4219 TypeMask type; |
| 4220 if (!element.isGetter && selector.isGetter) { | 4220 if (!element.isGetter && selector.isGetter) { |
| 4221 type = TypeMaskFactory.inferredTypeForMember( | 4221 type = TypeMaskFactory.inferredTypeForMember( |
| 4222 element, globalInferenceResults); | 4222 element, globalInferenceResults); |
| 4223 } else if (element.isFunction) { | 4223 } else if (element.isFunction) { |
| 4224 MethodElement method = element; |
| 4224 type = TypeMaskFactory.inferredReturnTypeForElement( | 4225 type = TypeMaskFactory.inferredReturnTypeForElement( |
| 4225 element, globalInferenceResults); | 4226 method, globalInferenceResults); |
| 4226 } else { | 4227 } else { |
| 4227 type = closedWorld.commonMasks.dynamicType; | 4228 type = closedWorld.commonMasks.dynamicType; |
| 4228 } | 4229 } |
| 4229 HInstruction instruction = new HInvokeSuper(element, currentNonClosureClass, | 4230 HInstruction instruction = new HInvokeSuper(element, currentNonClosureClass, |
| 4230 selector, inputs, type, sourceInformation, | 4231 selector, inputs, type, sourceInformation, |
| 4231 isSetter: selector.isSetter || selector.isIndexSet); | 4232 isSetter: selector.isSetter || selector.isIndexSet); |
| 4232 instruction.sideEffects = | 4233 instruction.sideEffects = |
| 4233 closedWorld.getSideEffectsOfSelector(selector, null); | 4234 closedWorld.getSideEffectsOfSelector(selector, null); |
| 4234 return instruction; | 4235 return instruction; |
| 4235 } | 4236 } |
| (...skipping 2603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6839 this.oldReturnLocal, | 6840 this.oldReturnLocal, |
| 6840 this.oldReturnType, | 6841 this.oldReturnType, |
| 6841 this.oldResolvedAst, | 6842 this.oldResolvedAst, |
| 6842 this.oldStack, | 6843 this.oldStack, |
| 6843 this.oldLocalsHandler, | 6844 this.oldLocalsHandler, |
| 6844 this.inTryStatement, | 6845 this.inTryStatement, |
| 6845 this.allFunctionsCalledOnce, | 6846 this.allFunctionsCalledOnce, |
| 6846 this.oldElementInferenceResults) | 6847 this.oldElementInferenceResults) |
| 6847 : super(function); | 6848 : super(function); |
| 6848 } | 6849 } |
| OLD | NEW |