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

Side by Side Diff: tests/compiler/dart2js/equivalence/check_functions.dart

Issue 2980973003: Default value constants are created only call uses them (Closed)
Patch Set: register default values Created 3 years, 5 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) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 /// Equivalence test functions for data objects. 5 /// Equivalence test functions for data objects.
6 6
7 library dart2js.equivalence.functions; 7 library dart2js.equivalence.functions;
8 8
9 import 'package:expect/expect.dart'; 9 import 'package:expect/expect.dart';
10 import 'package:compiler/src/common/resolution.dart'; 10 import 'package:compiler/src/common/resolution.dart';
(...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after
829 829
830 checkSets( 830 checkSets(
831 worldBuilder1.allReferencedStaticFields, 831 worldBuilder1.allReferencedStaticFields,
832 worldBuilder2.allReferencedStaticFields, 832 worldBuilder2.allReferencedStaticFields,
833 "Directly instantiated classes mismatch", 833 "Directly instantiated classes mismatch",
834 elementEquivalence, 834 elementEquivalence,
835 verbose: verbose); 835 verbose: verbose);
836 checkSets(worldBuilder1.closurizedMembers, worldBuilder2.closurizedMembers, 836 checkSets(worldBuilder1.closurizedMembers, worldBuilder2.closurizedMembers,
837 "closurizedMembers", elementEquivalence, 837 "closurizedMembers", elementEquivalence,
838 verbose: verbose); 838 verbose: verbose);
839
839 checkSets(worldBuilder1.processedClasses, worldBuilder2.processedClasses, 840 checkSets(worldBuilder1.processedClasses, worldBuilder2.processedClasses,
840 "processedClasses", elementEquivalence, 841 "processedClasses", elementEquivalence,
841 verbose: verbose); 842 verbose: verbose);
843
842 checkSets( 844 checkSets(
843 worldBuilder1.methodsNeedingSuperGetter, 845 worldBuilder1.methodsNeedingSuperGetter,
844 worldBuilder2.methodsNeedingSuperGetter, 846 worldBuilder2.methodsNeedingSuperGetter,
845 "methodsNeedingSuperGetter", 847 "methodsNeedingSuperGetter",
846 elementEquivalence, 848 elementEquivalence,
847 verbose: verbose); 849 verbose: verbose);
848 checkSets( 850 checkSets(
849 worldBuilder1.staticFunctionsNeedingGetter, 851 worldBuilder1.staticFunctionsNeedingGetter,
850 worldBuilder2.staticFunctionsNeedingGetter, 852 worldBuilder2.staticFunctionsNeedingGetter,
851 "staticFunctionsNeedingGetter", 853 "staticFunctionsNeedingGetter",
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
1174 print(' ${js.nodeToString(node1)}'); 1176 print(' ${js.nodeToString(node1)}');
1175 print(' ${js.nodeToString(node2)}'); 1177 print(' ${js.nodeToString(node2)}');
1176 } 1178 }
1177 return expectedValue == label2; 1179 return expectedValue == label2;
1178 } else { 1180 } else {
1179 labelsMap[label1] = label2; 1181 labelsMap[label1] = label2;
1180 return true; 1182 return true;
1181 } 1183 }
1182 } 1184 }
1183 } 1185 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/ssa/builder_kernel.dart ('k') | tests/compiler/dart2js/kernel/compile_from_dill_test_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698