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

Unified Diff: tools/profile.js

Issue 2835923004: [Ic-Processor] Let us know if an IC is in opt. or unopt. code. (Closed)
Patch Set: Created 3 years, 8 months 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 | « tools/ic-processor.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/profile.js
diff --git a/tools/profile.js b/tools/profile.js
index de9c42c5b1100c67d840690bbe63a845db0a2866..21d9d22a5e365834fc6f0e93818320db77edada9 100644
--- a/tools/profile.js
+++ b/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;
};
« no previous file with comments | « tools/ic-processor.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698