Index: test/mjsunit/regress/regress-2315.js |
diff --git a/test/mjsunit/regress/regress-110509.js b/test/mjsunit/regress/regress-2315.js |
similarity index 91% |
copy from test/mjsunit/regress/regress-110509.js |
copy to test/mjsunit/regress/regress-2315.js |
index 132bd233bee32f6c84061049224ea43901dae06a..a3f9182c95b5e0409443fa3bf6c3f8c5b8669902 100644 |
--- a/test/mjsunit/regress/regress-110509.js |
+++ b/test/mjsunit/regress/regress-2315.js |
@@ -27,15 +27,14 @@ |
// Flags: --allow-natives-syntax |
-// Verify that LRandom preserves rsi correctly. |
+var foo = (function() { |
+ return eval("(function bar() { return 1; })"); |
+})(); |
-function foo() { |
- Math.random(); |
- new Function(""); |
-} |
- |
-foo(); |
foo(); |
foo(); |
%OptimizeFunctionOnNextCall(foo); |
foo(); |
+ |
+// Function should be optimized now. |
+assertTrue(%GetOptimizationStatus(foo) != 2); |