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

Unified Diff: tools/turbolizer/util.js

Issue 2169043002: [turbolizer] Factor out some user actions into methods of GraphView. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@t-p6-base
Patch Set: Created 4 years, 5 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/turbolizer/graph-view.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/turbolizer/util.js
diff --git a/tools/turbolizer/util.js b/tools/turbolizer/util.js
index 09a747379018c3c650280f30319567abe425c83a..282221af483355bbda5e6dc3a470ae9ceebea5cb 100644
--- a/tools/turbolizer/util.js
+++ b/tools/turbolizer/util.js
@@ -69,3 +69,12 @@ function sortUnique(arr, f) {
}
return ret;
}
+
+// Partial application without binding the receiver
+function partial(f) {
+ var arguments1 = Array.prototype.slice.call(arguments, 1);
+ return function() {
+ var arguments2 = Array.from(arguments);
+ f.apply(this, arguments1.concat(arguments2));
+ }
+}
« no previous file with comments | « tools/turbolizer/graph-view.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698