Changeset 284868 in webkit for trunk/Source/JavaScriptCore/offlineasm/asm.rb
- Timestamp:
- Oct 26, 2021, 8:52:37 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/offlineasm/asm.rb
r284341 r284868 265 265 end 266 266 end 267 if $emitELFDebugDirectives 268 deferNextLabelAction { 269 putStr(" \".size #{labelName} , . - #{labelName} \\n\"") 270 putStr(" \".type #{labelName} , function \\n\"") 271 } 272 end 267 273 @newlineSpacerState = :none # After a global label, we can use another spacer. 268 274 end … … 342 348 $options = {} 343 349 OptionParser.new do |opts| 344 opts.banner = "Usage: asm.rb asmFile offsetsFile outputFileName [--assembler=<ASM>] [--webkit-additions-path=<path>] "350 opts.banner = "Usage: asm.rb asmFile offsetsFile outputFileName [--assembler=<ASM>] [--webkit-additions-path=<path>] [--binary-format=<format>]" 345 351 # This option is currently only used to specify the masm assembler 346 352 opts.on("--assembler=[ASM]", "Specify an assembler to use.") do |assembler| … … 349 355 opts.on("--webkit-additions-path=PATH", "WebKitAdditions path.") do |path| 350 356 $options[:webkit_additions_path] = path 357 end 358 opts.on("--binary-format=FORMAT", "Specify the binary format used by the target system.") do |format| 359 $options[:binary_format] = format 351 360 end 352 361 end.parse! … … 366 375 $emitWinAsm = isMSVC ? outputFlnm.index(".asm") != nil : false 367 376 $commentPrefix = $emitWinAsm ? ";" : "//" 377 378 # We want this in all ELF systems we support, except for C_LOOP (we'll disable it later on if we are building cloop) 379 $emitELFDebugDirectives = $options.has_key?(:binary_format) && $options[:binary_format] == "ELF" 368 380 369 381 inputHash = … … 413 425 $enableDebugAnnotations = false 414 426 $preferredCommentStartColumn = 60 427 $emitELFDebugDirectives = false 415 428 end 416 429
Note:
See TracChangeset
for help on using the changeset viewer.