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

Unified Diff: test/mjsunit/tools/profile.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/tools/codemap.js ('k') | test/mjsunit/tools/splaytree.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/tools/profile.js
diff --git a/test/mjsunit/tools/profile.js b/test/mjsunit/tools/profile.js
index 4df1a08f92b99bc320ed06c0372c092b3294d368..fcd2a42c7f3e625fb39b58007a2dde55c46c5926 100644
--- a/test/mjsunit/tools/profile.js
+++ b/test/mjsunit/tools/profile.js
@@ -31,7 +31,7 @@
function stackToString(stack) {
return stack.join(' -> ');
-};
+}
function assertPathExists(root, path, opt_message) {
@@ -41,27 +41,27 @@ function assertPathExists(root, path, opt_message) {
stackToString(path.slice(0, pos)) + ' has no child ' +
path[pos] + message);
}), opt_message);
-};
+}
function assertNoPathExists(root, path, opt_message) {
var message = opt_message ? ' (' + opt_message + ')' : '';
assertNull(root.descendToChild(path), opt_message);
-};
+}
function countNodes(profile, traverseFunc) {
var count = 0;
traverseFunc.call(profile, function () { count++; });
return count;
-};
+}
function ProfileTestDriver() {
this.profile = new Profile();
this.stack_ = [];
this.addFunctions_();
-};
+}
// Addresses inside functions.
@@ -134,12 +134,12 @@ ProfileTestDriver.prototype.execute = function() {
function Inherits(childCtor, parentCtor) {
- function tempCtor() {};
+ function tempCtor() {}
tempCtor.prototype = parentCtor.prototype;
childCtor.superClass_ = parentCtor.prototype;
childCtor.prototype = new tempCtor();
childCtor.prototype.constructor = childCtor;
-};
+}
(function testCallTreeBuilding() {
@@ -147,7 +147,7 @@ function Inherits(childCtor, parentCtor) {
ProfileTestDriver.call(this);
this.namesTopDown = [];
this.namesBottomUp = [];
- };
+ }
Inherits(Driver, ProfileTestDriver);
Driver.prototype.enter = function(func) {
@@ -192,7 +192,7 @@ function assertNodeWeights(root, path, selfTicks, totalTicks) {
assertNotNull(node, 'node not found: ' + stack);
assertEquals(selfTicks, node.selfWeight, 'self of ' + stack);
assertEquals(totalTicks, node.totalWeight, 'total of ' + stack);
-};
+}
(function testTopDownRootProfileTicks() {
@@ -228,7 +228,7 @@ function assertNodeWeights(root, path, selfTicks, totalTicks) {
this.namesTopDown = [''];
this.counters = {};
this.root = null;
- };
+ }
Inherits(Driver, ProfileTestDriver);
Driver.prototype.increment = function(func, self, total) {
« no previous file with comments | « test/mjsunit/tools/codemap.js ('k') | test/mjsunit/tools/splaytree.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698