// Used only by the GlobalObject, because it's typeHandler can't be fully initialized // with the globalobject which is currently being created. RecyclableObject::RecyclableObject(DynamicType * type, ScriptContext * scriptContext) : type(type) { #if DBG_EXTRAFIELD dtorCalled = false; #ifdef HEAP_ENUMERATION_VALIDATION m_heapEnumValidationCookie = 0; #endif #endif Assert(type->GetTypeId() == TypeIds_GlobalObject); RecordAllocation(scriptContext); }
RecyclableObject::RecyclableObject(Type * type) : type(type) { #if DBG_EXTRAFIELD dtorCalled = false; #ifdef HEAP_ENUMERATION_VALIDATION m_heapEnumValidationCookie = 0; #endif #endif #if DBG || defined(PROFILE_TYPES) RecordAllocation(type->GetScriptContext()); #endif }
RecyclableObject::RecyclableObject(Type * type) : type(type) { #if DBG_EXTRAFIELD dtorCalled = false; #ifdef HEAP_ENUMERATION_VALIDATION m_heapEnumValidationCookie = 0; #endif #endif #if DBG || defined(PROFILE_TYPES) #if ENABLE_NATIVE_CODEGEN if (!JITManager::GetJITManager()->IsOOPJITEnabled()) #endif { RecordAllocation(type->GetScriptContext()); } #endif }