Ignore:
Timestamp:
Dec 13, 2018, 11:17:32 PM (6 years ago)
Author:
[email protected]
Message:

Improve GDB output for LLInt on Linux
https://bugs.webkit.org/show_bug.cgi?id=192660

Reviewed by Yusuke Suzuki.

Annotate assembly code generated for LLInt with the bytecode operation. When debugging
LLInt assembly code GDB is then able to show which bytecode instruction is implemented by
the current assembly code. This also works for linux-perf.

  • llint/LowLevelInterpreter.cpp:
  • offlineasm/arm.rb:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/offlineasm/arm.rb

    r238439 r239199  
    684684
    685685            uid = $asm.newUID
    686             gotLabel = "L_offlineasm_arm_got_#{uid}"
    687             offsetLabel = "L_offlineasm_arm_got_offset_#{uid}"
     686            gotLabel = Assembler.localLabelReference("offlineasm_arm_got_#{uid}")
     687            offsetLabel = Assembler.localLabelReference("offlineasm_arm_got_offset_#{uid}")
    688688
    689689            $asm.puts "ldr #{dest.armOperand}, #{gotLabel}"
Note: See TracChangeset for help on using the changeset viewer.