mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 06:14:49 +02:00
6893268: additional dynamic language related optimizations in C2
C2 needs some additional optimizations to be able to handle MethodHandle invokes and invokedynamic instructions at the best performance. Reviewed-by: kvn, never
This commit is contained in:
parent
375527d84e
commit
47f2433a58
52 changed files with 1781 additions and 342 deletions
|
@ -643,7 +643,7 @@ void ClassFileParser::verify_constantvalue(int constantvalue_index, int signatur
|
|||
guarantee_property(value_type.is_int(), "Inconsistent constant value type in class file %s", CHECK);
|
||||
break;
|
||||
case T_OBJECT:
|
||||
guarantee_property((cp->symbol_at(signature_index)->equals("Ljava/lang/String;", 18)
|
||||
guarantee_property((cp->symbol_at(signature_index)->equals("Ljava/lang/String;")
|
||||
&& (value_type.is_string() || value_type.is_unresolved_string())),
|
||||
"Bad string initial value in class file %s", CHECK);
|
||||
break;
|
||||
|
@ -1718,9 +1718,7 @@ methodHandle ClassFileParser::parse_method(constantPoolHandle cp, bool is_interf
|
|||
m->set_exception_table(exception_handlers());
|
||||
|
||||
// Copy byte codes
|
||||
if (code_length > 0) {
|
||||
memcpy(m->code_base(), code_start, code_length);
|
||||
}
|
||||
m->set_code(code_start);
|
||||
|
||||
// Copy line number table
|
||||
if (linenumber_table != NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue