< prev index next >

src/hotspot/share/ci/ciConstant.hpp

Print this page

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


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

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