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

Unified Diff: tools/turbolizer/lang-disassembly.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/turbolizer/index.html ('k') | tools/turbolizer/layout-icon.png » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/turbolizer/lang-disassembly.js
diff --git a/tools/turbolizer/lang-disassembly.js b/tools/turbolizer/lang-disassembly.js
new file mode 100644
index 0000000000000000000000000000000000000000..590f9fd804f6a87c27bde1a47fb523aec12f2174
--- /dev/null
+++ b/tools/turbolizer/lang-disassembly.js
@@ -0,0 +1,14 @@
+// Copyright 2015 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+PR.registerLangHandler(
+ PR.createSimpleLexer(
+ [
+ [PR.PR_STRING, /^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$))/, null, '\''],
+ [PR.PR_PLAIN, /^\s+/, null, ' \r\n\t\xA0']
+ ],
+ [ // fallthroughStylePatterns
+ [PR.PR_COMMENT, /;; debug: position \d+/, null],
+ ]),
+ ['disassembly']);
« no previous file with comments | « tools/turbolizer/index.html ('k') | tools/turbolizer/layout-icon.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698