Changeset 267395 in webkit
- Timestamp:
- Sep 21, 2020, 9:56:42 PM (6 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
offlineasm/mips.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r267373 r267395 1 2020-09-21 Paulo Matos <pmatos@igalia.com> 2 3 Fix MIPS leai,leap when offset is nonzero 4 https://bugs.webkit.org/show_bug.cgi?id=216772 5 6 Reviewed by Mark Lam. 7 8 Fix required by change from webkit#216685 9 * offlineasm/mips.rb: 10 1 11 2020-09-21 Yusuke Suzuki <ysuzuki@apple.com> 2 12 -
trunk/Source/JavaScriptCore/offlineasm/mips.rb
r264105 r267395 1051 1051 if operands[0].is_a? LabelReference 1052 1052 labelRef = operands[0] 1053 raise unless labelRef.offset == 0 1054 $asm.puts "lw #{operands[1].mipsOperand}, %got(#{labelRef.asmLabel})($gp)" 1053 if labelRef.offset > 0 1054 $asm.puts "li #{operands[1].mipsOperand}, #{labelRef.asmLabel}" 1055 $asm.puts "addu #{operands[1].mipsOperand}, #{operands[1].mipsOperand}, #{labelRef.offset}" 1056 $asm.puts "lw #{operands[1].mipsOperand}, %got(#{operands[1].mipsOperand})($gp)" 1057 else 1058 $asm.puts "lw #{operands[1].mipsOperand}, %got(#{labelRef.asmLabel})($gp)" 1059 end 1055 1060 else 1056 1061 operands[0].mipsEmitLea(operands[1])
Note:
See TracChangeset
for help on using the changeset viewer.