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

Unified Diff: pkg/compiler/lib/src/cps_ir/type_propagation.dart

Issue 1196443002: Revert "cps-ir: Support foreign code." (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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: pkg/compiler/lib/src/cps_ir/type_propagation.dart
diff --git a/pkg/compiler/lib/src/cps_ir/type_propagation.dart b/pkg/compiler/lib/src/cps_ir/type_propagation.dart
index 20e06b2a49e90d2621e434bd92067e0ab62c0462..ac10ae7414dbb6e7f3c3f5f07376a473dd282629 100644
--- a/pkg/compiler/lib/src/cps_ir/type_propagation.dart
+++ b/pkg/compiler/lib/src/cps_ir/type_propagation.dart
@@ -1280,7 +1280,7 @@ class TypePropagationVisitor implements Visitor {
}
void visitCreateInstance(CreateInstance node) {
- setValue(node, nonConstant(typeSystem.nonNullExact(node.classElement.declaration)));
+ setValue(node, nonConstant(typeSystem.nonNullExact(node.classElement)));
}
void visitReifyRuntimeType(ReifyRuntimeType node) {
@@ -1304,17 +1304,6 @@ class TypePropagationVisitor implements Visitor {
// TODO(asgerf): Expose [Invocation] type.
setValue(node, nonConstant(typeSystem.nonNullType));
}
-
- @override
- visitForeignCode(ForeignCode node) {
- Continuation continuation = node.continuation.definition;
- setReachable(continuation);
-
- assert(continuation.parameters.length == 1);
- Parameter returnValue = continuation.parameters.first;
-
- setValue(returnValue, nonConstant(node.type));
- }
}
/// Represents the abstract value of a primitive value at some point in the
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/shrinking_reductions.dart ('k') | pkg/compiler/lib/src/js_backend/codegen/codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698