Changeset 153197 in webkit for trunk/Source/JavaScriptCore/assembler/MacroAssemblerARMv7.h
- Timestamp:
- Jul 24, 2013, 9:01:38 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/assembler/MacroAssemblerARMv7.h
r149395 r153197 35 35 namespace JSC { 36 36 37 struct JITStackFrame; 38 37 39 class MacroAssemblerARMv7 : public AbstractMacroAssembler<ARMv7Assembler> { 38 40 // FIXME: switch dataTempRegister & addressTempRegister, or possibly use r7? … … 1797 1799 } 1798 1800 1801 #if USE(MASM_PROBE) 1802 struct CPUState { 1803 #define DECLARE_REGISTER(_type, _regName) \ 1804 _type _regName; 1805 FOR_EACH_CPU_REGISTER(DECLARE_REGISTER) 1806 #undef DECLARE_REGISTER 1807 }; 1808 1809 struct ProbeContext; 1810 typedef void (*ProbeFunction)(struct ProbeContext*); 1811 1812 struct ProbeContext { 1813 ProbeFunction probeFunction; 1814 void* arg1; 1815 void* arg2; 1816 JITStackFrame* jitStackFrame; 1817 CPUState cpu; 1818 1819 void dump(const char* indentation = 0); 1820 private: 1821 void dumpCPURegisters(const char* indentation); 1822 }; 1823 1824 // For details about probe(), see comment in MacroAssemblerX86_64.h. 1825 void probe(ProbeFunction, void* arg1 = 0, void* arg2 = 0); 1826 #endif // USE(MASM_PROBE) 1827 1799 1828 protected: 1800 1829 ALWAYS_INLINE Jump jump() … … 1907 1936 } 1908 1937 1938 #if USE(MASM_PROBE) 1939 inline TrustedImm32 trustedImm32FromPtr(void* ptr) 1940 { 1941 return TrustedImm32(TrustedImmPtr(ptr)); 1942 } 1943 1944 inline TrustedImm32 trustedImm32FromPtr(ProbeFunction function) 1945 { 1946 return TrustedImm32(TrustedImmPtr(reinterpret_cast<void*>(function))); 1947 } 1948 1949 inline TrustedImm32 trustedImm32FromPtr(void (*function)()) 1950 { 1951 return TrustedImm32(TrustedImmPtr(reinterpret_cast<void*>(function))); 1952 } 1953 #endif 1954 1909 1955 bool m_makeJumpPatchable; 1910 1956 };
Note:
See TracChangeset
for help on using the changeset viewer.