• Igor Sheludko's avatar
    [disassembler] Better support for roots · 47304413
    Igor Sheludko authored
    In particular, output root name instead of root value when detecting accesses
    to roots table. For example:
    
      REX.W cmpq [r13+0x80] (root (0x391473a00569 <Map[16]>)),rbx
      REX.W movq rdi,[r13+0x18] (root (0x391473a007b9 <Map>))
      REX.W movq rdi,[r13-0x20] (root (0x391473a005b9 <the_hole>))
    
    turns into
    
      REX.W cmpq [r13+0x80] (root (heap_number_map)),rbx
      REX.W movq rdi,[r13+0x18] (root (fixed_array_map))
      REX.W movq rdi,[r13-0x20] (root (the_hole_value))
    
    Bug: v8:8238
    Change-Id: I0f7bdcb7774a2fe450f930c1bc2f3ccd03064201
    Reviewed-on: https://chromium-review.googlesource.com/c/1317823Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
    Commit-Queue: Igor Sheludko <ishell@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#57262}
    47304413
disassembler.cc 16.9 KB