Index: test/mjsunit/function-arguments-duplicate.js |
diff --git a/test/mjsunit/recursive-store-opt.js b/test/mjsunit/function-arguments-duplicate.js |
similarity index 90% |
copy from test/mjsunit/recursive-store-opt.js |
copy to test/mjsunit/function-arguments-duplicate.js |
index fb2649248dbabc642f864f671d0ce2273ad44bd7..80f03a106b30a7e2f984a83b9d54b2edd8fb840a 100644 |
--- a/test/mjsunit/recursive-store-opt.js |
+++ b/test/mjsunit/function-arguments-duplicate.js |
@@ -25,17 +25,12 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-// Flags: --allow-natives-syntax |
+// Execises ArgumentsAccessStub::GenerateNewNonStrictSlow. |
-function g() { |
- this.x = this; |
+function f(a, a) { |
+ assertEquals(2, a); |
+ assertEquals(1, arguments[0]); |
+ assertEquals(2, arguments[1]); |
} |
-function f() { |
- return new g(); |
-} |
- |
-f(); |
-f(); |
-%OptimizeFunctionOnNextCall(f); |
-f(); |
+f(1, 2); |