Index: test/mjsunit/closures.js |
diff --git a/test/mjsunit/closures.js b/test/mjsunit/closures.js |
index ee487a4b031af0fedec86ed49e33b12763dd6df7..18914362d5cf8c5c00cbc464ec2ef3bee23abd68 100644 |
--- a/test/mjsunit/closures.js |
+++ b/test/mjsunit/closures.js |
@@ -25,10 +25,10 @@ |
// (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 |
+ |
function runner(f, expected) { |
- for (var i = 0; i < 1000000; i++) { |
- assertEquals(expected, f.call(this)); |
- } |
+ assertEquals(expected, f.call(this)); |
} |
function test(n) { |
@@ -36,6 +36,7 @@ function test(n) { |
var result = n * 2 + arguments.length; |
return result; |
} |
+ %OptimizeFunctionOnNextCall(MyFunction) |
Mads Ager (chromium)
2011/05/03 13:05:08
Maybe call the MyFunction function a couple of tim
Karl Klose
2011/05/03 13:23:23
Done.
|
runner(MyFunction, n * 2); |
} |