< prev index next >

src/hotspot/share/ci/ciConstant.hpp

Print this page

101     assert(basic_type() == T_FLOAT, "wrong type");
102     return _value._float;
103   }
104   jdouble   as_double() {
105     assert(basic_type() == T_DOUBLE, "wrong type");
106     return _value._double;
107   }
108   ciObject* as_object() const {
109     assert(is_reference_type(basic_type()), "wrong type");
110     return _value._object;
111   }
112 
113   bool is_null_or_zero() const;
114 
115   bool is_valid() const {
116     return basic_type() != T_ILLEGAL;
117   }
118 
119   bool is_loaded() const;
120 


121   // Debugging output
122   void print();
123 };
124 
125 #endif // SHARE_CI_CICONSTANT_HPP

101     assert(basic_type() == T_FLOAT, "wrong type");
102     return _value._float;
103   }
104   jdouble   as_double() {
105     assert(basic_type() == T_DOUBLE, "wrong type");
106     return _value._double;
107   }
108   ciObject* as_object() const {
109     assert(is_reference_type(basic_type()), "wrong type");
110     return _value._object;
111   }
112 
113   bool is_null_or_zero() const;
114 
115   bool is_valid() const {
116     return basic_type() != T_ILLEGAL;
117   }
118 
119   bool is_loaded() const;
120 
121   bool should_be_constant() const;
122 
123   // Debugging output
124   void print();
125 };
126 
127 #endif // SHARE_CI_CICONSTANT_HPP
< prev index next >