Ejemplo n.º 1
0
SymbolTable::SymbolTable(VM& vm)
    : JSCell(vm, vm.symbolTableStructure.get())
    , m_parameterCountIncludingThis(0)
    , m_usesNonStrictEval(false)
    , m_captureStart(0)
    , m_captureEnd(0)
    , m_functionEnteredOnce(ClearWatchpoint)
{
    if (vm.isProfilingTypesWithHighFidelity()) {
        m_uniqueIDMap = std::make_unique<UniqueIDMap>();
        m_registerToVariableMap = std::make_unique<RegisterToVariableMap>();
        m_uniqueTypeSetMap = std::make_unique<UniqueTypeSetMap>();
    }
}