| 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 3988 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3999 if (selector.isIndex) return true; | 3999 if (selector.isIndex) return true; |
| 4000 if (selector.isIndexSet) return true; | 4000 if (selector.isIndexSet) return true; |
| 4001 if (element == helpers.jsArrayAdd || | 4001 if (element == helpers.jsArrayAdd || |
| 4002 element == helpers.jsArrayRemoveLast || | 4002 element == helpers.jsArrayRemoveLast || |
| 4003 element == helpers.jsStringSplit) { | 4003 element == helpers.jsStringSplit) { |
| 4004 return true; | 4004 return true; |
| 4005 } | 4005 } |
| 4006 return false; | 4006 return false; |
| 4007 } | 4007 } |
| 4008 | 4008 |
| 4009 Element element = closedWorld.locateSingleElement(selector, mask); | 4009 MemberElement element = closedWorld.locateSingleElement(selector, mask); |
| 4010 if (element != null && | 4010 if (element != null && |
| 4011 !element.isField && | 4011 !element.isField && |
| 4012 !(element.isGetter && selector.isCall) && | 4012 !(element.isGetter && selector.isCall) && |
| 4013 !(element.isFunction && selector.isGetter) && | 4013 !(element.isFunction && selector.isGetter) && |
| 4014 !isOptimizableOperation(selector, element)) { | 4014 !isOptimizableOperation(selector, element)) { |
| 4015 if (tryInlineMethod(element, selector, mask, arguments, node)) { | 4015 if (tryInlineMethod(element, selector, mask, arguments, node)) { |
| 4016 return; | 4016 return; |
| 4017 } | 4017 } |
| 4018 } | 4018 } |
| 4019 | 4019 |
| (...skipping 2735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6755 this.oldReturnLocal, | 6755 this.oldReturnLocal, |
| 6756 this.oldReturnType, | 6756 this.oldReturnType, |
| 6757 this.oldResolvedAst, | 6757 this.oldResolvedAst, |
| 6758 this.oldStack, | 6758 this.oldStack, |
| 6759 this.oldLocalsHandler, | 6759 this.oldLocalsHandler, |
| 6760 this.inTryStatement, | 6760 this.inTryStatement, |
| 6761 this.allFunctionsCalledOnce, | 6761 this.allFunctionsCalledOnce, |
| 6762 this.oldElementInferenceResults) | 6762 this.oldElementInferenceResults) |
| 6763 : super(function); | 6763 : super(function); |
| 6764 } | 6764 } |
| OLD | NEW |