Example #1
0
JSC::JSValue createWrapper(JSDOMGlobalObject& globalObject, NodeList& nodeList)
{
    // FIXME: Adopt reportExtraMemoryVisited, and switch to reportExtraMemoryAllocated.
    // https://bugs.webkit.org/show_bug.cgi?id=142595
    globalObject.vm().heap.deprecatedReportExtraMemory(nodeList.memoryCost());
    return createNewWrapper<JSNodeList>(&globalObject, &nodeList);
}
JSC::JSValue createWrapper(JSDOMGlobalObject& globalObject, NodeList& nodeList)
{
    globalObject.vm().heap.reportExtraMemoryCost(nodeList.memoryCost());
    return createNewWrapper<JSNodeList>(&globalObject, &nodeList);
}