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

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

Issue 60293003: Version 0.8.10.5 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month 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/optimize.dart
===================================================================
--- dart/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart (revision 29908)
+++ dart/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart (working copy)
@@ -594,6 +594,11 @@
HInstruction value = node.inputs[0];
DartType type = node.typeExpression;
if (type != null) {
+ if (type.kind == TypeKind.MALFORMED_TYPE) {
+ // Malformed types are treated as dynamic statically, but should
+ // throw a type error at runtime.
+ return node;
+ }
if (!type.treatAsRaw || type.kind == TypeKind.TYPE_VARIABLE) {
return node;
}
« no previous file with comments | « dart/sdk/lib/_internal/compiler/implementation/ssa/nodes.dart ('k') | dart/sdk/lib/_internal/lib/js_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698