| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |