Changeset 269171 in webkit for trunk/Source/JavaScriptCore/offlineasm/offsets.rb
- Timestamp:
- Oct 29, 2020, 2:38:30 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/offlineasm/offsets.rb
r237219 r269171 140 140 141 141 # 142 # offsetsAndConfigurationIndex( ast,file) ->142 # offsetsAndConfigurationIndex(file) -> 143 143 # [[offsets, index], ...] 144 144 # … … 183 183 184 184 # 185 # configurationIndices(ast, file) -> 185 # offsetsAndConfigurationIndex(file) -> 186 # [[offsets, index], ...] 187 # 188 # Parses the offsets from a file and all its variants and returns a list of 189 # offsets and the index of the configuration that is valid in this build target. 190 # 191 192 def offsetsAndConfigurationIndexForVariants(file, variants) 193 results = [] 194 variants.each { 195 | current_variant | 196 suffix = "" 197 unless current_variant == "normal" 198 suffix = "_" + current_variant 199 end 200 results << offsetsAndConfigurationIndex(file + suffix) 201 } 202 return results.flatten(1) 203 end 204 205 # 206 # configurationIndices(file) -> 186 207 # [[offsets, index], ...] 187 208 # … … 213 234 214 235 # 236 # configurationIndicesForVariants(file, variants) -> 237 # [[offsets, index], ...] 238 # 239 # Parses the configurations from a file and all its variants and returns a list 240 # of the indices of the configurations that are valid in this build target. 241 # 242 243 def configurationIndicesForVariants(file, variants) 244 results = [] 245 variants.each { 246 | current_variant | 247 suffix = "" 248 unless current_variant == "normal" 249 suffix = "_" + current_variant 250 end 251 results << configurationIndices(file + suffix) 252 } 253 return results.flatten(1) 254 end 255 256 # 215 257 # buildOffsetsMap(ast, extractedConstants) -> map 216 258 #
Note:
See TracChangeset
for help on using the changeset viewer.