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

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

Issue 1397043002: Introduce BackendImpact to separate enqueueing from data. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 5 years, 2 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/ssa/codegen.dart ('k') | pkg/compiler/lib/src/ssa/ssa.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 part of ssa; 5 part of ssa;
6 6
7 abstract class OptimizationPhase { 7 abstract class OptimizationPhase {
8 String get name; 8 String get name;
9 void visitGraph(HGraph graph); 9 void visitGraph(HGraph graph);
10 } 10 }
(...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after
898 if (other != value) { 898 if (other != value) {
899 node.block.addBefore(node, other); 899 node.block.addBefore(node, other);
900 value = other; 900 value = other;
901 } 901 }
902 } 902 }
903 return new HFieldSet(field, receiver, value); 903 return new HFieldSet(field, receiver, value);
904 } 904 }
905 905
906 HInstruction visitInvokeStatic(HInvokeStatic node) { 906 HInstruction visitInvokeStatic(HInvokeStatic node) {
907 propagateConstantValueToUses(node); 907 propagateConstantValueToUses(node);
908 if (node.element == backend.getCheckConcurrentModificationError()) { 908 if (node.element == backend.helpers.checkConcurrentModificationError) {
909 if (node.inputs.length == 2) { 909 if (node.inputs.length == 2) {
910 HInstruction firstArgument = node.inputs[0]; 910 HInstruction firstArgument = node.inputs[0];
911 if (firstArgument is HConstant) { 911 if (firstArgument is HConstant) {
912 HConstant constant = firstArgument; 912 HConstant constant = firstArgument;
913 if (constant.constant.isTrue) return constant; 913 if (constant.constant.isTrue) return constant;
914 } 914 }
915 } 915 }
916 } 916 }
917 return node; 917 return node;
918 } 918 }
(...skipping 1471 matching lines...) Expand 10 before | Expand all | Expand 10 after
2390 2390
2391 keyedValues.forEach((receiver, values) { 2391 keyedValues.forEach((receiver, values) {
2392 result.keyedValues[receiver] = 2392 result.keyedValues[receiver] =
2393 new Map<HInstruction, HInstruction>.from(values); 2393 new Map<HInstruction, HInstruction>.from(values);
2394 }); 2394 });
2395 2395
2396 result.nonEscapingReceivers.addAll(nonEscapingReceivers); 2396 result.nonEscapingReceivers.addAll(nonEscapingReceivers);
2397 return result; 2397 return result;
2398 } 2398 }
2399 } 2399 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/ssa/codegen.dart ('k') | pkg/compiler/lib/src/ssa/ssa.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698