Index: test/mjsunit/regress/regress-et-clobbers-doubles.js |
diff --git a/test/mjsunit/compare-nil.js b/test/mjsunit/regress/regress-et-clobbers-doubles.js |
similarity index 90% |
copy from test/mjsunit/compare-nil.js |
copy to test/mjsunit/regress/regress-et-clobbers-doubles.js |
index 0895a31fb80cbe697b678eaa1005926d7d65829f..47fa47925fe48f8a339a807f7cf73ee40f35d29c 100644 |
--- a/test/mjsunit/compare-nil.js |
+++ b/test/mjsunit/regress/regress-et-clobbers-doubles.js |
@@ -26,11 +26,14 @@ |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
// Flags: --allow-natives-syntax |
- |
-function test(v) { |
- return (v == null); |
+function t_smi(a) { |
+ a[0] = 1.5; |
} |
-assertFalse(test(true)); |
-assertFalse(test(true)); |
-assertTrue(test(null)); |
-assertTrue(test(null)); |
+ |
+t_smi([1,,3]); |
+t_smi([1,,3]); |
+t_smi([1,,3]); |
+%OptimizeFunctionOnNextCall(t_smi); |
+var ta = [1,,3]; |
+t_smi(ta); |
+assertEquals([1.5,,3], ta); |