Changeset 44455 in webkit for trunk/JavaScriptCore/jit/JITCode.h
- Timestamp:
- Jun 5, 2009, 12:55:38 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/jit/JITCode.h
r44030 r44455 43 43 class JITCode { 44 44 typedef MacroAssemblerCodeRef CodeRef; 45 typedef MacroAssemblerCodePtr CodePtr; 45 46 public: 46 47 JITCode() … … 55 56 bool operator !() const 56 57 { 57 return !m_ref.m_code ;58 return !m_ref.m_code.executableAddress(); 58 59 } 59 60 60 void*addressForCall()61 CodePtr addressForCall() 61 62 { 62 63 return m_ref.m_code; … … 68 69 unsigned offsetOf(void* pointerIntoCode) 69 70 { 70 intptr_t result = reinterpret_cast<intptr_t>(pointerIntoCode) - reinterpret_cast<intptr_t>(m_ref.m_code );71 intptr_t result = reinterpret_cast<intptr_t>(pointerIntoCode) - reinterpret_cast<intptr_t>(m_ref.m_code.executableAddress()); 71 72 ASSERT(static_cast<intptr_t>(static_cast<unsigned>(result)) == result); 72 73 return static_cast<unsigned>(result); … … 80 81 0, 0, 0, 0, 0, 0, 81 82 #endif 82 m_ref.m_code , registerFile, callFrame, exception, Profiler::enabledProfilerReference(), globalData));83 m_ref.m_code.executableAddress(), registerFile, callFrame, exception, Profiler::enabledProfilerReference(), globalData)); 83 84 } 84 85 … … 86 87 size_t size() 87 88 { 88 ASSERT(m_ref.m_code );89 ASSERT(m_ref.m_code.executableAddress()); 89 90 return m_ref.m_size; 90 91 } … … 98 99 // Host functions are a bit special; they have a m_code pointer but they 99 100 // do not individully ref the executable pool containing the trampoline. 100 static JITCode HostFunction( void*code)101 static JITCode HostFunction(CodePtr code) 101 102 { 102 return JITCode(code , 0, 0);103 return JITCode(code.dataLocation(), 0, 0); 103 104 } 104 105
Note:
See TracChangeset
for help on using the changeset viewer.