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

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

Issue 1353843002: dart2js cps: Support sync* and yield. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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 e3db1e324637a7c0e6af2ec283aad290f5a67ef7..a99a7ab68e6618f56211e6bd416df6451b28a66c 100644
--- a/pkg/compiler/lib/src/cps_ir/type_propagation.dart
+++ b/pkg/compiler/lib/src/cps_ir/type_propagation.dart
@@ -2117,7 +2117,7 @@ class TypePropagationVisitor implements Visitor {
}
void visitInvokeStatic(InvokeStatic node) {
- if (node.target.library.isInternalLibrary) {
+ if (node.target.library != null && node.target.library.isInternalLibrary) {
switch (node.target.name) {
case InternalMethod.Stringify:
AbstractValue argValue = getValue(node.arguments[0].definition);
@@ -2522,6 +2522,11 @@ class TypePropagationVisitor implements Visitor {
}
@override
+ visitYield(Yield node) {
+ setReachable(node.continuation.definition);
+ }
+
+ @override
void visitRefinement(Refinement node) {
AbstractValue value = getValue(node.value.definition);
if (value.isNothing ||
« 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