Changeset 95310 in webkit for trunk/Source/JavaScriptCore/runtime/Executable.h
- Timestamp:
- Sep 16, 2011, 11:50:04 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/Executable.h
r94929 r95310 157 157 } 158 158 159 #if ENABLE(DFG_JIT) 160 virtual DFG::Intrinsic intrinsic() const; 161 #endif 162 159 163 protected: 160 164 JITCode m_jitCodeForCall; … … 174 178 175 179 #if ENABLE(JIT) 176 static NativeExecutable* create(JSGlobalData& globalData, MacroAssemblerCodeRef callThunk, NativeFunction function, MacroAssemblerCodeRef constructThunk, NativeFunction constructor )180 static NativeExecutable* create(JSGlobalData& globalData, MacroAssemblerCodeRef callThunk, NativeFunction function, MacroAssemblerCodeRef constructThunk, NativeFunction constructor, DFG::Intrinsic intrinsic) 177 181 { 178 182 NativeExecutable* executable; 179 183 if (!callThunk) { 180 184 executable = new (allocateCell<NativeExecutable>(globalData.heap)) NativeExecutable(globalData, function, constructor); 181 executable->finishCreation(globalData, JITCode(), JITCode() );185 executable->finishCreation(globalData, JITCode(), JITCode(), intrinsic); 182 186 } else { 183 187 executable = new (allocateCell<NativeExecutable>(globalData.heap)) NativeExecutable(globalData, function, constructor); 184 executable->finishCreation(globalData, JITCode::HostFunction(callThunk), JITCode::HostFunction(constructThunk) );188 executable->finishCreation(globalData, JITCode::HostFunction(callThunk), JITCode::HostFunction(constructThunk), intrinsic); 185 189 } 186 190 return executable; … … 205 209 protected: 206 210 #if ENABLE(JIT) 207 void finishCreation(JSGlobalData& globalData, JITCode callThunk, JITCode constructThunk )211 void finishCreation(JSGlobalData& globalData, JITCode callThunk, JITCode constructThunk, DFG::Intrinsic intrinsic) 208 212 { 209 213 Base::finishCreation(globalData); … … 212 216 m_jitCodeForCallWithArityCheck = callThunk.addressForCall(); 213 217 m_jitCodeForConstructWithArityCheck = constructThunk.addressForCall(); 214 } 218 #if ENABLE(DFG_JIT) 219 m_intrinsic = intrinsic; 220 #endif 221 } 222 #endif 223 224 #if ENABLE(DFG_JIT) 225 virtual DFG::Intrinsic intrinsic() const; 215 226 #endif 216 227 … … 236 247 // trampoline. It may be easier to make NativeFunction be passed 'this' as a part of the ArgList. 237 248 NativeFunction m_constructor; 249 250 DFG::Intrinsic m_intrinsic; 238 251 }; 239 252
Note:
See TracChangeset
for help on using the changeset viewer.