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

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

Issue 932363002: Fix for dart2js codegen issue 22487 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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
« no previous file with comments | « no previous file | tests/compiler/dart2js_extra/22487_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/ssa/types_propagation.dart
diff --git a/pkg/compiler/lib/src/ssa/types_propagation.dart b/pkg/compiler/lib/src/ssa/types_propagation.dart
index 4f3e7eec8f94605553b1d5fb0e39d066f961fe10..e16641c2ca50137914c59d0b625d9b5a83800ad7 100644
--- a/pkg/compiler/lib/src/ssa/types_propagation.dart
+++ b/pkg/compiler/lib/src/ssa/types_propagation.dart
@@ -127,6 +127,11 @@ class SsaTypePropagator extends HBaseVisitor implements OptimizationPhase {
return checkPositiveInteger(instruction);
}
+ TypeMask visitDivide(HDivide instruction) {
+ // Always double, as initialized.
+ return instruction.instructionType;
+ }
+
TypeMask visitNegate(HNegate instruction) {
HInstruction operand = instruction.operand;
// We have integer subclasses that represent ranges, so widen any int
« no previous file with comments | « no previous file | tests/compiler/dart2js_extra/22487_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698