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

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

Issue 11360228: Simplify runtime type support. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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: sdk/lib/_internal/compiler/implementation/ssa/optimize.dart
diff --git a/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart b/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart
index 032ba03d6105aadfb44337c0e3e4aaca9576f95d..96de2a6b0082050dba57aa916d4c428b580815df 100644
--- a/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart
+++ b/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart
@@ -519,7 +519,7 @@ class SsaConstantFolder extends HBaseVisitor implements OptimizationPhase {
// TODO(karlklose): remove the hasTypeArguments check.
} else if (expressionType.isUseful()
&& !expressionType.canBeNull()
- && !backend.rti.hasTypeArguments(type)) {
+ && !RuntimeTypeInformation.hasTypeArguments(type)) {
DartType receiverType = expressionType.computeType(compiler);
if (receiverType != null) {
if (compiler.types.isSubtype(receiverType, type)) {

Powered by Google App Engine
This is Rietveld 408576698