< prev index next >

src/hotspot/share/ci/ciConstant.cpp

Print this page




  39              basictype_to_str(basic_type()));
  40   switch (basic_type()) {
  41   case T_BOOLEAN:
  42     tty->print("%s", bool_to_str(_value._int != 0));
  43     break;
  44   case T_CHAR:
  45   case T_BYTE:
  46   case T_SHORT:
  47   case T_INT:
  48     tty->print("%d", _value._int);
  49     break;
  50   case T_LONG:
  51     tty->print(INT64_FORMAT, (int64_t)(_value._long));
  52     break;
  53   case T_FLOAT:
  54     tty->print("%f", _value._float);
  55     break;
  56   case T_DOUBLE:
  57     tty->print("%lf", _value._double);
  58     break;

  59   case T_OBJECT:
  60   case T_ARRAY:
  61     _value._object->print();
  62     break;
  63   default:
  64     tty->print("ILLEGAL");
  65     break;
  66   }
  67   tty->print(">");
  68 }


  39              basictype_to_str(basic_type()));
  40   switch (basic_type()) {
  41   case T_BOOLEAN:
  42     tty->print("%s", bool_to_str(_value._int != 0));
  43     break;
  44   case T_CHAR:
  45   case T_BYTE:
  46   case T_SHORT:
  47   case T_INT:
  48     tty->print("%d", _value._int);
  49     break;
  50   case T_LONG:
  51     tty->print(INT64_FORMAT, (int64_t)(_value._long));
  52     break;
  53   case T_FLOAT:
  54     tty->print("%f", _value._float);
  55     break;
  56   case T_DOUBLE:
  57     tty->print("%lf", _value._double);
  58     break;
  59   case T_VALUETYPE:
  60   case T_OBJECT:
  61   case T_ARRAY:
  62     _value._object->print();
  63     break;
  64   default:
  65     tty->print("ILLEGAL");
  66     break;
  67   }
  68   tty->print(">");
  69 }
< prev index next >