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/mips.rb

    r198173 r228402  
    1 # Copyright (C) 2012 Apple Inc. All rights reserved.
     1# Copyright (C) 2012-2018 Apple Inc. All rights reserved.
    22# Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved.
    33#
     
    826826class Instruction
    827827    def lowerMIPS
    828         $asm.comment codeOriginString
    829828        case opcode
    830829        when "addi", "addp", "addis"
Note: See TracChangeset for help on using the changeset viewer.