Mercurial > hg > graal-compiler
comparison src/share/vm/ci/ciField.hpp @ 3907:7b5c767f229c
7086560: 7085404 changes broke VM with -XX:-EnableInvokeDynamic
Summary: Add check that ciEnv::_CallSite_klass is initialized.
Reviewed-by: jrose
author | kvn |
---|---|
date | Sat, 03 Sep 2011 14:03:54 -0700 |
parents | aa67216400d3 |
children | 04b9a2566eec e778c29768e6 |
comparison
equal
deleted
inserted
replaced
3906:7ffacbb338d4 | 3907:7b5c767f229c |
---|---|
174 bool is_final () { return flags().is_final(); } | 174 bool is_final () { return flags().is_final(); } |
175 bool is_volatile () { return flags().is_volatile(); } | 175 bool is_volatile () { return flags().is_volatile(); } |
176 bool is_transient () { return flags().is_transient(); } | 176 bool is_transient () { return flags().is_transient(); } |
177 | 177 |
178 bool is_call_site_target() { | 178 bool is_call_site_target() { |
179 return (holder()->is_subclass_of(CURRENT_ENV->CallSite_klass()) && (name() == ciSymbol::target_name())); | 179 ciInstanceKlass* callsite_klass = CURRENT_ENV->CallSite_klass(); |
180 if (callsite_klass == NULL) | |
181 return false; | |
182 return (holder()->is_subclass_of(callsite_klass) && (name() == ciSymbol::target_name())); | |
180 } | 183 } |
181 | 184 |
182 // Debugging output | 185 // Debugging output |
183 void print(); | 186 void print(); |
184 void print_name_on(outputStream* st); | 187 void print_name_on(outputStream* st); |