BUG=chromium:370384
LOG=N
R=ulan@chromium.org
Review URL: https://codereview.chromium.org/
261853009
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21171
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
__ testq(output_reg, Immediate(1));
DeoptimizeIf(not_zero, instr->environment());
__ Set(output_reg, 0);
- __ jmp(&done, Label::kNear);
+ __ jmp(&done);
__ bind(&positive_sign);
}
--- /dev/null
+// Copyright 2014 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Flags: --deopt-every-n-times=1 --no-enable_sse4_1
+
+function g(f, x, name) {
+ var v2 = f(x);
+ for (var i = 0; i < 13000; i++) {
+ f(i);
+ }
+ var v1 = f(x);
+ assertEquals(v1, v2);
+}
+
+g(Math.sin, 6.283185307179586, "Math.sin");