comparison src/share/vm/ci/ciInstance.cpp @ 12190:edb5ab0f3fe5

8001107: @Stable annotation for constant folding of lazily evaluated variables Reviewed-by: rbackman, twisti, kvn Contributed-by: john.r.rose@oracle.com, vladimir.x.ivanov@oracle.com
author vlivanov
date Tue, 10 Sep 2013 14:51:48 -0700
parents 59982ff9e0ec
children de6a9e811145
comparison
equal deleted inserted replaced
12188:cd16d587b0fa 12190:edb5ab0f3fe5
125 // 125 //
126 // Constant value of a field at the specified offset. 126 // Constant value of a field at the specified offset.
127 ciConstant ciInstance::field_value_by_offset(int field_offset) { 127 ciConstant ciInstance::field_value_by_offset(int field_offset) {
128 ciInstanceKlass* ik = klass()->as_instance_klass(); 128 ciInstanceKlass* ik = klass()->as_instance_klass();
129 ciField* field = ik->get_field_by_offset(field_offset, false); 129 ciField* field = ik->get_field_by_offset(field_offset, false);
130 if (field == NULL)
131 return ciConstant(); // T_ILLEGAL
130 return field_value(field); 132 return field_value(field);
131 } 133 }
132 134
133 // ------------------------------------------------------------------ 135 // ------------------------------------------------------------------
134 // ciInstance::print_impl 136 // ciInstance::print_impl