Changeset 197815 in webkit for trunk/Source/JavaScriptCore/jit/JITThunks.cpp
- Timestamp:
- Mar 8, 2016, 4:01:09 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/jit/JITThunks.cpp
r195000 r197815 80 80 { 81 81 auto* nativeExecutable = jsCast<NativeExecutable*>(handle.get().asCell()); 82 weakRemove(*m_hostFunctionStubMap, std::make_ pair(nativeExecutable->function(), nativeExecutable->constructor()), nativeExecutable);82 weakRemove(*m_hostFunctionStubMap, std::make_tuple(nativeExecutable->function(), nativeExecutable->constructor(), nativeExecutable->name()), nativeExecutable); 83 83 } 84 84 … … 87 87 ASSERT(!isCompilationThread()); 88 88 89 if (NativeExecutable* nativeExecutable = m_hostFunctionStubMap->get(std::make_ pair(function, constructor)))89 if (NativeExecutable* nativeExecutable = m_hostFunctionStubMap->get(std::make_tuple(function, constructor, name))) 90 90 return nativeExecutable; 91 91 … … 96 96 adoptRef(new NativeJITCode(MacroAssemblerCodeRef::createSelfManagedCodeRef(ctiNativeConstruct(vm)), JITCode::HostCallThunk)), 97 97 constructor, NoIntrinsic, name); 98 weakAdd(*m_hostFunctionStubMap, std::make_ pair(function, constructor), Weak<NativeExecutable>(nativeExecutable, this));98 weakAdd(*m_hostFunctionStubMap, std::make_tuple(function, constructor, name), Weak<NativeExecutable>(nativeExecutable, this)); 99 99 return nativeExecutable; 100 100 } … … 105 105 ASSERT(vm->canUseJIT()); 106 106 107 if (NativeExecutable* nativeExecutable = m_hostFunctionStubMap->get(std::make_ pair(function, &callHostFunctionAsConstructor)))107 if (NativeExecutable* nativeExecutable = m_hostFunctionStubMap->get(std::make_tuple(function, &callHostFunctionAsConstructor, name))) 108 108 return nativeExecutable; 109 109 … … 118 118 119 119 NativeExecutable* nativeExecutable = NativeExecutable::create(*vm, forCall, function, forConstruct, callHostFunctionAsConstructor, intrinsic, name); 120 weakAdd(*m_hostFunctionStubMap, std::make_ pair(function, &callHostFunctionAsConstructor), Weak<NativeExecutable>(nativeExecutable, this));120 weakAdd(*m_hostFunctionStubMap, std::make_tuple(function, &callHostFunctionAsConstructor, name), Weak<NativeExecutable>(nativeExecutable, this)); 121 121 return nativeExecutable; 122 122 }
Note:
See TracChangeset
for help on using the changeset viewer.