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

Unified Diff: sdk/lib/_internal/compiler/implementation/inferrer/ir_type_inferrer.dart

Issue 108363003: We run phases in-between GVN and code motion, so we have to handle cases in the SsaCodeMotion phase… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/ssa/optimize.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/inferrer/ir_type_inferrer.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/inferrer/ir_type_inferrer.dart (revision 30948)
+++ sdk/lib/_internal/compiler/implementation/inferrer/ir_type_inferrer.dart (working copy)
@@ -11,12 +11,14 @@
Element, FunctionElement, FunctionSignature;
import '../dart2jslib.dart' show Compiler, Constant, ConstantSystem;
import 'type_graph_inferrer.dart' show TypeInformation;
+import '../universe/universe.dart' show SideEffects;
class IrTypeInferrerVisitor extends IrNodesVisitor {
final Compiler compiler;
final Element analyzedElement;
final TypeSystem<TypeInformation> types;
final InferrerEngine<TypeInformation, TypeSystem<TypeInformation>> inferrer;
+ final SideEffects sideEffects = new SideEffects.empty();
IrTypeInferrerVisitor(this.compiler,
this.analyzedElement,
@@ -55,6 +57,7 @@
}
visitAll(node.statements);
+ compiler.world.registerSideEffects(analyzedElement, sideEffects);
return returnType;
}
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/ssa/optimize.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698