comparison src/share/vm/graal/graalCompilerToVM.cpp @ 5537:80371cc2256d

Renaming RiCompiledMethod => InstalledCode.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Fri, 08 Jun 2012 23:35:16 +0200
parents 9da759562a42
children e18ba36bfebc
comparison
equal deleted inserted replaced
5536:1c4af0e7517f 5537:80371cc2256d
895 memcpy(codeCopy->base(T_BYTE), nm->code_begin(), nm->code_size()); 895 memcpy(codeCopy->base(T_BYTE), nm->code_begin(), nm->code_size());
896 HotSpotCodeInfo::set_code(info, codeCopy); 896 HotSpotCodeInfo::set_code(info, codeCopy);
897 HotSpotCodeInfo::set_start(info, (jlong) nm->code_begin()); 897 HotSpotCodeInfo::set_start(info, (jlong) nm->code_begin());
898 } 898 }
899 899
900 // if install_code is true then we installed the code into the given method, no need to return an RiCompiledMethod 900 // if install_code is true then we installed the code into the given method, no need to return an InstalledCode
901 if (!install_code && nm != NULL) { 901 if (!install_code && nm != NULL) {
902 instanceKlass::cast(HotSpotCompiledMethod::klass())->initialize(CHECK_NULL); 902 instanceKlass::cast(HotSpotCompiledMethod::klass())->initialize(CHECK_NULL);
903 Handle obj = instanceKlass::cast(HotSpotCompiledMethod::klass())->allocate_permanent_instance(CHECK_NULL); 903 Handle obj = instanceKlass::cast(HotSpotCompiledMethod::klass())->allocate_permanent_instance(CHECK_NULL);
904 assert(obj() != NULL, "must succeed in allocating instance"); 904 assert(obj() != NULL, "must succeed in allocating instance");
905 HotSpotCompiledMethod::set_nmethod(obj, (jlong) nm); 905 HotSpotCompiledMethod::set_nmethod(obj, (jlong) nm);