| Index: test/mjsunit/fast-literal.js
|
| diff --git a/test/mjsunit/regress/regress-1898.js b/test/mjsunit/fast-literal.js
|
| similarity index 87%
|
| copy from test/mjsunit/regress/regress-1898.js
|
| copy to test/mjsunit/fast-literal.js
|
| index 5440446fbf78ca593e8748cd54ea2aefad047542..822d90656b05948c495ca5e404f5b480fbf6bb7e 100644
|
| --- a/test/mjsunit/regress/regress-1898.js
|
| +++ b/test/mjsunit/fast-literal.js
|
| @@ -25,13 +25,18 @@
|
| // (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
|
| +// Flags: --allow-natives-syntax --no-inline-new --nouse-allocation-folding
|
|
|
| -function f(x) {
|
| - Math.log(Math.min(0.1, Math.abs(x)));
|
| +%SetAllocationTimeout(10, 0);
|
| +function f() {
|
| + return [[1, 2, 3], [1.1, 1.2, 1.3], [[], [], []]];
|
| }
|
|
|
| -f(0.1);
|
| -f(0.1);
|
| +f(); f(); f();
|
| %OptimizeFunctionOnNextCall(f);
|
| -f(0.1);
|
| +for (var i=0; i<1000; i++) {
|
| + f();
|
| +}
|
| +
|
| +
|
| +
|
|
|