75 { Bad, T_ILLEGAL, "vectory:", false, 0, relocInfo::none }, // VectorY
76 { Bad, T_ILLEGAL, "vectorz:", false, 0, relocInfo::none }, // VectorZ
77 #elif defined(S390)
78 { Bad, T_ILLEGAL, "vectormask:", false, Op_RegVectMask, relocInfo::none }, // VectorMask.
79 { Bad, T_ILLEGAL, "vectora:", false, Op_VecA, relocInfo::none }, // VectorA.
80 { Bad, T_ILLEGAL, "vectors:", false, 0, relocInfo::none }, // VectorS
81 { Bad, T_ILLEGAL, "vectord:", false, Op_RegL, relocInfo::none }, // VectorD
82 { Bad, T_ILLEGAL, "vectorx:", false, Op_VecX, relocInfo::none }, // VectorX
83 { Bad, T_ILLEGAL, "vectory:", false, 0, relocInfo::none }, // VectorY
84 { Bad, T_ILLEGAL, "vectorz:", false, 0, relocInfo::none }, // VectorZ
85 #else // all other
86 { Bad, T_ILLEGAL, "vectormask:", false, Op_RegVectMask, relocInfo::none }, // VectorMask.
87 { Bad, T_ILLEGAL, "vectora:", false, Op_VecA, relocInfo::none }, // VectorA.
88 { Bad, T_ILLEGAL, "vectors:", false, Op_VecS, relocInfo::none }, // VectorS
89 { Bad, T_ILLEGAL, "vectord:", false, Op_VecD, relocInfo::none }, // VectorD
90 { Bad, T_ILLEGAL, "vectorx:", false, Op_VecX, relocInfo::none }, // VectorX
91 { Bad, T_ILLEGAL, "vectory:", false, Op_VecY, relocInfo::none }, // VectorY
92 { Bad, T_ILLEGAL, "vectorz:", false, Op_VecZ, relocInfo::none }, // VectorZ
93 #endif
94 { Bad, T_ADDRESS, "anyptr:", false, Op_RegP, relocInfo::none }, // AnyPtr
95 { Bad, T_ADDRESS, "rawptr:", false, Op_RegP, relocInfo::none }, // RawPtr
96 { Bad, T_OBJECT, "oop:", true, Op_RegP, relocInfo::oop_type }, // OopPtr
97 { Bad, T_OBJECT, "inst:", true, Op_RegP, relocInfo::oop_type }, // InstPtr
98 { Bad, T_OBJECT, "ary:", true, Op_RegP, relocInfo::oop_type }, // AryPtr
99 { Bad, T_METADATA, "metadata:", false, Op_RegP, relocInfo::metadata_type }, // MetadataPtr
100 { Bad, T_METADATA, "klass:", false, Op_RegP, relocInfo::metadata_type }, // KlassPtr
101 { Bad, T_METADATA, "instklass:", false, Op_RegP, relocInfo::metadata_type }, // InstKlassPtr
102 { Bad, T_METADATA, "aryklass:", false, Op_RegP, relocInfo::metadata_type }, // AryKlassPtr
103 { Bad, T_OBJECT, "func", false, 0, relocInfo::none }, // Function
104 { Abio, T_ILLEGAL, "abIO", false, 0, relocInfo::none }, // Abio
105 { Return_Address, T_ADDRESS, "return_address",false, Op_RegP, relocInfo::none }, // Return_Address
106 { Memory, T_ILLEGAL, "memory", false, 0, relocInfo::none }, // Memory
107 { FloatBot, T_FLOAT, "float_top", false, Op_RegF, relocInfo::none }, // FloatTop
108 { FloatCon, T_FLOAT, "ftcon:", false, Op_RegF, relocInfo::none }, // FloatCon
109 { FloatTop, T_FLOAT, "float", false, Op_RegF, relocInfo::none }, // FloatBot
110 { DoubleBot, T_DOUBLE, "double_top", false, Op_RegD, relocInfo::none }, // DoubleTop
111 { DoubleCon, T_DOUBLE, "dblcon:", false, Op_RegD, relocInfo::none }, // DoubleCon
112 { DoubleTop, T_DOUBLE, "double", false, Op_RegD, relocInfo::none }, // DoubleBot
113 { Top, T_ILLEGAL, "bottom", false, 0, relocInfo::none } // Bottom
114 };
115
4518
4519 bool TypeInstPtr::maybe_java_subtype_of_helper(const TypeOopPtr* other, bool this_exact, bool other_exact) const {
4520 return TypePtr::maybe_java_subtype_of_helper_for_instance(this, other, this_exact, other_exact);
4521 }
4522
4523
4524 //------------------------------dump2------------------------------------------
4525 // Dump oop Type
4526 #ifndef PRODUCT
4527 void TypeInstPtr::dump2(Dict &d, uint depth, outputStream* st) const {
4528 // Print the name of the klass.
4529 klass()->print_name_on(st);
4530 _interfaces->dump(st);
4531
4532 switch( _ptr ) {
4533 case Constant:
4534 if (WizardMode || Verbose) {
4535 ResourceMark rm;
4536 stringStream ss;
4537
4538 st->print(" ");
4539 const_oop()->print_oop(&ss);
4540 // 'const_oop->print_oop()' may emit newlines('\n') into ss.
4541 // suppress newlines from it so -XX:+Verbose -XX:+PrintIdeal dumps one-liner for each node.
4542 char* buf = ss.as_string(/* c_heap= */false);
4543 StringUtils::replace_no_expand(buf, "\n", "");
4544 st->print_raw(buf);
4545 }
4546 case BotPTR:
4547 if (!WizardMode && !Verbose) {
4548 if( _klass_is_exact ) st->print(":exact");
4549 break;
4550 }
4551 case TopPTR:
4552 case AnyNull:
4553 case NotNull:
4554 st->print(":%s", ptr_msg[_ptr]);
4555 if( _klass_is_exact ) st->print(":exact");
4556 break;
4557 default:
4558 break;
5140 }
5141 }
5142 return result;
5143 }
5144
5145
5146 //------------------------------xdual------------------------------------------
5147 // Dual: compute field-by-field dual
5148 const Type *TypeAryPtr::xdual() const {
5149 return new TypeAryPtr(dual_ptr(), _const_oop, _ary->dual()->is_ary(),_klass, _klass_is_exact, dual_offset(), dual_instance_id(), is_autobox_cache(), dual_speculative(), dual_inline_depth());
5150 }
5151
5152 //------------------------------dump2------------------------------------------
5153 #ifndef PRODUCT
5154 void TypeAryPtr::dump2( Dict &d, uint depth, outputStream *st ) const {
5155 _ary->dump2(d,depth,st);
5156 _interfaces->dump(st);
5157
5158 switch( _ptr ) {
5159 case Constant:
5160 const_oop()->print(st);
5161 break;
5162 case BotPTR:
5163 if (!WizardMode && !Verbose) {
5164 if( _klass_is_exact ) st->print(":exact");
5165 break;
5166 }
5167 case TopPTR:
5168 case AnyNull:
5169 case NotNull:
5170 st->print(":%s", ptr_msg[_ptr]);
5171 if( _klass_is_exact ) st->print(":exact");
5172 break;
5173 default:
5174 break;
5175 }
5176
5177 if( _offset != 0 ) {
5178 BasicType basic_elem_type = elem()->basic_type();
5179 int header_size = arrayOopDesc::base_offset_in_bytes(basic_elem_type);
|
75 { Bad, T_ILLEGAL, "vectory:", false, 0, relocInfo::none }, // VectorY
76 { Bad, T_ILLEGAL, "vectorz:", false, 0, relocInfo::none }, // VectorZ
77 #elif defined(S390)
78 { Bad, T_ILLEGAL, "vectormask:", false, Op_RegVectMask, relocInfo::none }, // VectorMask.
79 { Bad, T_ILLEGAL, "vectora:", false, Op_VecA, relocInfo::none }, // VectorA.
80 { Bad, T_ILLEGAL, "vectors:", false, 0, relocInfo::none }, // VectorS
81 { Bad, T_ILLEGAL, "vectord:", false, Op_RegL, relocInfo::none }, // VectorD
82 { Bad, T_ILLEGAL, "vectorx:", false, Op_VecX, relocInfo::none }, // VectorX
83 { Bad, T_ILLEGAL, "vectory:", false, 0, relocInfo::none }, // VectorY
84 { Bad, T_ILLEGAL, "vectorz:", false, 0, relocInfo::none }, // VectorZ
85 #else // all other
86 { Bad, T_ILLEGAL, "vectormask:", false, Op_RegVectMask, relocInfo::none }, // VectorMask.
87 { Bad, T_ILLEGAL, "vectora:", false, Op_VecA, relocInfo::none }, // VectorA.
88 { Bad, T_ILLEGAL, "vectors:", false, Op_VecS, relocInfo::none }, // VectorS
89 { Bad, T_ILLEGAL, "vectord:", false, Op_VecD, relocInfo::none }, // VectorD
90 { Bad, T_ILLEGAL, "vectorx:", false, Op_VecX, relocInfo::none }, // VectorX
91 { Bad, T_ILLEGAL, "vectory:", false, Op_VecY, relocInfo::none }, // VectorY
92 { Bad, T_ILLEGAL, "vectorz:", false, Op_VecZ, relocInfo::none }, // VectorZ
93 #endif
94 { Bad, T_ADDRESS, "anyptr:", false, Op_RegP, relocInfo::none }, // AnyPtr
95 { Bad, T_ADDRESS, "rawptr:", false, Op_RegP, relocInfo::external_word_type }, // RawPtr
96 { Bad, T_OBJECT, "oop:", true, Op_RegP, relocInfo::oop_type }, // OopPtr
97 { Bad, T_OBJECT, "inst:", true, Op_RegP, relocInfo::oop_type }, // InstPtr
98 { Bad, T_OBJECT, "ary:", true, Op_RegP, relocInfo::oop_type }, // AryPtr
99 { Bad, T_METADATA, "metadata:", false, Op_RegP, relocInfo::metadata_type }, // MetadataPtr
100 { Bad, T_METADATA, "klass:", false, Op_RegP, relocInfo::metadata_type }, // KlassPtr
101 { Bad, T_METADATA, "instklass:", false, Op_RegP, relocInfo::metadata_type }, // InstKlassPtr
102 { Bad, T_METADATA, "aryklass:", false, Op_RegP, relocInfo::metadata_type }, // AryKlassPtr
103 { Bad, T_OBJECT, "func", false, 0, relocInfo::none }, // Function
104 { Abio, T_ILLEGAL, "abIO", false, 0, relocInfo::none }, // Abio
105 { Return_Address, T_ADDRESS, "return_address",false, Op_RegP, relocInfo::none }, // Return_Address
106 { Memory, T_ILLEGAL, "memory", false, 0, relocInfo::none }, // Memory
107 { FloatBot, T_FLOAT, "float_top", false, Op_RegF, relocInfo::none }, // FloatTop
108 { FloatCon, T_FLOAT, "ftcon:", false, Op_RegF, relocInfo::none }, // FloatCon
109 { FloatTop, T_FLOAT, "float", false, Op_RegF, relocInfo::none }, // FloatBot
110 { DoubleBot, T_DOUBLE, "double_top", false, Op_RegD, relocInfo::none }, // DoubleTop
111 { DoubleCon, T_DOUBLE, "dblcon:", false, Op_RegD, relocInfo::none }, // DoubleCon
112 { DoubleTop, T_DOUBLE, "double", false, Op_RegD, relocInfo::none }, // DoubleBot
113 { Top, T_ILLEGAL, "bottom", false, 0, relocInfo::none } // Bottom
114 };
115
4518
4519 bool TypeInstPtr::maybe_java_subtype_of_helper(const TypeOopPtr* other, bool this_exact, bool other_exact) const {
4520 return TypePtr::maybe_java_subtype_of_helper_for_instance(this, other, this_exact, other_exact);
4521 }
4522
4523
4524 //------------------------------dump2------------------------------------------
4525 // Dump oop Type
4526 #ifndef PRODUCT
4527 void TypeInstPtr::dump2(Dict &d, uint depth, outputStream* st) const {
4528 // Print the name of the klass.
4529 klass()->print_name_on(st);
4530 _interfaces->dump(st);
4531
4532 switch( _ptr ) {
4533 case Constant:
4534 if (WizardMode || Verbose) {
4535 ResourceMark rm;
4536 stringStream ss;
4537
4538 st->print(" " INTPTR_FORMAT, p2i(const_oop()));
4539 const_oop()->print_oop(&ss);
4540 // 'const_oop->print_oop()' may emit newlines('\n') into ss.
4541 // suppress newlines from it so -XX:+Verbose -XX:+PrintIdeal dumps one-liner for each node.
4542 char* buf = ss.as_string(/* c_heap= */false);
4543 StringUtils::replace_no_expand(buf, "\n", "");
4544 st->print_raw(buf);
4545 }
4546 case BotPTR:
4547 if (!WizardMode && !Verbose) {
4548 if( _klass_is_exact ) st->print(":exact");
4549 break;
4550 }
4551 case TopPTR:
4552 case AnyNull:
4553 case NotNull:
4554 st->print(":%s", ptr_msg[_ptr]);
4555 if( _klass_is_exact ) st->print(":exact");
4556 break;
4557 default:
4558 break;
5140 }
5141 }
5142 return result;
5143 }
5144
5145
5146 //------------------------------xdual------------------------------------------
5147 // Dual: compute field-by-field dual
5148 const Type *TypeAryPtr::xdual() const {
5149 return new TypeAryPtr(dual_ptr(), _const_oop, _ary->dual()->is_ary(),_klass, _klass_is_exact, dual_offset(), dual_instance_id(), is_autobox_cache(), dual_speculative(), dual_inline_depth());
5150 }
5151
5152 //------------------------------dump2------------------------------------------
5153 #ifndef PRODUCT
5154 void TypeAryPtr::dump2( Dict &d, uint depth, outputStream *st ) const {
5155 _ary->dump2(d,depth,st);
5156 _interfaces->dump(st);
5157
5158 switch( _ptr ) {
5159 case Constant:
5160 st->print(" " INTPTR_FORMAT " ", p2i(const_oop()));
5161 const_oop()->print(st);
5162 break;
5163 case BotPTR:
5164 if (!WizardMode && !Verbose) {
5165 if( _klass_is_exact ) st->print(":exact");
5166 break;
5167 }
5168 case TopPTR:
5169 case AnyNull:
5170 case NotNull:
5171 st->print(":%s", ptr_msg[_ptr]);
5172 if( _klass_is_exact ) st->print(":exact");
5173 break;
5174 default:
5175 break;
5176 }
5177
5178 if( _offset != 0 ) {
5179 BasicType basic_elem_type = elem()->basic_type();
5180 int header_size = arrayOopDesc::base_offset_in_bytes(basic_elem_type);
|