Lines Matching defs:instrName
148 for (auto instrName : scriptEnv_->GetInstructionNames()) {
151 int32_t ret = factory->CreateInstructionInstance(instr, instrName);
153 USCRIPT_LOGE("Failed to create instruction for %s", instrName.c_str());
156 helper.AddInstruction(instrName, instr);
158 USCRIPT_LOGE("Failed to add instruction for %s", instrName.c_str());
243 int32_t ScriptManagerImpl::AddInstruction(const std::string &instrName, const UScriptInstructionPtr instruction)
245 USCRIPT_LOGD("AddInstruction instrName: %s ", instrName.c_str());
246 if (scriptInstructions_.find(instrName) != scriptInstructions_.end()) {
247 USCRIPT_LOGW("Instruction: %s exist", instrName.c_str());
251 delete scriptInstructions_[instrName];
253 scriptInstructions_[instrName] = instruction;
282 UScriptInstruction* ScriptManagerImpl::FindInstruction(const std::string &instrName)
284 if (scriptInstructions_.find(instrName) == scriptInstructions_.end()) {
287 return scriptInstructions_[instrName];
290 UScriptEnv* ScriptManagerImpl::GetScriptEnv(const std::string &instrName) const