Lines Matching defs:context
89 UScriptContextPtr context = std::make_shared<UScriptInterpretContext>(true);
90 UScriptStatementResult result = statements_->Execute(*this, context);
91 INTERPRETER_LOGD(*this, context, "statements_ execute result %s ",
117 UScriptValuePtr ScriptInterpreter::ExecuteFunction(UScriptContextPtr context, const std::string &name,
125 return function->Execute(*this, context, params);
131 for (auto context = contextStack_.rbegin(); context != contextStack_.rend(); context++) {
132 UScriptValuePtr variable = (*context)->FindVariable(*this, id);
136 if ((*context)->IsTop()) {
145 for (auto context = contextStack_.rbegin(); context != contextStack_.rend(); context++) {
146 UScriptValuePtr variable = (*context)->FindVariable(*this, id);
148 (*context)->UpdateVariable(*this, id, var);
150 if ((*context)->IsTop()) {
171 UScriptValuePtr ScriptInterpreter::ExecuteNativeFunc(UScriptContextPtr context,
176 INTERPRETER_LOGI(*this, context, "ExecuteNativeFunc::Execute %s ", name.c_str());
185 USCRIPT_LOGE("Fail to create context %s", name.c_str());
195 INTERPRETER_LOGI(*this, context, "ExecuteNativeFunc::Execute %s result: %d", name.c_str(), ret);
200 UScriptValuePtr result = id->Execute(*this, context);
202 INTERPRETER_LOGI(*this, context, "ExecuteNativeFunc::Execute %s ", name.c_str());
217 INTERPRETER_LOGI(*this, context, "ExecuteNativeFunc::Execute %s result: %d", name.c_str(), ret);