Exemplo n.º 1
0
    DynamicObject::DynamicObject(DynamicType * type, ScriptContext * scriptContext) :
#if DBG || defined(PROFILE_TYPES)
        RecyclableObject(type, scriptContext),
#else
        RecyclableObject(type),
#endif
        auxSlots(nullptr),
        objectArray(nullptr)
    {
        Assert(!UsesObjectArrayOrFlagsAsFlags());
        InitSlots(this, scriptContext);
    }
Exemplo n.º 2
0
 DynamicObject::DynamicObject(DynamicType * type, const bool initSlots) :
     RecyclableObject(type),
     auxSlots(nullptr),
     objectArray(nullptr)
 {
     Assert(!UsesObjectArrayOrFlagsAsFlags());
     if(initSlots)
     {
         InitSlots(this);
     }
     else
     {
         Assert(type->GetTypeHandler()->GetInlineSlotCapacity() == type->GetTypeHandler()->GetSlotCapacity());
     }
 }
Exemplo n.º 3
0
 void DynamicObject::InitSlots(DynamicObject* instance)
 {
     InitSlots(instance, GetScriptContext());
 }