Lines Matching refs:Bytecodes

39 void Bytecode::assert_same_format_as(Bytecodes::Code testbc, bool is_wide) const {
40 Bytecodes::Code thisbc = Bytecodes::cast(byte_at(0));
41 if (thisbc == Bytecodes::_breakpoint) return; // let the assertion fail silently
43 assert(thisbc == Bytecodes::_wide, "expected a wide instruction");
44 thisbc = Bytecodes::cast(byte_at(1));
45 if (thisbc == Bytecodes::_breakpoint) return;
47 int thisflags = Bytecodes::flags(testbc, is_wide) & Bytecodes::_all_fmt_bits;
48 int testflags = Bytecodes::flags(thisbc, is_wide) & Bytecodes::_all_fmt_bits;
55 void Bytecode::assert_index_size(int size, Bytecodes::Code bc, bool is_wide) {
56 int have_fmt = (Bytecodes::flags(bc, is_wide)
57 & (Bytecodes::_fmt_has_u2 | Bytecodes::_fmt_has_u4 |
58 Bytecodes::_fmt_not_simple |
60 Bytecodes::_fmt_has_o));
64 case 2: need_fmt = Bytecodes::_fmt_has_u2; break;
65 case 4: need_fmt = Bytecodes::_fmt_has_u4; break;
67 if (is_wide) need_fmt |= Bytecodes::_fmt_not_simple;
74 void Bytecode::assert_offset_size(int size, Bytecodes::Code bc, bool is_wide) {
75 int have_fmt = Bytecodes::flags(bc, is_wide) & Bytecodes::_all_fmt_bits;
78 case 2: need_fmt = Bytecodes::_fmt_bo2; break;
79 case 4: need_fmt = Bytecodes::_fmt_bo4; break;
81 if (is_wide) need_fmt |= Bytecodes::_fmt_not_simple;
88 void Bytecode::assert_constant_size(int size, int where, Bytecodes::Code bc, bool is_wide) {
89 int have_fmt = Bytecodes::flags(bc, is_wide) & (Bytecodes::_all_fmt_bits
91 & ~Bytecodes::_fmt_has_i);
94 case 1: need_fmt = Bytecodes::_fmt_bc; break;
95 case 2: need_fmt = Bytecodes::_fmt_bc | Bytecodes::_fmt_has_u2; break;
97 if (is_wide) need_fmt |= Bytecodes::_fmt_not_simple;
98 int length = is_wide ? Bytecodes::wide_length_for(bc) : Bytecodes::length_for(bc);
106 void Bytecode::assert_native_index(Bytecodes::Code bc, bool is_wide) {
107 assert((Bytecodes::flags(bc, is_wide) & Bytecodes::_fmt_has_nbo) != 0, "native index");
154 Bytecodes::Code bc = invoke_code();
169 Bytecodes::Code rawc = code();
199 Bytecodes::Code rawc = code();
200 assert(rawc != Bytecodes::_wide, "verifier prevents this");
201 if (Bytecodes::java_code(rawc) == Bytecodes::_ldc)
238 switch (Bytecodes::java_code(code())) {
239 case Bytecodes::_lookupswitch:
252 switch (Bytecodes::java_code(code())) {
253 case Bytecodes::_tableswitch: