| Index: test/mjsunit/regress/number-named-call-deopt.js
|
| diff --git a/test/mjsunit/regress/regress-1898.js b/test/mjsunit/regress/number-named-call-deopt.js
|
| similarity index 84%
|
| copy from test/mjsunit/regress/regress-1898.js
|
| copy to test/mjsunit/regress/number-named-call-deopt.js
|
| index 5440446fbf78ca593e8748cd54ea2aefad047542..1598af12b4914aaab50171628c2d482351e09b84 100644
|
| --- a/test/mjsunit/regress/regress-1898.js
|
| +++ b/test/mjsunit/regress/number-named-call-deopt.js
|
| @@ -1,4 +1,4 @@
|
| -// Copyright 2012 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:
|
| @@ -27,11 +27,15 @@
|
|
|
| // Flags: --allow-natives-syntax
|
|
|
| -function f(x) {
|
| - Math.log(Math.min(0.1, Math.abs(x)));
|
| +function f(x, deopt, osr) {
|
| + var res = "result";
|
| + void(x.toString(10, deopt + 0));
|
| + if (osr) for (var i = 0; i < 100000; i++) { }
|
| + return res;
|
| }
|
|
|
| -f(0.1);
|
| -f(0.1);
|
| +f(4, 0, false);
|
| +f(4, 0, false);
|
| +f(4, 0, false);
|
| %OptimizeFunctionOnNextCall(f);
|
| -f(0.1);
|
| +assertEquals("result", f(4, "deopt", true));
|
|
|