Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Side by Side Diff: pkg/compiler/lib/src/ssa/invoke_dynamic_specializers.dart

Issue 1762723002: Cleanup 1: split parts into their own libraries, remove unused imports (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 part of ssa; 5 import '../compiler.dart' show Compiler;
6 import '../constants/constant_system.dart';
7 import '../constants/values.dart';
8 import '../elements/elements.dart';
9 import '../js_backend/js_backend.dart';
10 import '../types/types.dart';
11 import '../universe/selector.dart';
12 import '../universe/call_structure.dart';
13 import '../world.dart' show ClassWorld, World;
14
15 import 'nodes.dart';
16 import 'types.dart';
6 17
7 /** 18 /**
8 * [InvokeDynamicSpecializer] and its subclasses are helpers to 19 * [InvokeDynamicSpecializer] and its subclasses are helpers to
9 * optimize intercepted dynamic calls. It knows what input types 20 * optimize intercepted dynamic calls. It knows what input types
10 * would be beneficial for performance, and how to change a invoke 21 * would be beneficial for performance, and how to change a invoke
11 * dynamic to a builtin instruction (e.g. HIndex, HBitNot). 22 * dynamic to a builtin instruction (e.g. HIndex, HBitNot).
12 */ 23 */
13 class InvokeDynamicSpecializer { 24 class InvokeDynamicSpecializer {
14 const InvokeDynamicSpecializer(); 25 const InvokeDynamicSpecializer();
15 26
(...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after
761 return constantSystem.codeUnitAt; 772 return constantSystem.codeUnitAt;
762 } 773 }
763 774
764 HInstruction tryConvertToBuiltin(HInvokeDynamic instruction, 775 HInstruction tryConvertToBuiltin(HInvokeDynamic instruction,
765 Compiler compiler) { 776 Compiler compiler) {
766 // TODO(sra): Implement a builtin HCodeUnitAt instruction and the same index 777 // TODO(sra): Implement a builtin HCodeUnitAt instruction and the same index
767 // bounds checking optimizations as for HIndex. 778 // bounds checking optimizations as for HIndex.
768 return null; 779 return null;
769 } 780 }
770 } 781 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698