< prev index next >

src/hotspot/share/code/scopeDesc.cpp

Print this page




 211       st->print_cr("   Expression stack");
 212       for (int index = 0; index < l->length(); index++) {
 213         st->print("    - @%d: ", index);
 214         l->at(index)->print_on(st);
 215         st->cr();
 216       }
 217     }
 218   }
 219   // monitors
 220   { GrowableArray<MonitorValue*>* l = ((ScopeDesc*) this)->monitors();
 221     if (l != NULL) {
 222       st->print_cr("   Monitor stack");
 223       for (int index = 0; index < l->length(); index++) {
 224         st->print("    - @%d: ", index);
 225         l->at(index)->print_on(st);
 226         st->cr();
 227       }
 228     }
 229   }
 230 
 231 #if defined(COMPILER2) || INCLUDE_JVMCI
 232   if (NOT_JVMCI(DoEscapeAnalysis &&) is_top() && _objects != NULL) {
 233     st->print_cr("   Objects");
 234     for (int i = 0; i < _objects->length(); i++) {
 235       ObjectValue* sv = (ObjectValue*) _objects->at(i);
 236       st->print("    - %d: ", sv->id());
 237       st->print("%s ", java_lang_Class::as_Klass(sv->klass()->as_ConstantOopReadValue()->value()())->external_name());
 238       sv->print_fields_on(st);
 239       st->cr();
 240     }
 241   }
 242 #endif // COMPILER2 || INCLUDE_JVMCI
 243 }
 244 
 245 #endif
 246 
 247 void ScopeDesc::verify() {
 248   ResourceMark rm;
 249   guarantee(method()->is_method(), "type check");
 250 
 251   // check if we have any illegal elements on the expression stack
 252   { GrowableArray<ScopeValue*>* l = expressions();
 253     if (l != NULL) {
 254       for (int index = 0; index < l->length(); index++) {
 255        //guarantee(!l->at(index)->is_illegal(), "expression element cannot be illegal");
 256       }
 257     }
 258   }
 259 }


 211       st->print_cr("   Expression stack");
 212       for (int index = 0; index < l->length(); index++) {
 213         st->print("    - @%d: ", index);
 214         l->at(index)->print_on(st);
 215         st->cr();
 216       }
 217     }
 218   }
 219   // monitors
 220   { GrowableArray<MonitorValue*>* l = ((ScopeDesc*) this)->monitors();
 221     if (l != NULL) {
 222       st->print_cr("   Monitor stack");
 223       for (int index = 0; index < l->length(); index++) {
 224         st->print("    - @%d: ", index);
 225         l->at(index)->print_on(st);
 226         st->cr();
 227       }
 228     }
 229   }
 230 
 231 #if COMPILER2_OR_JVMCI
 232   if (NOT_JVMCI(DoEscapeAnalysis &&) is_top() && _objects != NULL) {
 233     st->print_cr("   Objects");
 234     for (int i = 0; i < _objects->length(); i++) {
 235       ObjectValue* sv = (ObjectValue*) _objects->at(i);
 236       st->print("    - %d: ", sv->id());
 237       st->print("%s ", java_lang_Class::as_Klass(sv->klass()->as_ConstantOopReadValue()->value()())->external_name());
 238       sv->print_fields_on(st);
 239       st->cr();
 240     }
 241   }
 242 #endif // COMPILER2_OR_JVMCI
 243 }
 244 
 245 #endif
 246 
 247 void ScopeDesc::verify() {
 248   ResourceMark rm;
 249   guarantee(method()->is_method(), "type check");
 250 
 251   // check if we have any illegal elements on the expression stack
 252   { GrowableArray<ScopeValue*>* l = expressions();
 253     if (l != NULL) {
 254       for (int index = 0; index < l->length(); index++) {
 255        //guarantee(!l->at(index)->is_illegal(), "expression element cannot be illegal");
 256       }
 257     }
 258   }
 259 }
< prev index next >