Mercurial > hg > graal-compiler
comparison src/share/vm/ci/ciObject.hpp @ 6822:f6b0eb4e44cf
7200949: JSR 292: rubybench/bench/time/bench_base64.rb fails with jruby.jar not on boot class path
Reviewed-by: jrose, kvn
author | twisti |
---|---|
date | Mon, 01 Oct 2012 14:50:10 -0700 |
parents | da91efe96a93 |
children | e522a00b91aa bd7a7ce2e264 |
comparison
equal
deleted
inserted
replaced
6811:1b582b1bf7cb | 6822:f6b0eb4e44cf |
---|---|
121 virtual bool is_call_site() const { return false; } | 121 virtual bool is_call_site() const { return false; } |
122 virtual bool is_cpcache() const { return false; } | 122 virtual bool is_cpcache() const { return false; } |
123 virtual bool is_instance() { return false; } | 123 virtual bool is_instance() { return false; } |
124 virtual bool is_member_name() const { return false; } | 124 virtual bool is_member_name() const { return false; } |
125 virtual bool is_method_handle() const { return false; } | 125 virtual bool is_method_handle() const { return false; } |
126 virtual bool is_method_type() const { return false; } | |
126 virtual bool is_array() { return false; } | 127 virtual bool is_array() { return false; } |
127 virtual bool is_obj_array() { return false; } | 128 virtual bool is_obj_array() { return false; } |
128 virtual bool is_type_array() { return false; } | 129 virtual bool is_type_array() { return false; } |
129 | 130 |
130 // Is this a type or value which has no associated class? | 131 // Is this a type or value which has no associated class? |
140 bool is_loaded() const { | 141 bool is_loaded() const { |
141 return handle() != NULL || is_classless(); | 142 return handle() != NULL || is_classless(); |
142 } | 143 } |
143 | 144 |
144 // Subclass casting with assertions. | 145 // Subclass casting with assertions. |
145 ciNullObject* as_null_object() { | 146 ciNullObject* as_null_object() { |
146 assert(is_null_object(), "bad cast"); | 147 assert(is_null_object(), "bad cast"); |
147 return (ciNullObject*)this; | 148 return (ciNullObject*)this; |
148 } | 149 } |
149 ciCallSite* as_call_site() { | 150 ciCallSite* as_call_site() { |
150 assert(is_call_site(), "bad cast"); | 151 assert(is_call_site(), "bad cast"); |
151 return (ciCallSite*) this; | 152 return (ciCallSite*)this; |
152 } | 153 } |
153 ciInstance* as_instance() { | 154 ciInstance* as_instance() { |
154 assert(is_instance(), "bad cast"); | 155 assert(is_instance(), "bad cast"); |
155 return (ciInstance*)this; | 156 return (ciInstance*)this; |
156 } | 157 } |
157 ciMemberName* as_member_name() { | 158 ciMemberName* as_member_name() { |
158 assert(is_member_name(), "bad cast"); | 159 assert(is_member_name(), "bad cast"); |
159 return (ciMemberName*)this; | 160 return (ciMemberName*)this; |
160 } | 161 } |
161 ciMethodHandle* as_method_handle() { | 162 ciMethodHandle* as_method_handle() { |
162 assert(is_method_handle(), "bad cast"); | 163 assert(is_method_handle(), "bad cast"); |
163 return (ciMethodHandle*) this; | 164 return (ciMethodHandle*)this; |
164 } | 165 } |
165 ciArray* as_array() { | 166 ciMethodType* as_method_type() { |
167 assert(is_method_type(), "bad cast"); | |
168 return (ciMethodType*)this; | |
169 } | |
170 ciArray* as_array() { | |
166 assert(is_array(), "bad cast"); | 171 assert(is_array(), "bad cast"); |
167 return (ciArray*)this; | 172 return (ciArray*)this; |
168 } | 173 } |
169 ciObjArray* as_obj_array() { | 174 ciObjArray* as_obj_array() { |
170 assert(is_obj_array(), "bad cast"); | 175 assert(is_obj_array(), "bad cast"); |
171 return (ciObjArray*)this; | 176 return (ciObjArray*)this; |
172 } | 177 } |
173 ciTypeArray* as_type_array() { | 178 ciTypeArray* as_type_array() { |
174 assert(is_type_array(), "bad cast"); | 179 assert(is_type_array(), "bad cast"); |
175 return (ciTypeArray*)this; | 180 return (ciTypeArray*)this; |
176 } | 181 } |
177 | 182 |
178 // Print debugging output about this ciObject. | 183 // Print debugging output about this ciObject. |