Lines Matching refs:java_class
585 int java_lang_Class::oop_size(oop java_class) {
587 return java_class->int_field(_oop_size_offset);
589 void java_lang_Class::set_oop_size(oop java_class, int size) {
591 java_class->int_field_put(_oop_size_offset, size);
593 int java_lang_Class::static_oop_field_count(oop java_class) {
595 return java_class->int_field(_static_oop_field_count_offset);
597 void java_lang_Class::set_static_oop_field_count(oop java_class, int size) {
599 java_class->int_field_put(_static_oop_field_count_offset, size);
605 oop java_class = instanceMirrorKlass::cast(SystemDictionary::Class_klass())->allocate_instance((oop)NULL, CHECK_0);
609 set_array_klass(java_class, aklass);
613 assert(java_lang_Class::static_oop_field_count(java_class) == 0, "should have been zeroed by allocation");
615 return java_class;
619 klassOop java_lang_Class::as_klassOop(oop java_class) {
621 assert(java_lang_Class::is_instance(java_class), "must be a Class object");
622 klassOop k = klassOop(java_class->obj_field(_klass_offset));
628 void java_lang_Class::set_klass(oop java_class, klassOop klass) {
629 assert(java_lang_Class::is_instance(java_class), "must be a Class object");
630 java_class->obj_field_put(_klass_offset, klass);
634 void java_lang_Class::print_signature(oop java_class, outputStream* st) {
635 assert(java_lang_Class::is_instance(java_class), "must be a Class object");
638 if (is_primitive(java_class)) {
639 name = vmSymbols::type_signature(primitive_type(java_class));
641 klassOop k = as_klassOop(java_class);
654 Symbol* java_lang_Class::as_signature(oop java_class, bool intern_if_not_found, TRAPS) {
655 assert(java_lang_Class::is_instance(java_class), "must be a Class object");
657 if (is_primitive(java_class)) {
658 name = vmSymbols::type_signature(primitive_type(java_class));
664 klassOop k = as_klassOop(java_class);
683 klassOop java_lang_Class::array_klass(oop java_class) {
684 klassOop k = klassOop(java_class->obj_field(_array_klass_offset));
690 void java_lang_Class::set_array_klass(oop java_class, klassOop klass) {
692 java_class->obj_field_put(_array_klass_offset, klass);
696 methodOop java_lang_Class::resolved_constructor(oop java_class) {
697 oop constructor = java_class->obj_field(_resolved_constructor_offset);
703 void java_lang_Class::set_resolved_constructor(oop java_class, methodOop constructor) {
705 java_class->obj_field_put(_resolved_constructor_offset, constructor);
709 bool java_lang_Class::is_primitive(oop java_class) {
711 //assert(java_lang_Class::is_instance(java_class), "must be a Class object");
712 klassOop k = klassOop(java_class->obj_field(_klass_offset));
717 BasicType java_lang_Class::primitive_type(oop java_class) {
718 assert(java_lang_Class::is_primitive(java_class), "just checking");
719 klassOop ak = klassOop(java_class->obj_field(_array_klass_offset));
725 assert(java_class == Universe::void_mirror(), "only valid non-array primitive");
727 assert(Universe::java_mirror(type) == java_class, "must be consistent");
731 BasicType java_lang_Class::as_BasicType(oop java_class, klassOop* reference_klass) {
732 assert(java_lang_Class::is_instance(java_class), "must be a Class object");
733 if (is_primitive(java_class)) {
736 return primitive_type(java_class);
739 (*reference_klass) = as_klassOop(java_class);