| Index: test/mjsunit/keyed-call-ic.js
|
| diff --git a/test/mjsunit/keyed-call-ic.js b/test/mjsunit/keyed-call-ic.js
|
| index 9d82965f1d2b9dc7d97d7e94b872f51909e39a93..b8a80a022371e1bc98a8923345653dcd85e39bb5 100644
|
| --- a/test/mjsunit/keyed-call-ic.js
|
| +++ b/test/mjsunit/keyed-call-ic.js
|
| @@ -51,9 +51,9 @@ testGlobals();
|
|
|
| function F() {}
|
|
|
| -F.prototype.one = function() {return 'one'; }
|
| -F.prototype.two = function() {return 'two'; }
|
| -F.prototype.three = function() {return 'three'; }
|
| +F.prototype.one = function() {return 'one'; };
|
| +F.prototype.two = function() {return 'two'; };
|
| +F.prototype.three = function() {return 'three'; };
|
|
|
| var keys =
|
| ['one', 'one', 'one', 'one', 'two', 'two', 'one', 'three', 'one', 'two'];
|
| @@ -118,7 +118,7 @@ function testKeyTransitions() {
|
| }
|
|
|
| // Function is a fast property
|
| - f.field = function() { return 'field'; }
|
| + f.field = function() { return 'field'; };
|
| key = 'field';
|
| for (i = 0; i != 10; i++) {
|
| assertEquals(key, f[key]());
|
| @@ -130,8 +130,8 @@ function testKeyTransitions() {
|
| // Calling on slow case object
|
| f.prop = 0;
|
| delete f.prop; // force the object to the slow case
|
| - f.four = function() { return 'four'; }
|
| - f.five = function() { return 'five'; }
|
| + f.four = function() { return 'four'; };
|
| + f.five = function() { return 'five'; };
|
|
|
| key = 'four';
|
| for (i = 0; i != 10; i++) {
|
| @@ -163,21 +163,21 @@ function testTypeTransitions() {
|
|
|
| s = '';
|
| for (i = 0; i != 10; i++) {
|
| - if (i == 5) { F.prototype.one = function() { return '1'; } }
|
| + if (i == 5) { F.prototype.one = function() { return '1'; }; }
|
| s += f[m]();
|
| }
|
| assertEquals("oneoneoneoneone11111", s);
|
|
|
| s = '';
|
| for (i = 0; i != 10; i++) {
|
| - if (i == 5) { f.__proto__ = { one: function() { return 'I'; } } }
|
| + if (i == 5) { f.__proto__ = { one: function() { return 'I'; } }; }
|
| s += f[m]();
|
| }
|
| assertEquals("11111IIIII", s);
|
|
|
| s = '';
|
| for (i = 0; i != 10; i++) {
|
| - if (i == 5) { f.one = function() { return 'ONE'; } }
|
| + if (i == 5) { f.one = function() { return 'ONE'; }; }
|
| s += f[m]();
|
| }
|
| assertEquals("IIIIIONEONEONEONEONE", s);
|
|
|