Chromium Code Reviews| Index: test/mjsunit/regress/regress-962.js |
| diff --git a/test/mjsunit/regress/regress-962.js b/test/mjsunit/regress/regress-962.js |
| index f9f46e18fc0d57530dedc68f24950685c80a3562..af04c5cc1de6d3e2444098e13c489a15c9e51c80 100644 |
| --- a/test/mjsunit/regress/regress-962.js |
| +++ b/test/mjsunit/regress/regress-962.js |
| @@ -25,6 +25,8 @@ |
| // (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 L(scope) { this.s = new Object(); } |
| L.prototype.c = function() { return true; } |
| @@ -50,4 +52,7 @@ F.prototype.foo = function () { |
| var ctx = new F; |
| -for (var i = 0; i < 10000; i++) ctx.foo(); |
| +for (var i = 0; i < 5; i++) ctx.foo(); |
| +%OptimizeFunctionOnNextCall(F.prototype.foo); |
| +%OptimizeFunctionOnNextCall(L.prototype.c); |
|
Mads Ager (chromium)
2011/04/11 11:06:38
Ditto.
Jakob Kummerow
2011/04/11 12:55:51
Done. Again, L.prototype.c no longer gets optimize
|
| +ctx.foo(); |