Changeset 126886 in webkit


Ignore:
Timestamp:
Aug 28, 2012 9:02:03 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[GTK] LLint build fails with -g -02
https://bugs.webkit.org/show_bug.cgi?id=90098

Patch by Alban Browaeys <prahal@yahoo.com> on 2012-08-28
Reviewed by Filip Pizlo.

Avoid duplicate offsets for llint, discarding them.

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

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r126837 r126886  
     12012-08-28  Alban Browaeys <prahal@yahoo.com>
     2
     3        [GTK] LLint build fails with -g -02
     4        https://bugs.webkit.org/show_bug.cgi?id=90098
     5
     6        Reviewed by Filip Pizlo.
     7
     8        Avoid duplicate offsets for llint, discarding them.
     9
     10        * offlineasm/offsets.rb:
     11
    1122012-08-27  Sheriff Bot  <webkit.review.bot@gmail.com>
    213
  • trunk/Source/JavaScriptCore/offlineasm/offsets.rb

    r122650 r126886  
    6262#
    6363# offsetsAndConfigurationIndex(ast, file) ->
    64 #     [[offsets, index], ...]
     64#     {[offsets, index], ...}
    6565#
    6666# Parses the offsets from a file and returns a list of offsets and the
     
    7070def offsetsAndConfigurationIndex(file)
    7171    endiannessMarkerBytes = nil
    72     result = []
     72    result = {}
    7373   
    7474    def readInt(endianness, bytes)
     
    156156                    offsets << readInt(endianness, data)
    157157                }
    158                 result << [offsets, index]
     158                if not result.has_key?(offsets)
     159                    result[offsets] = index
     160                end
    159161            }
    160162        end
     
    162164   
    163165    raise MissingMagicValuesException unless result.length >= 1
    164     raise if result.map{|v| v[1]}.uniq.size < result.map{|v| v[1]}.size
    165166   
    166167    result
Note: See TracChangeset for help on using the changeset viewer.