Lines Matching refs:constant
36 ciConstant constant = iter->get_constant();
38 if (constant.basic_type() == T_OBJECT) {
40 if (constant.as_object()->is_klass())
45 return new SharkConstant(constant, type);
56 SharkConstant::SharkConstant(ciConstant constant, ciType *type) {
59 switch (constant.basic_type()) {
65 value = SharkValue::jint_constant(constant.as_int());
69 value = SharkValue::jlong_constant(constant.as_long());
73 value = SharkValue::jfloat_constant(constant.as_float());
77 value = SharkValue::jdouble_constant(constant.as_double());
90 tty->print_cr("Unhandled type %s", type2name(constant.basic_type()));
109 ciObject *object = constant.as_object();
112 // The constant returned for a klass is the ciKlass