Bytecodes::Code bc = invoke_code(); return LinkResolver::resolve_method_statically(bc, constants, index(), THREAD);
}
int Bytecode_member_ref::index() const { // Note: Rewriter::rewrite changes the Java_u2 of an invokedynamic to a native_u4, // at the same time it allocates per-call-site CP cache entries.
Bytecodes::Code rawc = code(); if (has_index_u4(rawc)) return get_index_u4(rawc); else return get_index_u2_cpcache(rawc);
}
int Bytecode_member_ref::pool_index() const { return cpcache_entry()->constant_pool_index();
}
ConstantPoolCacheEntry* Bytecode_member_ref::cpcache_entry() const { int index = this->index(); return cpcache()->entry_at(ConstantPool::decode_cpcache_index(index, true));
}
int Bytecode_loadconstant::pool_index() const { int index = raw_index(); if (has_cache_index()) { return _method->constants()->object_to_cp_index(index);
} return index;
}
BasicType Bytecode_loadconstant::result_type() const { int index = pool_index(); return _method->constants()->basic_type_for_constant_at(index);
}
void Bytecode_lookupswitch::verify() const { switch (Bytecodes::java_code(code())) { case Bytecodes::_lookupswitch:
{ int i = number_of_pairs() - 1; while (i-- > 0) {
assert(pair_at(i).match() < pair_at(i+1).match(), "unsorted table entries");
}
} break; default:
fatal("not a lookupswitch bytecode");
}
}
void Bytecode_tableswitch::verify() const { switch (Bytecodes::java_code(code())) { case Bytecodes::_tableswitch:
{ int lo = low_key(); int hi = high_key();
assert (hi >= lo, "incorrect hi/lo values in tableswitch"); int i = hi - lo - 1 ; while (i-- > 0) { // no special check needed
}
} break; default:
fatal("not a tableswitch bytecode");
}
}
#endif
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet am 2026-06-10)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.