Changeset 90437 in webkit for trunk/Source/JavaScriptCore/runtime/Executable.h
- Timestamp:
- Jul 5, 2011, 11:35:44 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/Executable.h
r90414 r90437 103 103 } 104 104 105 MacroAssemblerCodePtr generatedJITCodeForCallWithArityCheck() 106 { 107 ASSERT(m_jitCodeForCall); 108 ASSERT(m_jitCodeForCallWithArityCheck); 109 return m_jitCodeForCallWithArityCheck; 110 } 111 112 MacroAssemblerCodePtr generatedJITCodeForConstructWithArityCheck() 113 { 114 ASSERT(m_jitCodeForConstruct); 115 ASSERT(m_jitCodeForConstructWithArityCheck); 116 return m_jitCodeForConstructWithArityCheck; 117 } 118 119 MacroAssemblerCodePtr generatedJITCodeWithArityCheckFor(CodeSpecializationKind kind) 120 { 121 if (kind == CodeForCall) 122 return generatedJITCodeForCallWithArityCheck(); 123 ASSERT(kind == CodeForConstruct); 124 return generatedJITCodeForConstructWithArityCheck(); 125 } 126 127 bool hasJITCodeForCall() const 128 { 129 return m_numParametersForCall >= 0; 130 } 131 132 bool hasJITCodeForConstruct() const 133 { 134 return m_numParametersForConstruct >= 0; 135 } 136 137 bool hasJITCodeFor(CodeSpecializationKind kind) const 138 { 139 if (kind == CodeForCall) 140 return hasJITCodeForCall(); 141 ASSERT(kind == CodeForConstruct); 142 return hasJITCodeForConstruct(); 143 } 144 105 145 void clearExecutableCode() 106 146 { … … 456 496 Identifier m_name; 457 497 SharedSymbolTable* m_symbolTable; 458 459 #if ENABLE(JIT)460 public:461 MacroAssemblerCodePtr generatedJITCodeForCallWithArityCheck()462 {463 ASSERT(m_jitCodeForCall);464 ASSERT(m_jitCodeForCallWithArityCheck);465 return m_jitCodeForCallWithArityCheck;466 }467 468 MacroAssemblerCodePtr generatedJITCodeForConstructWithArityCheck()469 {470 ASSERT(m_jitCodeForConstruct);471 ASSERT(m_jitCodeForConstructWithArityCheck);472 return m_jitCodeForConstructWithArityCheck;473 }474 475 MacroAssemblerCodePtr generatedJITCodeWithArityCheckFor(CodeSpecializationKind kind)476 {477 if (kind == CodeForCall)478 return generatedJITCodeForCallWithArityCheck();479 ASSERT(kind == CodeForConstruct);480 return generatedJITCodeForConstructWithArityCheck();481 }482 #endif483 498 }; 484 499
Note:
See TracChangeset
for help on using the changeset viewer.