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

    r213973 r228402  
    1 # Copyright (C) 2011, 2012 Apple Inc. All rights reserved.
     1# Copyright (C) 2011-2018 Apple Inc. All rights reserved.
    22#
    33# Redistribution and use in source and binary forms, with or without
     
    576576            case node.opcode
    577577            when "noti", "notp"
    578                 raise "Wrong nubmer of operands at #{node.codeOriginString}" unless node.operands.size == 1
     578                raise "Wrong number of operands at #{node.codeOriginString}" unless node.operands.size == 1
    579579                suffix = node.opcode[-1..-1]
    580580                newList << Instruction.new(node.codeOrigin, "xor" + suffix,
Note: See TracChangeset for help on using the changeset viewer.