Esempio n. 1
0
void QualifiedName::deref()
{
#ifdef QNAME_DEFAULT_CONSTRUCTOR
    if (!m_impl)
        return;
#endif
    ASSERT(!isHashTableDeletedValue());
    m_impl->deref();
}
bool CustomFilterProgramInfo::operator==(const CustomFilterProgramInfo& o) const 
{
    ASSERT(!isHashTableDeletedValue());
    ASSERT(!o.isHashTableDeletedValue());

    return m_programType == o.m_programType
        && (m_programType != PROGRAM_TYPE_BLENDS_ELEMENT_TEXTURE || m_mixSettings == o.m_mixSettings)
        && m_meshType == o.m_meshType
        && m_vertexShaderString == o.m_vertexShaderString
        && m_fragmentShaderString == o.m_fragmentShaderString;
}
Esempio n. 3
0
void QualifiedName::deref()
{
#ifdef QNAME_DEFAULT_CONSTRUCTOR
    if (!m_impl)
        return;
#endif
    ASSERT(!isHashTableDeletedValue());

    if (m_impl->hasOneRef())
        gNameCache->remove(m_impl);
    m_impl->deref();
}
Esempio n. 4
0
unsigned CodeOrigin::approximateHash() const
{
    if (!isSet())
        return 0;
    if (isHashTableDeletedValue())
        return 1;
    
    unsigned result = 2;
    CodeOrigin codeOrigin = *this;
    for (;;) {
        result += codeOrigin.bytecodeIndex;
        
        if (!codeOrigin.inlineCallFrame)
            return result;
        
        result += WTF::PtrHash<JSCell*>::hash(codeOrigin.inlineCallFrame->executable.get());
        
        codeOrigin = codeOrigin.inlineCallFrame->caller;
    }
}