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

Unified Diff: pkg/compiler/lib/src/ssa/codegen_helpers.dart

Issue 2674813004: dart2js: Keep refined type for type checks (Closed)
Patch Set: Created 3 years, 10 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/ssa/codegen_helpers.dart
diff --git a/pkg/compiler/lib/src/ssa/codegen_helpers.dart b/pkg/compiler/lib/src/ssa/codegen_helpers.dart
index 9773af6306c13ecd3e660f73d05b6b6d748c274c..bf042e4c607e663b9c6ed6154bb2b43e14650c8b 100644
--- a/pkg/compiler/lib/src/ssa/codegen_helpers.dart
+++ b/pkg/compiler/lib/src/ssa/codegen_helpers.dart
@@ -283,6 +283,11 @@ class SsaTypeKnownRemover extends HBaseVisitor {
}
void visitTypeKnown(HTypeKnown instruction) {
+ for (HInstruction user in instruction.usedBy) {
+ if (user is HTypeConversion) {
+ user.inputType = instruction.instructionType;
+ }
+ }
instruction.block.rewrite(instruction, instruction.checkedInput);
instruction.block.remove(instruction);
}

Powered by Google App Engine
This is Rietveld 408576698