Executable* MethodTableBucket::get_method(STATE) { if(!method()->nil_p()) return as<Executable>(method()); if(method_id()->nil_p()) return nil<Executable>(); CompiledCode* code = CodeDB::load(state, as<String>(method_id())); if(ConstantScope* cs = try_as<ConstantScope>(scope())) { code->scope(state, cs); } else { code->scope(state, nil<ConstantScope>()); } code->serial(state, serial_); method(state, code); return as<Executable>(code); }
jboolean LocationModifier::match(DebuggerEvent *d_event) { if (d_event->clazz_id() == clazz_id() && d_event->method_id() == method_id() && d_event->offset() == offset()) { return true; } return false; }
LPXLOPER EXCEL_EXPORT xlOptionPrice_2( LPXLOPER requested_fielda, LPXLOPER model_ida, LPXLOPER option_ida, LPXLOPER method_ida, double it_1a, double it_2a) { EXCEL_BEGIN; if (XlfExcel::Instance().IsCalledByFuncWiz()) return XlfOper(true); XlfOper requested_fieldb( (requested_fielda)); std::string requested_field( requested_fieldb.AsString("requested_field")); XlfOper model_idb( (model_ida)); std::string model_id( model_idb.AsString("model_id")); XlfOper option_idb( (option_ida)); std::string option_id( option_idb.AsString("option_id")); XlfOper method_idb( (method_ida)); std::string method_id( method_idb.AsString("method_id")); int it_1( static_cast<int>(it_1a)); int it_2( static_cast<int>(it_2a)); CellMatrix result( OptionPrice_2( requested_field, model_id, option_id, method_id, it_1, it_2) ); return XlfOper(result); EXCEL_END }
void DebuggerEvent::write_as_location(PacketOutputStream *out) { jbyte tag_type; if (clazz_id() == 0) { out->write_byte(JDWP_TypeTag_CLASS); } else { JavaClass::Raw jc = JavaDebugger::get_object_by_id(clazz_id()); tag_type = JavaDebugger::get_jdwp_tagtype(&jc); out->write_byte(tag_type); } out->write_int(clazz_id()); out->write_long(method_id()); out->write_long(offset()); }
PyResult DogmaService::Handle_GetOperandsForChar(PyCallArgs &call) { ObjectCachedMethodID method_id(GetName(), "GetOperandsForChar"); if( !m_manager->cache_service->IsCacheLoaded( method_id ) ) { PyRep* res = m_db.GetOperand(); if( res == NULL ) return NULL; m_manager->cache_service->GiveCache( method_id, &res ); } return m_manager->cache_service->MakeObjectCachedMethodCallResult( method_id ); }
void LocationModifier::write(PacketOutputStream *out, jboolean write_tag) { // Through the miracle of virtual functions, the write_xxx() functions // here will go to BufferedPacketOutputStream if necessary jbyte tag_type; if (write_tag) { if (clazz_id() == 0) { out->write_byte(JDWP_TypeTag_CLASS); } else { JavaClass::Raw jc = JavaDebugger::get_object_by_id(clazz_id()); tag_type = JavaDebugger::get_jdwp_tagtype(&jc); out->write_byte(tag_type); } } out->write_int(clazz_id()); out->write_long(method_id()); out->write_long(offset()); }
PyResult CorpBookmarkMgrService::Handle_GetBookmarks(PyCallArgs& call) { ObjectCachedMethodID method_id(GetName(), "GetBookmarks"); if(!m_manager->cache_service->IsCacheLoaded(method_id)) { PyDict *res = m_db.GetBookmarks(call.client->GetCorporationID()); if(res == NULL) return NULL; PyRep* result = NULL; PyTuple *tuple = new PyTuple(2); tuple->items[0] = res; tuple->items[1] = new PyDict(); result = tuple; m_manager->cache_service->GiveCache(method_id, &result); } return(m_manager->cache_service->MakeObjectCachedMethodCallResult(method_id)); }
int YAPCAReduce<eltype>::load_map(std::istream &in) { int header_err = this->read_header(in); if (header_err !=0 && header_err != 312) return header_err; int err_flag = read(in,eigen_vectors); if (err_flag != 0) return err_flag; err_flag = read(in,this->eigen_values); if (err_flag != 0) return err_flag; err_flag = read(in,column_means); if (err_flag != 0) return err_flag; if (!in || in.eof() || eigen_vectors.numel()==0 || column_means.numel()==0) { ya_addwarn(310,10,method_id(),"Improperly formatted map file."); return 310; } return header_err; }
ReturnOop LocationModifier::method() { InstanceClass::Raw clazz = JavaDebugger::get_object_by_id(clazz_id()); Method::Raw method = JavaDebugger::get_method_by_id(&clazz, method_id()); return method; }