Changeset 59746 in webkit for trunk/JavaScriptCore/jit/JITStubs.cpp
- Timestamp:
- May 18, 2010, 11:04:18 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/jit/JITStubs.cpp
r59742 r59746 3405 3405 } 3406 3406 3407 MacroAssemblerCodePtr JITThunks:: specializedThunk(JSGlobalData* globalData, ThunkGenerator generator)3408 { 3409 std::pair< ThunkMap::iterator, bool> entry = m_thunkMap.add(generator, MacroAssemblerCodePtr());3407 MacroAssemblerCodePtr JITThunks::ctiStub(JSGlobalData* globalData, ThunkGenerator generator) 3408 { 3409 std::pair<CTIStubMap::iterator, bool> entry = m_ctiStubMap.add(generator, MacroAssemblerCodePtr()); 3410 3410 if (entry.second) 3411 3411 entry.first->second = generator(globalData, m_executablePool.get()); … … 3413 3413 } 3414 3414 3415 PassRefPtr<NativeExecutable> JITThunks::hostFunctionStub(JSGlobalData* globalData, NativeFunction function) 3416 { 3417 std::pair<HostFunctionStubMap::iterator, bool> entry = m_hostFunctionStubMap.add(function, 0); 3418 if (entry.second) 3419 entry.first->second = NativeExecutable::create(JIT::compileCTINativeCall(globalData, m_executablePool, function), function); 3420 return entry.first->second; 3421 } 3422 3423 PassRefPtr<NativeExecutable> JITThunks::hostFunctionStub(JSGlobalData* globalData, NativeFunction function, ThunkGenerator generator) 3424 { 3425 std::pair<HostFunctionStubMap::iterator, bool> entry = m_hostFunctionStubMap.add(function, 0); 3426 if (entry.second) 3427 entry.first->second = NativeExecutable::create(generator(globalData, m_executablePool.get()), function); 3428 return entry.first->second; 3429 } 3430 3415 3431 } // namespace JSC 3416 3432
Note:
See TracChangeset
for help on using the changeset viewer.