Index: test/mjsunit/compiler/inline-arguments.js |
=================================================================== |
--- test/mjsunit/compiler/inline-arguments.js (revision 11126) |
+++ test/mjsunit/compiler/inline-arguments.js (working copy) |
@@ -113,46 +113,3 @@ |
%OptimizeFunctionOnNextCall(test_adaptation); |
test_adaptation(); |
})(); |
- |
-// Test arguments access from the inlined function. |
-function uninlinable(v) { |
- assertEquals(0, v); |
- try { } catch (e) { } |
- return 0; |
-} |
- |
-function toarr_inner() { |
- var a = arguments; |
- var marker = a[0]; |
- uninlinable(uninlinable(0, 0), marker.x); |
- |
- var r = new Array(); |
- for (var i = a.length - 1; i >= 1; i--) { |
- r.push(a[i]); |
- } |
- |
- return r; |
-} |
- |
-function toarr1(marker, a, b, c) { |
- return toarr_inner(marker, a / 2, b / 2, c / 2); |
-} |
- |
-function toarr2(marker, a, b, c) { |
- var x = 0; |
- return uninlinable(uninlinable(0, 0), |
- x = toarr_inner(marker, a / 2, b / 2, c / 2)), x; |
-} |
- |
-function test_toarr(toarr) { |
- var marker = { x: 0 }; |
- assertArrayEquals([3, 2, 1], toarr(marker, 2, 4, 6)); |
- assertArrayEquals([3, 2, 1], toarr(marker, 2, 4, 6)); |
- %OptimizeFunctionOnNextCall(toarr); |
- assertArrayEquals([3, 2, 1], toarr(marker, 2, 4, 6)); |
- delete marker.x; |
- assertArrayEquals([3, 2, 1], toarr(marker, 2, 4, 6)); |
-} |
- |
-test_toarr(toarr1); |
-test_toarr(toarr2); |