| 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;
|
| }
|
|
|
|
|