Lines Matching refs:factory
107 int32_t ScriptInstructionHelper::RegisterAddInstruction(const Uscript::UScriptInstructionFactoryPtr factory,
113 int32_t ret = factory->CreateInstructionInstance(instr, instrName);
152 Uscript::UScriptInstructionFactoryPtr factory = nullptr;
170 factory = pGetInstructionFactory();
171 if (factory == nullptr) {
172 USCRIPT_LOGE("Fail to create instruction factory for %s", instrName.c_str());
177 pReleaseInstructionFactory(factory);
180 return RegisterAddInstruction(factory, instrName);
184 Uscript::UScriptInstructionFactory *factory)
186 if (factory == nullptr) {
187 USCRIPT_LOGE("%s factory is null", instrName.c_str());
193 int32_t ret = factory->CreateInstructionInstance(instr, instrName);