Revision: 21171
Author:   [email protected]
Date:     Tue May  6 14:20:46 2014 UTC
Log: Fixed jump in non-SSE4.1 implementation of LMathFloor instruction on x64.

BUG=chromium:370384
LOG=N
[email protected]

Review URL: https://codereview.chromium.org/261853009
http://code.google.com/p/v8/source/detail?r=21171

Added:
 /branches/bleeding_edge/test/mjsunit/regress/regress-370384.js
Modified:
 /branches/bleeding_edge/src/x64/lithium-codegen-x64.cc

=======================================
--- /dev/null
+++ /branches/bleeding_edge/test/mjsunit/regress/regress-370384.js Tue May 6 14:20:46 2014 UTC
@@ -0,0 +1,16 @@
+// 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");
=======================================
--- /branches/bleeding_edge/src/x64/lithium-codegen-x64.cc Tue May 6 07:49:21 2014 UTC +++ /branches/bleeding_edge/src/x64/lithium-codegen-x64.cc Tue May 6 14:20:46 2014 UTC
@@ -3639,7 +3639,7 @@
       __ testq(output_reg, Immediate(1));
       DeoptimizeIf(not_zero, instr->environment());
       __ Set(output_reg, 0);
-      __ jmp(&done, Label::kNear);
+      __ jmp(&done);
       __ bind(&positive_sign);
     }

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to