From 87b61295d3cfc629bb01b516ba6d86b313424d9d Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Tue, 29 Jan 2013 13:23:32 +0100 Subject: Allocate execution context and local variables in one chunk This avoids a few mallocs and in addition memory leaks where the local variables or arguments array wasn't destroyed before. crypto.js seems to run without a mem leak now :) Change-Id: Icca74c5dba764fadabd7a77f233bdf5883046c86 Reviewed-by: Simon Hausmann --- tests/fact.2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/fact.2.js b/tests/fact.2.js index d8f750b5a1..c0f087e4c9 100644 --- a/tests/fact.2.js +++ b/tests/fact.2.js @@ -3,6 +3,6 @@ function fact(n) { return n > 1 ? n * fact(n - 1) : 1 } -for (var i = 0; i < 1000000; i = i + 1) +for (var i = 0; i < 10000; i = i + 1) fact(12) -- cgit v1.2.3