Changeset 39284 in webkit for trunk/JavaScriptCore/bytecode/CodeBlock.h
- Timestamp:
- Dec 13, 2008, 3:58:58 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bytecode/CodeBlock.h
r39255 r39284 63 63 }; 64 64 65 // The code, and the associated pool from which it was allocated. 66 struct JITCodeRef { 67 void* code; 68 RefPtr<ExecutablePool> executablePool; 69 70 JITCodeRef() 71 : code(0) 72 { 73 } 74 75 JITCodeRef(void* code, PassRefPtr<ExecutablePool> executablePool) 76 : code(code) 77 , executablePool(executablePool) 78 { 79 } 80 }; 81 65 82 struct ExpressionRangeInfo { 66 83 enum { … … 277 294 278 295 #if ENABLE(JIT) 279 void setJITCode(void* jitCode) { m_jitCode = jitCode; } 280 void* jitCode() { return m_jitCode; } 281 ExecutablePool* executablePool() { return m_executablePool.get(); } 282 void setExecutablePool(ExecutablePool* pool) { m_executablePool = pool; } 296 void setJITCode(JITCodeRef& jitCode) { m_jitCode = jitCode; } 297 void* jitCode() { return m_jitCode.code; } 298 ExecutablePool* executablePool() { return m_jitCode.executablePool.get(); } 283 299 #endif 284 300 … … 408 424 Vector<Instruction> m_instructions; 409 425 #if ENABLE(JIT) 410 void* m_jitCode; 411 RefPtr<ExecutablePool> m_executablePool; 426 JITCodeRef m_jitCode; 412 427 #endif 413 428
Note:
See TracChangeset
for help on using the changeset viewer.