summaryrefslogtreecommitdiff
path: root/deps/v8/tools/profile.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/tools/profile.js')
-rw-r--r--deps/v8/tools/profile.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/deps/v8/tools/profile.js b/deps/v8/tools/profile.js
index de9c42c5b1..21d9d22a5e 100644
--- a/deps/v8/tools/profile.js
+++ b/deps/v8/tools/profile.js
@@ -509,11 +509,18 @@ Profile.DynamicFuncCodeEntry = function(size, type, func, state) {
Profile.DynamicFuncCodeEntry.STATE_PREFIX = ["", "~", "*"];
/**
+ * Returns state.
+ */
+Profile.DynamicFuncCodeEntry.prototype.getState = function() {
+ return Profile.DynamicFuncCodeEntry.STATE_PREFIX[this.state];
+};
+
+/**
* Returns node name.
*/
Profile.DynamicFuncCodeEntry.prototype.getName = function() {
var name = this.func.getName();
- return this.type + ': ' + Profile.DynamicFuncCodeEntry.STATE_PREFIX[this.state] + name;
+ return this.type + ': ' + this.getState() + name;
};