Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: test/mjsunit/keyed-call-ic.js

Issue 8888006: Make more JS files beter match the coding standard. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/mjsunit/keyed-call-generic.js ('k') | test/mjsunit/keyed-ic.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « test/mjsunit/keyed-call-generic.js ('k') | test/mjsunit/keyed-ic.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698