Changeset 160091 in webkit


Ignore:
Timestamp:
Dec 4, 2013 6:42:09 AM (10 years ago)
Author:
commit-queue@webkit.org
Message:

Avoid to add zero offset in BaseIndex.
https://bugs.webkit.org/show_bug.cgi?id=125215

Patch by László Langó <lango@inf.u-szeged.hu> on 2013-12-04
Reviewed by Michael Saboff.

When using cloop do not generate offsets additions for BaseIndex if the offset is zero.

  • offlineasm/cloop.rb:
Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r160082 r160091  
     12013-12-04  László Langó  <lango@inf.u-szeged.hu>
     2
     3        Avoid to add zero offset in BaseIndex.
     4        https://bugs.webkit.org/show_bug.cgi?id=125215
     5
     6        Reviewed by Michael Saboff.
     7
     8        When using cloop do not generate offsets additions for BaseIndex if the offset is zero.
     9
     10        * offlineasm/cloop.rb:
     11
    1122013-12-04  Peter Molnar  <pmolnar.u-szeged@partner.samsung.com>
    213
  • trunk/Source/JavaScriptCore/offlineasm/cloop.rb

    r159545 r160091  
    262262    end
    263263    def pointerExpr
    264         "#{base.clValue(:int8Ptr)} + (#{index.clValue} << #{scaleShift}) + #{offset.clValue}"
     264        if offset.value == 0
     265            "#{base.clValue(:int8Ptr)} + (#{index.clValue} << #{scaleShift})"
     266        else
     267            "#{base.clValue(:int8Ptr)} + (#{index.clValue} << #{scaleShift}) + #{offset.clValue}"
     268        end
    265269    end
    266270    def int8MemRef
Note: See TracChangeset for help on using the changeset viewer.