michael@0: setJitCompilerOption('baseline.usecount.trigger', 1); michael@0: let r; michael@0: (function() { michael@0: function f() { michael@0: return (1 + -1 / 0) << null; michael@0: } michael@0: assertEq(f(), 0); michael@0: assertEq(f(), 0); michael@0: michael@0: function g(x,y) { michael@0: var a = x|0; michael@0: var b = y|0; michael@0: return (a / b + a / b) | 0; michael@0: } michael@0: assertEq(g(3,4), 1); michael@0: assertEq(g(3,4), 1); michael@0: })();