< prev index next >

src/hotspot/share/code/debugInfo.cpp

Print this page

        

@@ -54,19 +54,19 @@
   oop o = code()->oop_at(read_int());
   assert(oopDesc::is_oop_or_null(o), "oop only");
   return o;
 }
 
-ScopeValue* DebugInfoReadStream::read_object_value(bool is_auto_box) {
+ScopeValue* DebugInfoReadStream::read_object_value() {
   int id = read_int();
 #ifdef ASSERT
   assert(_obj_pool != NULL, "object pool does not exist");
   for (int i = _obj_pool->length() - 1; i >= 0; i--) {
     assert(_obj_pool->at(i)->as_ObjectValue()->id() != id, "should not be read twice");
   }
 #endif
-  ObjectValue* result = is_auto_box ? new AutoBoxObjectValue(id) : new ObjectValue(id);
+  ObjectValue* result = new ObjectValue(id);
   // Cache the object since an object field could reference it.
   _obj_pool->push(result);
   result->read_object(this);
   return result;
 }

@@ -86,24 +86,22 @@
 
 // Serializing scope values
 
 enum { LOCATION_CODE = 0, CONSTANT_INT_CODE = 1,  CONSTANT_OOP_CODE = 2,
                           CONSTANT_LONG_CODE = 3, CONSTANT_DOUBLE_CODE = 4,
-                          OBJECT_CODE = 5,        OBJECT_ID_CODE = 6,
-                          AUTO_BOX_OBJECT_CODE = 7 };
+                          OBJECT_CODE = 5,        OBJECT_ID_CODE = 6 };
 
 ScopeValue* ScopeValue::read_from(DebugInfoReadStream* stream) {
   ScopeValue* result = NULL;
   switch(stream->read_int()) {
-   case LOCATION_CODE:        result = new LocationValue(stream);                        break;
-   case CONSTANT_INT_CODE:    result = new ConstantIntValue(stream);                     break;
-   case CONSTANT_OOP_CODE:    result = new ConstantOopReadValue(stream);                 break;
-   case CONSTANT_LONG_CODE:   result = new ConstantLongValue(stream);                    break;
-   case CONSTANT_DOUBLE_CODE: result = new ConstantDoubleValue(stream);                  break;
-   case OBJECT_CODE:          result = stream->read_object_value(false /*is_auto_box*/); break;
-   case AUTO_BOX_OBJECT_CODE: result = stream->read_object_value(true /*is_auto_box*/);  break;
-   case OBJECT_ID_CODE:       result = stream->get_cached_object();                      break;
+   case LOCATION_CODE:        result = new LocationValue(stream);        break;
+   case CONSTANT_INT_CODE:    result = new ConstantIntValue(stream);     break;
+   case CONSTANT_OOP_CODE:    result = new ConstantOopReadValue(stream); break;
+   case CONSTANT_LONG_CODE:   result = new ConstantLongValue(stream);    break;
+   case CONSTANT_DOUBLE_CODE: result = new ConstantDoubleValue(stream);  break;
+   case OBJECT_CODE:          result = stream->read_object_value();      break;
+   case OBJECT_ID_CODE:       result = stream->get_cached_object();      break;
    default: ShouldNotReachHere();
   }
   return result;
 }
 

@@ -142,11 +140,11 @@
   if (_visited) {
     stream->write_int(OBJECT_ID_CODE);
     stream->write_int(_id);
   } else {
     _visited = true;
-    stream->write_int(is_auto_box() ? AUTO_BOX_OBJECT_CODE : OBJECT_CODE);
+    stream->write_int(OBJECT_CODE);
     stream->write_int(_id);
     _klass->write_on(stream);
     int length = _field_values.length();
     stream->write_int(length);
     for (int i = 0; i < length; i++) {

@@ -154,11 +152,11 @@
     }
   }
 }
 
 void ObjectValue::print_on(outputStream* st) const {
-  st->print("%s[%d]", is_auto_box() ? "box_obj" : "obj", _id);
+  st->print("obj[%d]", _id);
 }
 
 void ObjectValue::print_fields_on(outputStream* st) const {
 #ifndef PRODUCT
   if (_field_values.length() > 0) {
< prev index next >