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

Side by Side Diff: tools/turbolizer/monkey.js

Issue 729913004: Add a html-based visualizer for TurboFan graphs (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review feedback Created 4 years, 7 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 unified diff | Download patch
« no previous file with comments | « tools/turbolizer/left-arrow.png ('k') | tools/turbolizer/node.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 Array.prototype.getStaggeredFromMiddle = function(i) {
6 if (i >= this.length) {
7 throw("getStaggeredFromMiddle: OOB");
8 }
9 var middle = Math.floor(this.length / 2);
10 var index = middle + (((i % 2) == 0) ? (i / 2) : (((1 - i) / 2) - 1));
11 return this[index];
12 }
13
14 Array.prototype.contains = function(obj) {
15 var i = this.length;
16 while (i--) {
17 if (this[i] === obj) {
18 return true;
19 }
20 }
21 return false;
22 }
23
24 Math.alignUp = function(raw, multiple) {
25 return Math.floor((raw + multiple - 1) / multiple) * multiple;
26 }
OLDNEW
« no previous file with comments | « tools/turbolizer/left-arrow.png ('k') | tools/turbolizer/node.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698