Changeset 126886 in webkit
- Timestamp:
- Aug 28, 2012 9:02:03 AM (12 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r126837 r126886 1 2012-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 1 12 2012-08-27 Sheriff Bot <webkit.review.bot@gmail.com> 2 13 -
trunk/Source/JavaScriptCore/offlineasm/offsets.rb
r122650 r126886 62 62 # 63 63 # offsetsAndConfigurationIndex(ast, file) -> 64 # [[offsets, index], ...]64 # {[offsets, index], ...} 65 65 # 66 66 # Parses the offsets from a file and returns a list of offsets and the … … 70 70 def offsetsAndConfigurationIndex(file) 71 71 endiannessMarkerBytes = nil 72 result = []72 result = {} 73 73 74 74 def readInt(endianness, bytes) … … 156 156 offsets << readInt(endianness, data) 157 157 } 158 result << [offsets, index] 158 if not result.has_key?(offsets) 159 result[offsets] = index 160 end 159 161 } 160 162 end … … 162 164 163 165 raise MissingMagicValuesException unless result.length >= 1 164 raise if result.map{|v| v[1]}.uniq.size < result.map{|v| v[1]}.size165 166 166 167 result
Note: See TracChangeset
for help on using the changeset viewer.