(entry)
| 243 | } |
| 244 | |
| 245 | focusLogEntry(entry) { |
| 246 | switch (entry.constructor) { |
| 247 | case Script: |
| 248 | return this.focusSourcePosition(entry.sourcePositions[0]); |
| 249 | case SourcePosition: |
| 250 | return this.focusSourcePosition(entry); |
| 251 | case MapLogEntry: |
| 252 | return this.focusMapLogEntry(entry); |
| 253 | case IcLogEntry: |
| 254 | return this.focusIcLogEntry(entry); |
| 255 | case CodeLogEntry: |
| 256 | return this.focusCodeLogEntry(entry); |
| 257 | case DeoptLogEntry: |
| 258 | return this.focusDeoptLogEntry(entry); |
| 259 | case SharedLibLogEntry: |
| 260 | return this.focusDeoptLogEntry(entry); |
| 261 | case TickLogEntry: |
| 262 | return this.focusTickLogEntry(entry); |
| 263 | case TimerLogEntry: |
| 264 | return this.focusTimerLogEntry(entry); |
| 265 | default: |
| 266 | throw new Error(`Unknown selection type: ${entry.constructor?.name}`); |
| 267 | } |
| 268 | } |
| 269 | |
| 270 | focusMapLogEntry(entry, focusSourcePosition = true) { |
| 271 | this._state.map = entry; |
no test coverage detected