src/third_party/mozjs/extract/js/src/devtools/rootAnalysis/annotations.js
// to get overridden with something that can GC.
to get overridden with something that can GC.
to get overridden with something that can GC .
function isOverridableField(staticCSU, csu, field)
{
    if (csu != 'nsISupports')
        return false;
    if (field == 'GetCurrentJSContext')
        return false;
    if (field == 'IsOnCurrentThread')
        return false;
    if (field == 'GetNativeContext')
        return false;
    if (field == "GetGlobalJSObject")
        return false;
    if (field == "GetGlobalJSObjectPreserveColor")
        return false;
    if (field == "GetIsMainThread")
        return false;
    if (field == "GetThreadFromPRThread")
        return false;
    if (field == "DocAddSizeOfIncludingThis")
        return false;
    if (field == "ConstructUbiNode")
        return false;
    if (field == "GetSiteOrigin")
        return false;
    if (field == "GetDomain")
        return false;
    if (field == "GetBaseDomain")
        return false;
    if (field == "GetOriginNoSuffix")
        return false;
    if (field == "GetScheme")
        return false;
    if (field == "GetAsciiHostPort")
        return false;
    if (field == "GetAsciiSpec")
        return false;
    if (field == "SchemeIs")
        return false;
    if (staticCSU == 'nsIXPCScriptable' && field == "GetScriptableFlags")
        return false;
    if (staticCSU == 'nsIXPConnectJSObjectHolder' && field == 'GetJSObject')
        return false;
    if (staticCSU == 'nsIXPConnect' && field == 'GetSafeJSContext')
        return false;
    if (staticCSU == 'nsIScriptSecurityManager' && field == 'IsSystemPrincipal')
        return false;
    if (staticCSU == 'nsIScriptContext') {
        if (field == 'GetWindowProxy' || field == 'GetWindowProxyPreserveColor')
            return false;
    }
    return true;
}
function isOverridableField ( staticCSU , csu , field ) { if ( csu != 'nsISupports' ) return false ; if ( field == 'GetCurrentJSContext' ) return false ; if ( field == 'IsOnCurrentThread' ) return false ; if ( field == 'GetNativeContext' ) return false ; if ( field == "GetGlobalJSObject" ) return false ; if ( field == "GetGlobalJSObjectPreserveColor" ) return false ; if ( field == "GetIsMainThread" ) return false ; if ( field == "GetThreadFromPRThread" ) return false ; if ( field == "DocAddSizeOfIncludingThis" ) return false ; if ( field == "ConstructUbiNode" ) return false ; if ( field == "GetSiteOrigin" ) return false ; if ( field == "GetDomain" ) return false ; if ( field == "GetBaseDomain" ) return false ; if ( field == "GetOriginNoSuffix" ) return false ; if ( field == "GetScheme" ) return false ; if ( field == "GetAsciiHostPort" ) return false ; if ( field == "GetAsciiSpec" ) return false ; if ( field == "SchemeIs" ) return false ; if ( staticCSU == 'nsIXPCScriptable' && field == "GetScriptableFlags" ) return false ; if ( staticCSU == 'nsIXPConnectJSObjectHolder' && field == 'GetJSObject' ) return false ; if ( staticCSU == 'nsIXPConnect' && field == 'GetSafeJSContext' ) return false ; if ( staticCSU == 'nsIScriptSecurityManager' && field == 'IsSystemPrincipal' ) return false ; if ( staticCSU == 'nsIScriptContext' ) { if ( field == 'GetWindowProxy' || field == 'GetWindowProxyPreserveColor' ) return false ; } return true ; }
to get overridden with something that can GC.
to get overridden with something that can GC .
// Now that binary XPCOM is dead, all these annotations should be replaced // with something based on bug 1347999. // Fields on the [builtinclass] nsIPrincipal // Fields on nsIURI // nsIScriptSecurityManager is not [builtinclass], but smaug says "the // interface definitely should be builtinclass", which is good enough.