LLVM API Documentation

MCJIT.cpp
Go to the documentation of this file.
00001 //===-- MCJIT.cpp - MC-based Just-in-Time Compiler ------------------------===//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 
00010 #include "MCJIT.h"
00011 #include "llvm/ExecutionEngine/GenericValue.h"
00012 #include "llvm/ExecutionEngine/JITEventListener.h"
00013 #include "llvm/ExecutionEngine/JITMemoryManager.h"
00014 #include "llvm/ExecutionEngine/MCJIT.h"
00015 #include "llvm/ExecutionEngine/ObjectBuffer.h"
00016 #include "llvm/ExecutionEngine/ObjectImage.h"
00017 #include "llvm/ExecutionEngine/SectionMemoryManager.h"
00018 #include "llvm/IR/DataLayout.h"
00019 #include "llvm/IR/DerivedTypes.h"
00020 #include "llvm/IR/Function.h"
00021 #include "llvm/IR/Mangler.h"
00022 #include "llvm/IR/Module.h"
00023 #include "llvm/MC/MCAsmInfo.h"
00024 #include "llvm/Object/Archive.h"
00025 #include "llvm/PassManager.h"
00026 #include "llvm/Support/DynamicLibrary.h"
00027 #include "llvm/Support/ErrorHandling.h"
00028 #include "llvm/Support/MemoryBuffer.h"
00029 #include "llvm/Support/MutexGuard.h"
00030 #include "llvm/Target/TargetLowering.h"
00031 
00032 using namespace llvm;
00033 
00034 namespace {
00035 
00036 static struct RegisterJIT {
00037   RegisterJIT() { MCJIT::Register(); }
00038 } JITRegistrator;
00039 
00040 }
00041 
00042 extern "C" void LLVMLinkInMCJIT() {
00043 }
00044 
00045 ExecutionEngine *MCJIT::createJIT(Module *M,
00046                                   std::string *ErrorStr,
00047                                   RTDyldMemoryManager *MemMgr,
00048                                   bool GVsWithCode,
00049                                   TargetMachine *TM) {
00050   // Try to register the program as a source of symbols to resolve against.
00051   //
00052   // FIXME: Don't do this here.
00053   sys::DynamicLibrary::LoadLibraryPermanently(0, NULL);
00054 
00055   return new MCJIT(M, TM, MemMgr ? MemMgr : new SectionMemoryManager(),
00056                    GVsWithCode);
00057 }
00058 
00059 MCJIT::MCJIT(Module *m, TargetMachine *tm, RTDyldMemoryManager *MM,
00060              bool AllocateGVsWithCode)
00061   : ExecutionEngine(m), TM(tm), Ctx(0), MemMgr(this, MM), Dyld(&MemMgr),
00062     ObjCache(0) {
00063 
00064   OwnedModules.addModule(m);
00065   setDataLayout(TM->getDataLayout());
00066 }
00067 
00068 MCJIT::~MCJIT() {
00069   MutexGuard locked(lock);
00070   // FIXME: We are managing our modules, so we do not want the base class
00071   // ExecutionEngine to manage them as well. To avoid double destruction
00072   // of the first (and only) module added in ExecutionEngine constructor
00073   // we remove it from EE and will destruct it ourselves.
00074   //
00075   // It may make sense to move our module manager (based on SmallStPtr) back
00076   // into EE if the JIT and Interpreter can live with it.
00077   // If so, additional functions: addModule, removeModule, FindFunctionNamed,
00078   // runStaticConstructorsDestructors could be moved back to EE as well.
00079   //
00080   Modules.clear();
00081   Dyld.deregisterEHFrames();
00082 
00083   LoadedObjectList::iterator it, end;
00084   for (it = LoadedObjects.begin(), end = LoadedObjects.end(); it != end; ++it) {
00085     ObjectImage *Obj = *it;
00086     if (Obj) {
00087       NotifyFreeingObject(*Obj);
00088       delete Obj;
00089     }
00090   }
00091   LoadedObjects.clear();
00092 
00093 
00094   SmallVector<object::Archive *, 2>::iterator ArIt, ArEnd;
00095   for (ArIt = Archives.begin(), ArEnd = Archives.end(); ArIt != ArEnd; ++ArIt) {
00096     object::Archive *A = *ArIt;
00097     delete A;
00098   }
00099   Archives.clear();
00100 
00101   delete TM;
00102 }
00103 
00104 void MCJIT::addModule(Module *M) {
00105   MutexGuard locked(lock);
00106   OwnedModules.addModule(M);
00107 }
00108 
00109 bool MCJIT::removeModule(Module *M) {
00110   MutexGuard locked(lock);
00111   return OwnedModules.removeModule(M);
00112 }
00113 
00114 
00115 
00116 void MCJIT::addObjectFile(object::ObjectFile *Obj) {
00117   ObjectImage *LoadedObject = Dyld.loadObject(Obj);
00118   if (!LoadedObject || Dyld.hasError())
00119     report_fatal_error(Dyld.getErrorString());
00120 
00121   LoadedObjects.push_back(LoadedObject);
00122 
00123   NotifyObjectEmitted(*LoadedObject);
00124 }
00125 
00126 void MCJIT::addArchive(object::Archive *A) {
00127   Archives.push_back(A);
00128 }
00129 
00130 
00131 void MCJIT::setObjectCache(ObjectCache* NewCache) {
00132   MutexGuard locked(lock);
00133   ObjCache = NewCache;
00134 }
00135 
00136 ObjectBufferStream* MCJIT::emitObject(Module *M) {
00137   MutexGuard locked(lock);
00138 
00139   // This must be a module which has already been added but not loaded to this
00140   // MCJIT instance, since these conditions are tested by our caller,
00141   // generateCodeForModule.
00142 
00143   PassManager PM;
00144 
00145   M->setDataLayout(TM->getDataLayout());
00146   PM.add(new DataLayoutPass(M));
00147 
00148   // The RuntimeDyld will take ownership of this shortly
00149   std::unique_ptr<ObjectBufferStream> CompiledObject(new ObjectBufferStream());
00150 
00151   // Turn the machine code intermediate representation into bytes in memory
00152   // that may be executed.
00153   if (TM->addPassesToEmitMC(PM, Ctx, CompiledObject->getOStream(),
00154                             !getVerifyModules())) {
00155     report_fatal_error("Target does not support MC emission!");
00156   }
00157 
00158   // Initialize passes.
00159   PM.run(*M);
00160   // Flush the output buffer to get the generated code into memory
00161   CompiledObject->flush();
00162 
00163   // If we have an object cache, tell it about the new object.
00164   // Note that we're using the compiled image, not the loaded image (as below).
00165   if (ObjCache) {
00166     // MemoryBuffer is a thin wrapper around the actual memory, so it's OK
00167     // to create a temporary object here and delete it after the call.
00168     std::unique_ptr<MemoryBuffer> MB(CompiledObject->getMemBuffer());
00169     ObjCache->notifyObjectCompiled(M, MB.get());
00170   }
00171 
00172   return CompiledObject.release();
00173 }
00174 
00175 void MCJIT::generateCodeForModule(Module *M) {
00176   // Get a thread lock to make sure we aren't trying to load multiple times
00177   MutexGuard locked(lock);
00178 
00179   // This must be a module which has already been added to this MCJIT instance.
00180   assert(OwnedModules.ownsModule(M) &&
00181          "MCJIT::generateCodeForModule: Unknown module.");
00182 
00183   // Re-compilation is not supported
00184   if (OwnedModules.hasModuleBeenLoaded(M))
00185     return;
00186 
00187   std::unique_ptr<ObjectBuffer> ObjectToLoad;
00188   // Try to load the pre-compiled object from cache if possible
00189   if (0 != ObjCache) {
00190     std::unique_ptr<MemoryBuffer> PreCompiledObject(ObjCache->getObject(M));
00191     if (0 != PreCompiledObject.get())
00192       ObjectToLoad.reset(new ObjectBuffer(PreCompiledObject.release()));
00193   }
00194 
00195   // If the cache did not contain a suitable object, compile the object
00196   if (!ObjectToLoad) {
00197     ObjectToLoad.reset(emitObject(M));
00198     assert(ObjectToLoad.get() && "Compilation did not produce an object.");
00199   }
00200 
00201   // Load the object into the dynamic linker.
00202   // MCJIT now owns the ObjectImage pointer (via its LoadedObjects list).
00203   ObjectImage *LoadedObject = Dyld.loadObject(ObjectToLoad.release());
00204   LoadedObjects.push_back(LoadedObject);
00205   if (!LoadedObject)
00206     report_fatal_error(Dyld.getErrorString());
00207 
00208   // FIXME: Make this optional, maybe even move it to a JIT event listener
00209   LoadedObject->registerWithDebugger();
00210 
00211   NotifyObjectEmitted(*LoadedObject);
00212 
00213   OwnedModules.markModuleAsLoaded(M);
00214 }
00215 
00216 void MCJIT::finalizeLoadedModules() {
00217   MutexGuard locked(lock);
00218 
00219   // Resolve any outstanding relocations.
00220   Dyld.resolveRelocations();
00221 
00222   OwnedModules.markAllLoadedModulesAsFinalized();
00223 
00224   // Register EH frame data for any module we own which has been loaded
00225   Dyld.registerEHFrames();
00226 
00227   // Set page permissions.
00228   MemMgr.finalizeMemory();
00229 }
00230 
00231 // FIXME: Rename this.
00232 void MCJIT::finalizeObject() {
00233   MutexGuard locked(lock);
00234 
00235   for (ModulePtrSet::iterator I = OwnedModules.begin_added(),
00236                               E = OwnedModules.end_added();
00237        I != E; ++I) {
00238     Module *M = *I;
00239     generateCodeForModule(M);
00240   }
00241 
00242   finalizeLoadedModules();
00243 }
00244 
00245 void MCJIT::finalizeModule(Module *M) {
00246   MutexGuard locked(lock);
00247 
00248   // This must be a module which has already been added to this MCJIT instance.
00249   assert(OwnedModules.ownsModule(M) && "MCJIT::finalizeModule: Unknown module.");
00250 
00251   // If the module hasn't been compiled, just do that.
00252   if (!OwnedModules.hasModuleBeenLoaded(M))
00253     generateCodeForModule(M);
00254 
00255   finalizeLoadedModules();
00256 }
00257 
00258 void *MCJIT::getPointerToBasicBlock(BasicBlock *BB) {
00259   report_fatal_error("not yet implemented");
00260 }
00261 
00262 uint64_t MCJIT::getExistingSymbolAddress(const std::string &Name) {
00263   Mangler Mang(TM->getDataLayout());
00264   SmallString<128> FullName;
00265   Mang.getNameWithPrefix(FullName, Name);
00266   return Dyld.getSymbolLoadAddress(FullName);
00267 }
00268 
00269 Module *MCJIT::findModuleForSymbol(const std::string &Name,
00270                                    bool CheckFunctionsOnly) {
00271   MutexGuard locked(lock);
00272 
00273   // If it hasn't already been generated, see if it's in one of our modules.
00274   for (ModulePtrSet::iterator I = OwnedModules.begin_added(),
00275                               E = OwnedModules.end_added();
00276        I != E; ++I) {
00277     Module *M = *I;
00278     Function *F = M->getFunction(Name);
00279     if (F && !F->isDeclaration())
00280       return M;
00281     if (!CheckFunctionsOnly) {
00282       GlobalVariable *G = M->getGlobalVariable(Name);
00283       if (G && !G->isDeclaration())
00284         return M;
00285       // FIXME: Do we need to worry about global aliases?
00286     }
00287   }
00288   // We didn't find the symbol in any of our modules.
00289   return NULL;
00290 }
00291 
00292 uint64_t MCJIT::getSymbolAddress(const std::string &Name,
00293                                  bool CheckFunctionsOnly)
00294 {
00295   MutexGuard locked(lock);
00296 
00297   // First, check to see if we already have this symbol.
00298   uint64_t Addr = getExistingSymbolAddress(Name);
00299   if (Addr)
00300     return Addr;
00301 
00302   SmallVector<object::Archive*, 2>::iterator I, E;
00303   for (I = Archives.begin(), E = Archives.end(); I != E; ++I) {
00304     object::Archive *A = *I;
00305     // Look for our symbols in each Archive
00306     object::Archive::child_iterator ChildIt = A->findSym(Name);
00307     if (ChildIt != A->child_end()) {
00308       std::unique_ptr<object::Binary> ChildBin;
00309       // FIXME: Support nested archives?
00310       if (!ChildIt->getAsBinary(ChildBin) && ChildBin->isObject()) {
00311         object::ObjectFile *OF = reinterpret_cast<object::ObjectFile *>(
00312                                                             ChildBin.release());
00313         // This causes the object file to be loaded.
00314         addObjectFile(OF);
00315         // The address should be here now.
00316         Addr = getExistingSymbolAddress(Name);
00317         if (Addr)
00318           return Addr;
00319       }
00320     }
00321   }
00322 
00323   // If it hasn't already been generated, see if it's in one of our modules.
00324   Module *M = findModuleForSymbol(Name, CheckFunctionsOnly);
00325   if (!M)
00326     return 0;
00327 
00328   generateCodeForModule(M);
00329 
00330   // Check the RuntimeDyld table again, it should be there now.
00331   return getExistingSymbolAddress(Name);
00332 }
00333 
00334 uint64_t MCJIT::getGlobalValueAddress(const std::string &Name) {
00335   MutexGuard locked(lock);
00336   uint64_t Result = getSymbolAddress(Name, false);
00337   if (Result != 0)
00338     finalizeLoadedModules();
00339   return Result;
00340 }
00341 
00342 uint64_t MCJIT::getFunctionAddress(const std::string &Name) {
00343   MutexGuard locked(lock);
00344   uint64_t Result = getSymbolAddress(Name, true);
00345   if (Result != 0)
00346     finalizeLoadedModules();
00347   return Result;
00348 }
00349 
00350 // Deprecated.  Use getFunctionAddress instead.
00351 void *MCJIT::getPointerToFunction(Function *F) {
00352   MutexGuard locked(lock);
00353 
00354   if (F->isDeclaration() || F->hasAvailableExternallyLinkage()) {
00355     bool AbortOnFailure = !F->hasExternalWeakLinkage();
00356     void *Addr = getPointerToNamedFunction(F->getName(), AbortOnFailure);
00357     addGlobalMapping(F, Addr);
00358     return Addr;
00359   }
00360 
00361   Module *M = F->getParent();
00362   bool HasBeenAddedButNotLoaded = OwnedModules.hasModuleBeenAddedButNotLoaded(M);
00363 
00364   // Make sure the relevant module has been compiled and loaded.
00365   if (HasBeenAddedButNotLoaded)
00366     generateCodeForModule(M);
00367   else if (!OwnedModules.hasModuleBeenLoaded(M))
00368     // If this function doesn't belong to one of our modules, we're done.
00369     return NULL;
00370 
00371   // FIXME: Should the Dyld be retaining module information? Probably not.
00372   //
00373   // This is the accessor for the target address, so make sure to check the
00374   // load address of the symbol, not the local address.
00375   Mangler Mang(TM->getDataLayout());
00376   SmallString<128> Name;
00377   TM->getNameWithPrefix(Name, F, Mang);
00378   return (void*)Dyld.getSymbolLoadAddress(Name);
00379 }
00380 
00381 void *MCJIT::recompileAndRelinkFunction(Function *F) {
00382   report_fatal_error("not yet implemented");
00383 }
00384 
00385 void MCJIT::freeMachineCodeForFunction(Function *F) {
00386   report_fatal_error("not yet implemented");
00387 }
00388 
00389 void MCJIT::runStaticConstructorsDestructorsInModulePtrSet(
00390     bool isDtors, ModulePtrSet::iterator I, ModulePtrSet::iterator E) {
00391   for (; I != E; ++I) {
00392     ExecutionEngine::runStaticConstructorsDestructors(*I, isDtors);
00393   }
00394 }
00395 
00396 void MCJIT::runStaticConstructorsDestructors(bool isDtors) {
00397   // Execute global ctors/dtors for each module in the program.
00398   runStaticConstructorsDestructorsInModulePtrSet(
00399       isDtors, OwnedModules.begin_added(), OwnedModules.end_added());
00400   runStaticConstructorsDestructorsInModulePtrSet(
00401       isDtors, OwnedModules.begin_loaded(), OwnedModules.end_loaded());
00402   runStaticConstructorsDestructorsInModulePtrSet(
00403       isDtors, OwnedModules.begin_finalized(), OwnedModules.end_finalized());
00404 }
00405 
00406 Function *MCJIT::FindFunctionNamedInModulePtrSet(const char *FnName,
00407                                                  ModulePtrSet::iterator I,
00408                                                  ModulePtrSet::iterator E) {
00409   for (; I != E; ++I) {
00410     if (Function *F = (*I)->getFunction(FnName))
00411       return F;
00412   }
00413   return 0;
00414 }
00415 
00416 Function *MCJIT::FindFunctionNamed(const char *FnName) {
00417   Function *F = FindFunctionNamedInModulePtrSet(
00418       FnName, OwnedModules.begin_added(), OwnedModules.end_added());
00419   if (!F)
00420     F = FindFunctionNamedInModulePtrSet(FnName, OwnedModules.begin_loaded(),
00421                                         OwnedModules.end_loaded());
00422   if (!F)
00423     F = FindFunctionNamedInModulePtrSet(FnName, OwnedModules.begin_finalized(),
00424                                         OwnedModules.end_finalized());
00425   return F;
00426 }
00427 
00428 GenericValue MCJIT::runFunction(Function *F,
00429                                 const std::vector<GenericValue> &ArgValues) {
00430   assert(F && "Function *F was null at entry to run()");
00431 
00432   void *FPtr = getPointerToFunction(F);
00433   assert(FPtr && "Pointer to fn's code was null after getPointerToFunction");
00434   FunctionType *FTy = F->getFunctionType();
00435   Type *RetTy = FTy->getReturnType();
00436 
00437   assert((FTy->getNumParams() == ArgValues.size() ||
00438           (FTy->isVarArg() && FTy->getNumParams() <= ArgValues.size())) &&
00439          "Wrong number of arguments passed into function!");
00440   assert(FTy->getNumParams() == ArgValues.size() &&
00441          "This doesn't support passing arguments through varargs (yet)!");
00442 
00443   // Handle some common cases first.  These cases correspond to common `main'
00444   // prototypes.
00445   if (RetTy->isIntegerTy(32) || RetTy->isVoidTy()) {
00446     switch (ArgValues.size()) {
00447     case 3:
00448       if (FTy->getParamType(0)->isIntegerTy(32) &&
00449           FTy->getParamType(1)->isPointerTy() &&
00450           FTy->getParamType(2)->isPointerTy()) {
00451         int (*PF)(int, char **, const char **) =
00452           (int(*)(int, char **, const char **))(intptr_t)FPtr;
00453 
00454         // Call the function.
00455         GenericValue rv;
00456         rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue(),
00457                                  (char **)GVTOP(ArgValues[1]),
00458                                  (const char **)GVTOP(ArgValues[2])));
00459         return rv;
00460       }
00461       break;
00462     case 2:
00463       if (FTy->getParamType(0)->isIntegerTy(32) &&
00464           FTy->getParamType(1)->isPointerTy()) {
00465         int (*PF)(int, char **) = (int(*)(int, char **))(intptr_t)FPtr;
00466 
00467         // Call the function.
00468         GenericValue rv;
00469         rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue(),
00470                                  (char **)GVTOP(ArgValues[1])));
00471         return rv;
00472       }
00473       break;
00474     case 1:
00475       if (FTy->getNumParams() == 1 &&
00476           FTy->getParamType(0)->isIntegerTy(32)) {
00477         GenericValue rv;
00478         int (*PF)(int) = (int(*)(int))(intptr_t)FPtr;
00479         rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue()));
00480         return rv;
00481       }
00482       break;
00483     }
00484   }
00485 
00486   // Handle cases where no arguments are passed first.
00487   if (ArgValues.empty()) {
00488     GenericValue rv;
00489     switch (RetTy->getTypeID()) {
00490     default: llvm_unreachable("Unknown return type for function call!");
00491     case Type::IntegerTyID: {
00492       unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth();
00493       if (BitWidth == 1)
00494         rv.IntVal = APInt(BitWidth, ((bool(*)())(intptr_t)FPtr)());
00495       else if (BitWidth <= 8)
00496         rv.IntVal = APInt(BitWidth, ((char(*)())(intptr_t)FPtr)());
00497       else if (BitWidth <= 16)
00498         rv.IntVal = APInt(BitWidth, ((short(*)())(intptr_t)FPtr)());
00499       else if (BitWidth <= 32)
00500         rv.IntVal = APInt(BitWidth, ((int(*)())(intptr_t)FPtr)());
00501       else if (BitWidth <= 64)
00502         rv.IntVal = APInt(BitWidth, ((int64_t(*)())(intptr_t)FPtr)());
00503       else
00504         llvm_unreachable("Integer types > 64 bits not supported");
00505       return rv;
00506     }
00507     case Type::VoidTyID:
00508       rv.IntVal = APInt(32, ((int(*)())(intptr_t)FPtr)());
00509       return rv;
00510     case Type::FloatTyID:
00511       rv.FloatVal = ((float(*)())(intptr_t)FPtr)();
00512       return rv;
00513     case Type::DoubleTyID:
00514       rv.DoubleVal = ((double(*)())(intptr_t)FPtr)();
00515       return rv;
00516     case Type::X86_FP80TyID:
00517     case Type::FP128TyID:
00518     case Type::PPC_FP128TyID:
00519       llvm_unreachable("long double not supported yet");
00520     case Type::PointerTyID:
00521       return PTOGV(((void*(*)())(intptr_t)FPtr)());
00522     }
00523   }
00524 
00525   llvm_unreachable("Full-featured argument passing not supported yet!");
00526 }
00527 
00528 void *MCJIT::getPointerToNamedFunction(const std::string &Name,
00529                                        bool AbortOnFailure) {
00530   if (!isSymbolSearchingDisabled()) {
00531     void *ptr = MemMgr.getPointerToNamedFunction(Name, false);
00532     if (ptr)
00533       return ptr;
00534   }
00535 
00536   /// If a LazyFunctionCreator is installed, use it to get/create the function.
00537   if (LazyFunctionCreator)
00538     if (void *RP = LazyFunctionCreator(Name))
00539       return RP;
00540 
00541   if (AbortOnFailure) {
00542     report_fatal_error("Program used external function '"+Name+
00543                        "' which could not be resolved!");
00544   }
00545   return 0;
00546 }
00547 
00548 void MCJIT::RegisterJITEventListener(JITEventListener *L) {
00549   if (L == NULL)
00550     return;
00551   MutexGuard locked(lock);
00552   EventListeners.push_back(L);
00553 }
00554 void MCJIT::UnregisterJITEventListener(JITEventListener *L) {
00555   if (L == NULL)
00556     return;
00557   MutexGuard locked(lock);
00558   SmallVector<JITEventListener*, 2>::reverse_iterator I=
00559       std::find(EventListeners.rbegin(), EventListeners.rend(), L);
00560   if (I != EventListeners.rend()) {
00561     std::swap(*I, EventListeners.back());
00562     EventListeners.pop_back();
00563   }
00564 }
00565 void MCJIT::NotifyObjectEmitted(const ObjectImage& Obj) {
00566   MutexGuard locked(lock);
00567   MemMgr.notifyObjectLoaded(this, &Obj);
00568   for (unsigned I = 0, S = EventListeners.size(); I < S; ++I) {
00569     EventListeners[I]->NotifyObjectEmitted(Obj);
00570   }
00571 }
00572 void MCJIT::NotifyFreeingObject(const ObjectImage& Obj) {
00573   MutexGuard locked(lock);
00574   for (unsigned I = 0, S = EventListeners.size(); I < S; ++I) {
00575     EventListeners[I]->NotifyFreeingObject(Obj);
00576   }
00577 }
00578 
00579 uint64_t LinkingMemoryManager::getSymbolAddress(const std::string &Name) {
00580   uint64_t Result = ParentEngine->getSymbolAddress(Name, false);
00581   // If the symbols wasn't found and it begins with an underscore, try again
00582   // without the underscore.
00583   if (!Result && Name[0] == '_')
00584     Result = ParentEngine->getSymbolAddress(Name.substr(1), false);
00585   if (Result)
00586     return Result;
00587   return ClientMM->getSymbolAddress(Name);
00588 }