| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 '../compiler.dart' show Compiler; | 5 import '../compiler.dart' show Compiler; |
| 6 import '../constants/constant_system.dart'; | 6 import '../constants/constant_system.dart'; |
| 7 import '../constants/values.dart'; | 7 import '../constants/values.dart'; |
| 8 import '../elements/elements.dart'; | 8 import '../elements/elements.dart'; |
| 9 import '../js_backend/js_backend.dart'; | 9 import '../js_backend/js_backend.dart'; |
| 10 import '../types/types.dart'; | 10 import '../types/types.dart'; |
| 11 import '../universe/call_structure.dart'; |
| 11 import '../universe/selector.dart'; | 12 import '../universe/selector.dart'; |
| 12 import '../universe/call_structure.dart'; | 13 import '../world.dart' show World; |
| 13 import '../world.dart' show ClassWorld, World; | |
| 14 | |
| 15 import 'nodes.dart'; | 14 import 'nodes.dart'; |
| 16 import 'types.dart'; | 15 import 'types.dart'; |
| 17 | 16 |
| 18 /** | 17 /** |
| 19 * [InvokeDynamicSpecializer] and its subclasses are helpers to | 18 * [InvokeDynamicSpecializer] and its subclasses are helpers to |
| 20 * optimize intercepted dynamic calls. It knows what input types | 19 * optimize intercepted dynamic calls. It knows what input types |
| 21 * would be beneficial for performance, and how to change a invoke | 20 * would be beneficial for performance, and how to change a invoke |
| 22 * dynamic to a builtin instruction (e.g. HIndex, HBitNot). | 21 * dynamic to a builtin instruction (e.g. HIndex, HBitNot). |
| 23 */ | 22 */ |
| 24 class InvokeDynamicSpecializer { | 23 class InvokeDynamicSpecializer { |
| (...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 753 return constantSystem.codeUnitAt; | 752 return constantSystem.codeUnitAt; |
| 754 } | 753 } |
| 755 | 754 |
| 756 HInstruction tryConvertToBuiltin( | 755 HInstruction tryConvertToBuiltin( |
| 757 HInvokeDynamic instruction, Compiler compiler) { | 756 HInvokeDynamic instruction, Compiler compiler) { |
| 758 // TODO(sra): Implement a builtin HCodeUnitAt instruction and the same index | 757 // TODO(sra): Implement a builtin HCodeUnitAt instruction and the same index |
| 759 // bounds checking optimizations as for HIndex. | 758 // bounds checking optimizations as for HIndex. |
| 760 return null; | 759 return null; |
| 761 } | 760 } |
| 762 } | 761 } |
| OLD | NEW |