Lines Matching refs:bc
86 int get_index_u1(Bytecodes::Code bc) const {
87 assert_same_format_as(bc); assert_index_size(1, bc);
90 int get_index_u2(Bytecodes::Code bc, bool is_wide = false) const {
91 assert_same_format_as(bc, is_wide); assert_index_size(2, bc, is_wide);
93 if (can_use_native_byte_order(bc, is_wide))
97 int get_index_u1_cpcache(Bytecodes::Code bc) const {
98 assert_same_format_as(bc); assert_index_size(1, bc);
101 int get_index_u2_cpcache(Bytecodes::Code bc) const {
102 assert_same_format_as(bc); assert_index_size(2, bc); assert_native_index(bc);
105 int get_index_u4(Bytecodes::Code bc) const {
106 assert_same_format_as(bc); assert_index_size(4, bc);
107 assert(can_use_native_byte_order(bc), "");
110 bool has_index_u4(Bytecodes::Code bc) const {
111 return bc == Bytecodes::_invokedynamic;
114 int get_offset_s2(Bytecodes::Code bc) const {
115 assert_same_format_as(bc); assert_offset_size(2, bc);
118 int get_offset_s4(Bytecodes::Code bc) const {
119 assert_same_format_as(bc); assert_offset_size(4, bc);
123 int get_constant_u1(int offset, Bytecodes::Code bc) const {
124 assert_same_format_as(bc); assert_constant_size(1, offset, bc);
127 int get_constant_u2(int offset, Bytecodes::Code bc, bool is_wide = false) const {
128 assert_same_format_as(bc, is_wide); assert_constant_size(2, offset, bc, is_wide);
134 static void assert_index_size(int required_size, Bytecodes::Code bc, bool is_wide = false) NOT_DEBUG_RETURN;
135 static void assert_offset_size(int required_size, Bytecodes::Code bc, bool is_wide = false) NOT_DEBUG_RETURN;
136 static void assert_constant_size(int required_size, int where, Bytecodes::Code bc, bool is_wide = false) NOT_DEBUG_RETURN;
137 static void assert_native_index(Bytecodes::Code bc, bool is_wide = false) NOT_DEBUG_RETURN;
138 static bool can_use_native_byte_order(Bytecodes::Code bc, bool is_wide = false) {
139 return (!Bytes::is_Java_byte_ordering_different() || Bytecodes::native_byte_order(bc /*, is_wide*/));