Changeset 167094 in webkit for trunk/Source/JavaScriptCore/offlineasm/asm.rb
- Timestamp:
- Apr 10, 2014, 3:33:59 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/offlineasm/asm.rb
r164164 r167094 173 173 end 174 174 175 def putsLabel(labelName )175 def putsLabel(labelName, isGlobal) 176 176 raise unless @state == :asm 177 177 @numGlobalLabels += 1 178 putsProcEndIfNeeded if $emitWinAsm 178 putsProcEndIfNeeded if $emitWinAsm and isGlobal 179 179 putsNewlineSpacerIfAppropriate(:global) 180 180 @internalComment = $enableLabelCountComments ? "Global Label #{@numGlobalLabels}" : nil 181 if /\Allint_op_/.match(labelName) 181 if isGlobal 182 if !$emitWinAsm 183 @outp.puts(formatDump("OFFLINE_ASM_GLOBAL_LABEL(#{labelName})", lastComment)) 184 else 185 putsProc(labelName, lastComment) 186 end 187 elsif /\Allint_op_/.match(labelName) 182 188 if !$emitWinAsm 183 189 @outp.puts(formatDump("OFFLINE_ASM_OPCODE_LABEL(op_#{$~.post_match})", lastComment)) 184 190 else 185 191 label = "llint_" + "op_#{$~.post_match}" 186 putsProc(label, lastComment)187 end 192 @outp.puts(formatDump(" _#{label}:", lastComment)) 193 end 188 194 else 189 195 if !$emitWinAsm 190 196 @outp.puts(formatDump("OFFLINE_ASM_GLUE_LABEL(#{labelName})", lastComment)) 191 197 else 192 putsProc(labelName, lastComment)198 @outp.puts(formatDump(" _#{labelName}:", lastComment)) 193 199 end 194 200 end … … 207 213 end 208 214 end 209 215 216 def self.externLabelReference(labelName) 217 if !$emitWinAsm 218 "\" LOCAL_REFERENCE(#{labelName}) \"" 219 else 220 "#{labelName}" 221 end 222 end 223 210 224 def self.labelReference(labelName) 211 225 if !$emitWinAsm 212 "\" LOCAL_ REFERENCE(#{labelName}) \""213 else 214 " #{labelName}"226 "\" LOCAL_LABEL_STRING(#{labelName}) \"" 227 else 228 "_#{labelName}" 215 229 end 216 230 end … … 262 276 end 263 277 end 278 279 IncludeFile.processIncludeOptions() 264 280 265 281 asmFile = ARGV.shift
Note:
See TracChangeset
for help on using the changeset viewer.