Ignore:
Timestamp:
Feb 12, 2016, 6:37:19 PM (9 years ago)
Author:
[email protected]
Message:

offlineasm: Emit Dwarf2 file and location directives to allow for debugging .asm files
https://bugs.webkit.org/show_bug.cgi?id=152703

Reviewed by Mark Lam.

Added support to output Dwarf2 .file and .loc assembler directives to provide the debugging
information needed to correlate the offline assembler generated code with the source lines
in the .asm files.

Changed the tracking of file data to include a file index that was provided to the .file
directive. That index is used when emitting the .loc directives.

  • offlineasm/arm.rb:
  • offlineasm/arm64.rb:
  • offlineasm/asm.rb:
  • offlineasm/backends.rb:
  • offlineasm/config.rb:
  • offlineasm/parser.rb:
  • offlineasm/x86.rb:
File:
1 edited

Legend:

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

    r189293 r196541  
    1 # Copyright (C) 2011, 2012 Apple Inc. All rights reserved.
     1# Copyright (C) 2011, 2012, 2015-2016 Apple Inc. All rights reserved.
    22# Copyright (C) 2013 University of Szeged. All rights reserved.
    33#
     
    350350        $asm.codeOrigin codeOriginString if $enableCodeOriginComments
    351351        $asm.annotation annotation if $enableInstrAnnotations
     352        $asm.debugAnnotation codeOrigin.debugDirective if $enableDebugAnnotations
    352353
    353354        case opcode
Note: See TracChangeset for help on using the changeset viewer.