| 1288 | } |
| 1289 | |
| 1290 | void* ASModule::GetVarPtrCache(const char* name) { |
| 1291 | std::map<void*, void*>::iterator iter = fast_var_ptr_map.find((void*)name); |
| 1292 | if (iter != fast_var_ptr_map.end()) { |
| 1293 | return iter->second; |
| 1294 | } else { |
| 1295 | int index = module_->GetGlobalVarIndexByName(name); |
| 1296 | void* addr = module_->GetAddressOfGlobalVar(index); |
| 1297 | fast_var_ptr_map[(void*)name] = addr; |
| 1298 | return addr; |
| 1299 | } |
| 1300 | } |
| 1301 | |
| 1302 | void ASModule::GetGlobalVars(std::list<VarStorage>& storage, std::list<ScriptObjectInstance>& handle_var_list) { |
| 1303 | int c = module_->GetGlobalVarCount(); |
no test coverage detected