浏览代码

nullptr initialize oopjit maps

Michael Holman 9 年之前
父节点
当前提交
14bf09e1c7

+ 1 - 0
lib/Backend/ServerScriptContext.cpp

@@ -9,6 +9,7 @@ ServerScriptContext::ServerScriptContext(ScriptContextDataIDL * contextData) :
     m_contextData(*contextData),
     m_isPRNGSeeded(false),
     m_isClosed(false),
+    m_domFastPathHelperMap(nullptr),
     m_moduleRecords(&HeapAllocator::Instance),
 #ifdef PROFILE_EXEC
     m_codeGenProfiler(nullptr),

+ 1 - 0
lib/Backend/ServerThreadContext.cpp

@@ -8,6 +8,7 @@
 ServerThreadContext::ServerThreadContext(ThreadContextDataIDL * data) :
     m_threadContextData(*data),
     m_policyManager(true),
+    m_propertyMap(nullptr),
     m_pageAllocs(&HeapAllocator::Instance),
     m_preReservedVirtualAllocator((HANDLE)data->processHandle),
     m_codePageAllocators(&m_policyManager, ALLOC_XDATA, &m_preReservedVirtualAllocator, (HANDLE)data->processHandle),

+ 3 - 0
lib/Runtime/Base/FunctionBody.h

@@ -646,6 +646,9 @@ namespace Js
             equivalentTypeCacheCount(0), equivalentTypeCaches(nullptr), constructorCaches(nullptr), state(NotScheduled), inProcJITNaticeCodedata(nullptr),
             numberChunks(nullptr), numberPageSegments(nullptr), polymorphicInlineCacheInfo(nullptr), runtimeTypeRefs(nullptr),
             isLoopBody(isLoopBody), hasJittedStackClosure(false), registeredEquivalentTypeCacheRef(nullptr), bailoutRecordMap(nullptr),
+#if _M_AMD64 || _M_ARM32_OR_ARM64
+            xdataInfo(nullptr),
+#endif
 #endif
             library(library), codeSize(0), nativeAddress(nullptr), isAsmJsFunction(false), validationCookie(validationCookie)
 #if ENABLE_DEBUG_STACK_BACK_TRACE

+ 1 - 0
lib/Runtime/Base/ScriptContext.cpp

@@ -66,6 +66,7 @@ namespace Js
 #endif
 #if ENABLE_NATIVE_CODEGEN
         nativeCodeGen(nullptr),
+        m_domFastPathHelperMap(nullptr),
 #endif
         threadContext(threadContext),
         scriptStartEventHandler(nullptr),