Index: sdk/lib/_internal/compiler/implementation/ssa/codegen.dart |
=================================================================== |
--- sdk/lib/_internal/compiler/implementation/ssa/codegen.dart (revision 31017) |
+++ sdk/lib/_internal/compiler/implementation/ssa/codegen.dart (working copy) |
@@ -1249,6 +1249,14 @@ |
visitShiftLeft(HShiftLeft node) => visitBitInvokeBinary(node, '<<'); |
visitShiftRight(HShiftRight node) => visitBitInvokeBinary(node, '>>>'); |
+ visitTruncatingDivide(HTruncatingDivide node) { |
floitsch
2013/12/10 15:45:16
Maybe add an assert that left and right are of the
ngeoffray
2013/12/10 15:48:15
Done.
|
+ use(node.left); |
+ js.Expression jsLeft = pop(); |
+ use(node.right); |
+ push(new js.Binary('/', jsLeft, pop()), node); |
+ push(new js.Binary('|', pop(), new js.LiteralNumber("0")), node); |
+ } |
+ |
visitNegate(HNegate node) => visitInvokeUnary(node, '-'); |
visitLess(HLess node) => visitRelational(node, '<'); |