Changeset 188888 in webkit
- Timestamp:
- Aug 24, 2015 2:56:38 PM (9 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r188887 r188888 1 2015-08-24 Basile Clement <basile_clement@apple.com> 2 3 REPTACH is not a word 4 https://bugs.webkit.org/show_bug.cgi?id=148401 5 6 Reviewed by Saam Barati. 7 8 * assembler/MacroAssemblerX86_64.h: 9 (JSC::MacroAssemblerX86_64::callWithSlowPathReturnType): 10 (JSC::MacroAssemblerX86_64::call): 11 (JSC::MacroAssemblerX86_64::tailRecursiveCall): 12 (JSC::MacroAssemblerX86_64::makeTailRecursiveCall): 13 (JSC::MacroAssemblerX86_64::readCallTarget): 14 (JSC::MacroAssemblerX86_64::linkCall): 15 (JSC::MacroAssemblerX86_64::repatchCall): 16 1 17 2015-08-24 Mark Lam <mark.lam@apple.com> 2 18 -
trunk/Source/JavaScriptCore/assembler/MacroAssemblerX86_64.h
r188135 r188888 31 31 #include "MacroAssemblerX86Common.h" 32 32 33 #define REP TACH_OFFSET_CALL_R11 333 #define REPATCH_OFFSET_CALL_R11 3 34 34 35 35 inline bool CAN_SIGN_EXTEND_32_64(int64_t value) { return value == (int64_t)(int32_t)value; } … … 182 182 load64(Address(X86Registers::eax), X86Registers::eax); 183 183 184 ASSERT_UNUSED(label, differenceBetween(label, result) == REP TACH_OFFSET_CALL_R11);184 ASSERT_UNUSED(label, differenceBetween(label, result) == REPATCH_OFFSET_CALL_R11); 185 185 return result; 186 186 } … … 216 216 add64(TrustedImm32(8 * sizeof(int64_t)), X86Registers::esp); 217 217 #endif 218 ASSERT_UNUSED(label, differenceBetween(label, result) == REP TACH_OFFSET_CALL_R11);218 ASSERT_UNUSED(label, differenceBetween(label, result) == REPATCH_OFFSET_CALL_R11); 219 219 return result; 220 220 } … … 231 231 DataLabelPtr label = moveWithPatch(TrustedImmPtr(0), scratchRegister); 232 232 Jump newJump = Jump(m_assembler.jmp_r(scratchRegister)); 233 ASSERT_UNUSED(label, differenceBetween(label, newJump) == REP TACH_OFFSET_CALL_R11);233 ASSERT_UNUSED(label, differenceBetween(label, newJump) == REPATCH_OFFSET_CALL_R11); 234 234 return Call::fromTailJump(newJump); 235 235 } … … 240 240 DataLabelPtr label = moveWithPatch(TrustedImmPtr(0), scratchRegister); 241 241 Jump newJump = Jump(m_assembler.jmp_r(scratchRegister)); 242 ASSERT_UNUSED(label, differenceBetween(label, newJump) == REP TACH_OFFSET_CALL_R11);242 ASSERT_UNUSED(label, differenceBetween(label, newJump) == REPATCH_OFFSET_CALL_R11); 243 243 return Call::fromTailJump(newJump); 244 244 } … … 801 801 static FunctionPtr readCallTarget(CodeLocationCall call) 802 802 { 803 return FunctionPtr(X86Assembler::readPointer(call.dataLabelPtrAtOffset(-REP TACH_OFFSET_CALL_R11).dataLocation()));803 return FunctionPtr(X86Assembler::readPointer(call.dataLabelPtrAtOffset(-REPATCH_OFFSET_CALL_R11).dataLocation())); 804 804 } 805 805 … … 862 862 { 863 863 if (!call.isFlagSet(Call::Near)) 864 X86Assembler::linkPointer(code, call.m_label.labelAtOffset(-REP TACH_OFFSET_CALL_R11), function.value());864 X86Assembler::linkPointer(code, call.m_label.labelAtOffset(-REPATCH_OFFSET_CALL_R11), function.value()); 865 865 else 866 866 X86Assembler::linkCall(code, call.m_label, function.value()); … … 869 869 static void repatchCall(CodeLocationCall call, CodeLocationLabel destination) 870 870 { 871 X86Assembler::repatchPointer(call.dataLabelPtrAtOffset(-REP TACH_OFFSET_CALL_R11).dataLocation(), destination.executableAddress());871 X86Assembler::repatchPointer(call.dataLabelPtrAtOffset(-REPATCH_OFFSET_CALL_R11).dataLocation(), destination.executableAddress()); 872 872 } 873 873 874 874 static void repatchCall(CodeLocationCall call, FunctionPtr destination) 875 875 { 876 X86Assembler::repatchPointer(call.dataLabelPtrAtOffset(-REP TACH_OFFSET_CALL_R11).dataLocation(), destination.executableAddress());876 X86Assembler::repatchPointer(call.dataLabelPtrAtOffset(-REPATCH_OFFSET_CALL_R11).dataLocation(), destination.executableAddress()); 877 877 } 878 878 };
Note: See TracChangeset
for help on using the changeset viewer.