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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/ssa/builder.dart

Issue 12525007: Record dependency information to implement first version of dependency (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: dart/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/ssa/builder.dart b/dart/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
index 252afbdf34f13228705eb2d6ba90626aff90e019..40f16c2c06e2431012575da26a7e16351831fe2b 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
@@ -2212,7 +2212,8 @@ class SsaBuilder extends ResolvedVisitor implements Visitor {
// TODO(ahe): This should be registered in codegen, not here.
compiler.enqueuer.codegen.addToWorkList(callElement, elements);
// TODO(ahe): This should be registered in codegen, not here.
- compiler.enqueuer.codegen.registerInstantiatedClass(closureClassElement);
+ compiler.enqueuer.codegen.registerInstantiatedClass(
+ closureClassElement, compiler.globalDependencies);
assert(!closureClassElement.hasLocalScopeMembers);
List<HInstruction> capturedVariables = <HInstruction>[];
@@ -2650,7 +2651,7 @@ class SsaBuilder extends ResolvedVisitor implements Visitor {
runtimeType];
instruction = new HInvokeStatic(inputs, HType.BOOLEAN);
add(instruction);
- compiler.enqueuer.codegen.registerIsCheck(type);
+ compiler.enqueuer.codegen.registerIsCheck(type, elements);
} else if (RuntimeTypeInformation.hasTypeArguments(type)) {

Powered by Google App Engine
This is Rietveld 408576698