| Index: test/mjsunit/regress/regress-634-debug.js
|
| diff --git a/test/mjsunit/regress/regress-2451.js b/test/mjsunit/regress/regress-634-debug.js
|
| similarity index 88%
|
| copy from test/mjsunit/regress/regress-2451.js
|
| copy to test/mjsunit/regress/regress-634-debug.js
|
| index c1749b178f3eedf648f5ff81911ec126a0364702..17ca828c68cd4de35f6bf0608a980fe1adebb355 100644
|
| --- a/test/mjsunit/regress/regress-2451.js
|
| +++ b/test/mjsunit/regress/regress-634-debug.js
|
| @@ -1,4 +1,4 @@
|
| -// Copyright 2013 the V8 project authors. All rights reserved.
|
| +// Copyright 2014 the V8 project authors. All rights reserved.
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| // met:
|
| @@ -28,13 +28,14 @@
|
| // Flags: --allow-natives-syntax
|
|
|
| function f() {
|
| - assertEquals(-1.0, Math.round(-1.5));
|
| - assertEquals(-2.0, Math.round(-2.5));
|
| - assertEquals(-1.0, Math.round(-0.5000000000000001));
|
| + %SetAllocationTimeout(1, 0, false);
|
| + a = new Array(0);
|
| + assertEquals(0, a.length);
|
| + assertEquals(0, a.length);
|
| + %SetAllocationTimeout(-1, -1, true);
|
| }
|
|
|
| f();
|
| f();
|
| %OptimizeFunctionOnNextCall(f);
|
| f();
|
| -assertOptimized(f);
|
|
|