src/hotspot/share/jvmci/jvmciCodeInstaller.cpp
changeset 51078 fc6cfe40e32a
parent 50858 2d3e99a72541
child 52381 7f90bc64b0fc
equal deleted inserted replaced
51077:9baa91bc7567 51078:fc6cfe40e32a
   234 
   234 
   235   vmassert(index + 1 == newCount, "must be last");
   235   vmassert(index + 1 == newCount, "must be last");
   236 
   236 
   237   JVMCIKlassHandle klass(THREAD);
   237   JVMCIKlassHandle klass(THREAD);
   238   oop result = NULL;
   238   oop result = NULL;
       
   239   guarantee(h != NULL,
       
   240             "If DebugInformationRecorder::describe_scope passes NULL oldCount == newCount must hold.");
   239   if (h->is_klass()) {
   241   if (h->is_klass()) {
   240     klass = (Klass*) h;
   242     klass = (Klass*) h;
   241     result = CompilerToVM::get_jvmci_type(klass, CATCH);
   243     result = CompilerToVM::get_jvmci_type(klass, CATCH);
   242   } else if (h->is_method()) {
   244   } else if (h->is_method()) {
   243     Method* method = (Method*) h;
   245     Method* method = (Method*) h;