| Index: test/mjsunit/compiler/instanceof.js
|
| diff --git a/test/mjsunit/compiler/instanceof.js b/test/mjsunit/compiler/instanceof.js
|
| index cb88e7c284f1465d5a2e120a8c23637b96c87a46..f6a364e60741ef09840578ce557e28e15a038501 100644
|
| --- a/test/mjsunit/compiler/instanceof.js
|
| +++ b/test/mjsunit/compiler/instanceof.js
|
| @@ -131,3 +131,15 @@ F.__proto__ = null;
|
| assertFalse(foo(new A()));
|
| assertTrue(foo(new F()));
|
| })();
|
| +
|
| +(function() {
|
| + function foo() {
|
| + var a = new A();
|
| + return a instanceof A;
|
| + }
|
| +
|
| + assertTrue(foo());
|
| + assertTrue(foo());
|
| + %OptimizeFunctionOnNextCall(foo);
|
| + assertTrue(foo());
|
| +})();
|
|
|