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

Side by Side Diff: tools/turbolizer/disassembly-view.js

Issue 2885453002: [turbolizer] Match instruction offsets as a hexadecimal numbers (Closed)
Patch Set: Created 3 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 "use strict"; 5 "use strict";
6 6
7 class DisassemblyView extends TextView { 7 class DisassemblyView extends TextView {
8 constructor(id, broker) { 8 constructor(id, broker) {
9 super(id, broker, null, false); 9 super(id, broker, null, false);
10 10
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 }; 80 };
81 view.SOURCE_POSITION_HEADER_REGEX = /^(\s*-- .+:)(\d+:\d+)( --)/; 81 view.SOURCE_POSITION_HEADER_REGEX = /^(\s*-- .+:)(\d+:\d+)( --)/;
82 let patterns = [ 82 let patterns = [
83 [ 83 [
84 [/^0x[0-9a-f]{8,16}/, ADDRESS_STYLE, 1], 84 [/^0x[0-9a-f]{8,16}/, ADDRESS_STYLE, 1],
85 [view.SOURCE_POSITION_HEADER_REGEX, SOURCE_POSITION_HEADER_STYLE, -1], 85 [view.SOURCE_POSITION_HEADER_REGEX, SOURCE_POSITION_HEADER_STYLE, -1],
86 [/^\s+-- B\d+ start.*/, BLOCK_HEADER_STYLE, -1], 86 [/^\s+-- B\d+ start.*/, BLOCK_HEADER_STYLE, -1],
87 [/^.*/, UNCLASSIFIED_STYLE, -1] 87 [/^.*/, UNCLASSIFIED_STYLE, -1]
88 ], 88 ],
89 [ 89 [
90 [/^\s+\d+\s+[0-9a-f]+\s+/, NUMBER_STYLE, 2], 90 [/^\s+[0-9a-f]+\s+[0-9a-f]+\s+/, NUMBER_STYLE, 2],
91 [/^.*/, null, -1] 91 [/^.*/, null, -1]
92 ], 92 ],
93 [ 93 [
94 [/^\S+\s+/, OPCODE_STYLE, 3], 94 [/^\S+\s+/, OPCODE_STYLE, 3],
95 [/^\S+$/, OPCODE_STYLE, -1], 95 [/^\S+$/, OPCODE_STYLE, -1],
96 [/^.*/, null, -1] 96 [/^.*/, null, -1]
97 ], 97 ],
98 [ 98 [
99 [/^\s+/, null], 99 [/^\s+/, null],
100 [/^[^\(;]+$/, null, -1], 100 [/^[^\(;]+$/, null, -1],
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 else 264 else
265 newFragments.push(view.createFragment(str, css_cls)); 265 newFragments.push(view.createFragment(str, css_cls));
266 266
267 } 267 }
268 fragments = newFragments.concat(fragments); 268 fragments = newFragments.concat(fragments);
269 } 269 }
270 } 270 }
271 return fragments; 271 return fragments;
272 } 272 }
273 } 273 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698