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

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

Issue 2791263005: Split MirrorsData methods and MirrorsDataImpl data by element kind. (Closed)
Patch Set: Updated cf. comments. Created 3 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
« no previous file with comments | « pkg/compiler/lib/src/kernel/world_builder.dart ('k') | pkg/compiler/lib/src/util/emptyset.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 '../common/codegen.dart' show CodegenRegistry, CodegenWorkItem; 5 import '../common/codegen.dart' show CodegenRegistry, CodegenWorkItem;
6 import '../common/names.dart' show Selectors; 6 import '../common/names.dart' show Selectors;
7 import '../common/tasks.dart' show CompilerTask; 7 import '../common/tasks.dart' show CompilerTask;
8 import '../compiler.dart' show Compiler; 8 import '../compiler.dart' show Compiler;
9 import '../constants/constant_system.dart'; 9 import '../constants/constant_system.dart';
10 import '../constants/values.dart'; 10 import '../constants/values.dart';
(...skipping 1148 matching lines...) Expand 10 before | Expand all | Expand 10 after
1159 // All intercepted classes extend `Interceptor`, so if the receiver can't 1159 // All intercepted classes extend `Interceptor`, so if the receiver can't
1160 // be a class extending `Interceptor` then it can be called directly. 1160 // be a class extending `Interceptor` then it can be called directly.
1161 if (new TypeMask.nonNullSubclass( 1161 if (new TypeMask.nonNullSubclass(
1162 _helpers.jsInterceptorClass, _closedWorld) 1162 _helpers.jsInterceptorClass, _closedWorld)
1163 .isDisjoint(input.instructionType, _closedWorld)) { 1163 .isDisjoint(input.instructionType, _closedWorld)) {
1164 var inputs = <HInstruction>[input, input]; // [interceptor, receiver]. 1164 var inputs = <HInstruction>[input, input]; // [interceptor, receiver].
1165 HInstruction result = new HInvokeDynamicMethod( 1165 HInstruction result = new HInvokeDynamicMethod(
1166 selector, 1166 selector,
1167 input.instructionType, // receiver mask. 1167 input.instructionType, // receiver mask.
1168 inputs, 1168 inputs,
1169 toStringType) 1169 toStringType)..sourceInformation = node.sourceInformation;
1170 ..sourceInformation = node.sourceInformation;
1171 return result; 1170 return result;
1172 } 1171 }
1173 return null; 1172 return null;
1174 } 1173 }
1175 1174
1176 return tryConstant() ?? tryToString() ?? node; 1175 return tryConstant() ?? tryToString() ?? node;
1177 } 1176 }
1178 1177
1179 HInstruction visitOneShotInterceptor(HOneShotInterceptor node) { 1178 HInstruction visitOneShotInterceptor(HOneShotInterceptor node) {
1180 return handleInterceptedCall(node); 1179 return handleInterceptedCall(node);
(...skipping 1656 matching lines...) Expand 10 before | Expand all | Expand 10 after
2837 2836
2838 keyedValues.forEach((receiver, values) { 2837 keyedValues.forEach((receiver, values) {
2839 result.keyedValues[receiver] = 2838 result.keyedValues[receiver] =
2840 new Map<HInstruction, HInstruction>.from(values); 2839 new Map<HInstruction, HInstruction>.from(values);
2841 }); 2840 });
2842 2841
2843 result.nonEscapingReceivers.addAll(nonEscapingReceivers); 2842 result.nonEscapingReceivers.addAll(nonEscapingReceivers);
2844 return result; 2843 return result;
2845 } 2844 }
2846 } 2845 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/kernel/world_builder.dart ('k') | pkg/compiler/lib/src/util/emptyset.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698