Changeset 59746 in webkit for trunk/JavaScriptCore/runtime/JSGlobalData.cpp
- Timestamp:
- May 18, 2010, 11:04:18 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSGlobalData.cpp
r59676 r59746 255 255 256 256 #if ENABLE(JIT) 257 PassRefPtr<NativeExecutable> JSGlobalData::getNativeExecutable(NativeFunction function) 258 { 259 std::pair<NativeExecutableMap::iterator, bool> entry = m_nativeExecutableMap.add(function, 0); 260 if (entry.second) 261 entry.first->second = NativeExecutable::create(jitStubs.ctiNativeCall(), function); 262 return entry.first->second; 263 } 264 265 PassRefPtr<NativeExecutable> JSGlobalData::getNativeExecutable(NativeFunction function, ThunkGenerator generator) 266 { 267 std::pair<NativeExecutableMap::iterator, bool> entry = m_nativeExecutableMap.add(function, 0); 268 if (entry.second) 269 entry.first->second = NativeExecutable::create(getThunk(generator), function); 270 return entry.first->second; 257 PassRefPtr<NativeExecutable> JSGlobalData::getHostFunction(NativeFunction function) 258 { 259 return jitStubs.hostFunctionStub(this, function); 260 } 261 PassRefPtr<NativeExecutable> JSGlobalData::getHostFunction(NativeFunction function, ThunkGenerator generator) 262 { 263 return jitStubs.hostFunctionStub(this, function, generator); 271 264 } 272 265 #endif
Note:
See TracChangeset
for help on using the changeset viewer.