mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
6892658: C2 should optimize some stringbuilder patterns
Reviewed-by: kvn, twisti
This commit is contained in:
parent
63cc2211ed
commit
9db2092b1b
35 changed files with 2245 additions and 115 deletions
|
@ -303,6 +303,11 @@ inline bool match_F_R(jshort flags) {
|
|||
const int neg = JVM_ACC_STATIC | JVM_ACC_SYNCHRONIZED;
|
||||
return (flags & (req | neg)) == req;
|
||||
}
|
||||
inline bool match_F_Y(jshort flags) {
|
||||
const int req = JVM_ACC_SYNCHRONIZED;
|
||||
const int neg = JVM_ACC_STATIC;
|
||||
return (flags & (req | neg)) == req;
|
||||
}
|
||||
inline bool match_F_RN(jshort flags) {
|
||||
const int req = JVM_ACC_NATIVE;
|
||||
const int neg = JVM_ACC_STATIC | JVM_ACC_SYNCHRONIZED;
|
||||
|
@ -361,6 +366,7 @@ const char* vmIntrinsics::short_name_as_C_string(vmIntrinsics::ID id, char* buf,
|
|||
const char* sname = vmSymbols::name_for(signature_for(id));
|
||||
const char* fname = "";
|
||||
switch (flags_for(id)) {
|
||||
case F_Y: fname = "synchronized "; break;
|
||||
case F_RN: fname = "native "; break;
|
||||
case F_SN: fname = "native static "; break;
|
||||
case F_S: fname = "static "; break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue