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

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

Issue 1880323002: dart2js cleanup: remove unused imports and variables (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: merge master Created 4 years, 8 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 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
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 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/ssa/interceptor_simplifier.dart ('k') | pkg/compiler/lib/src/ssa/nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698