Ignore:
Timestamp:
Feb 12, 2018, 3:43:30 PM (7 years ago)
Author:
[email protected]
Message:

Miscellaneous refactoring of offlineasm.
https://bugs.webkit.org/show_bug.cgi?id=182702
<rdar://problem/37467887>

Reviewed by Filip Pizlo.

  1. Refactor out the emission of $asm.comment, $asm.codeOrigin, $asm.annotation, and $asm.debugAnnotation into a recordMetaData method. This standardizes how we emit this metadata and makes all backends do it the same way.
  1. Add the ability to include custom offlineasm scripts from WebKitAdditions in the future.
  • offlineasm/arm.rb:
  • offlineasm/arm64.rb:
  • offlineasm/ast.rb:
  • offlineasm/backends.rb:
  • offlineasm/cloop.rb:
  • offlineasm/config.rb:
  • offlineasm/mips.rb:
  • offlineasm/risc.rb:
  • offlineasm/x86.rb:
File:
1 edited

Legend:

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

    r214969 r228402  
    1 # Copyright (C) 2011, 2012, 2015-2016 Apple Inc. All rights reserved.
     1# Copyright (C) 2011-2018 Apple Inc. All rights reserved.
    22# Copyright (C) 2013 University of Szeged. All rights reserved.
    33#
     
    349349
    350350    def lowerARMCommon
    351         $asm.codeOrigin codeOriginString if $enableCodeOriginComments
    352         $asm.annotation annotation if $enableInstrAnnotations
    353         $asm.debugAnnotation codeOrigin.debugDirective if $enableDebugAnnotations
    354 
    355351        case opcode
    356352        when "addi", "addp", "addis", "addps"
Note: See TracChangeset for help on using the changeset viewer.