| Index: test/mjsunit/compiler/property-calls.js
|
| diff --git a/test/mjsunit/compiler/property-calls.js b/test/mjsunit/compiler/property-calls.js
|
| index 3366971e8bd386d761706645f28f6b7b9c96c2c7..ad5ca81bfd6b6fe1b3cb83c72e243fe1830d34fa 100644
|
| --- a/test/mjsunit/compiler/property-calls.js
|
| +++ b/test/mjsunit/compiler/property-calls.js
|
| @@ -25,12 +25,16 @@
|
| // (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 f(o) { return o.g(); }
|
| function g() { return 42; }
|
|
|
| var object = { };
|
| object.g = g;
|
| -for (var i = 0; i < 10000000; i++) f(object);
|
| +for (var i = 0; i < 5; i++) f(object);
|
| +%OptimizeFunctionOnNextCall(f);
|
| +f(object);
|
| assertEquals(42, f(object));
|
|
|
| object = { g: function() { return 87; } };
|
|
|