Changeset 93698 in webkit for trunk/Source/JavaScriptCore/dfg/DFGJITCompiler.cpp
- Timestamp:
- Aug 24, 2011, 2:50:40 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGJITCompiler.cpp
r93238 r93698 1042 1042 1043 1043 #if ENABLE(SAMPLING_COUNTERS) && CPU(X86_64) // Or any other 64-bit platform! 1044 void JITCompiler::emitCount( AbstractSamplingCounter& counter, uint32_t increment)1045 { 1046 addPtr(TrustedImm32(increment), AbsoluteAddress(counter.addressOfCounter()));1044 void JITCompiler::emitCount(MacroAssembler& jit, AbstractSamplingCounter& counter, uint32_t increment) 1045 { 1046 jit.addPtr(TrustedImm32(increment), AbsoluteAddress(counter.addressOfCounter())); 1047 1047 } 1048 1048 #endif 1049 1049 1050 1050 #if ENABLE(SAMPLING_COUNTERS) && CPU(X86) // Or any other little-endian 32-bit platform! 1051 void JITCompiler::emitCount( AbstractSamplingCounter& counter, uint32_t increment)1051 void JITCompiler::emitCount(MacroAsembler& jit, AbstractSamplingCounter& counter, uint32_t increment) 1052 1052 { 1053 1053 intptr_t hiWord = reinterpret_cast<intptr_t>(counter.addressOfCounter()) + sizeof(int32_t); 1054 add32(TrustedImm32(increment), AbsoluteAddress(counter.addressOfCounter()));1055 addWithCarry32(TrustedImm32(0), AbsoluteAddress(reinterpret_cast<void*>(hiWord)));1054 jit.add32(TrustedImm32(increment), AbsoluteAddress(counter.addressOfCounter())); 1055 jit.addWithCarry32(TrustedImm32(0), AbsoluteAddress(reinterpret_cast<void*>(hiWord))); 1056 1056 } 1057 1057 #endif
Note:
See TracChangeset
for help on using the changeset viewer.