| 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) {
|
|
|