Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8274242: Implement fast-path for ASCII-compatible CharsetEncoders on x86 #5621

Closed
wants to merge 15 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/hotspot/cpu/aarch64/matcher_aarch64.hpp
Expand Up @@ -160,4 +160,7 @@
return true;
}

// Implements a variant of EncodeISOArrayNode that encode ASCII only
static const bool supports_encode_ascii_array = false;

#endif // CPU_AARCH64_MATCHER_AARCH64_HPP
3 changes: 3 additions & 0 deletions src/hotspot/cpu/arm/matcher_arm.hpp
Expand Up @@ -152,4 +152,7 @@
return false;
}

// Implements a variant of EncodeISOArrayNode that encode ASCII only
static const bool supports_encode_ascii_array = false;

#endif // CPU_ARM_MATCHER_ARM_HPP
2 changes: 2 additions & 0 deletions src/hotspot/cpu/ppc/matcher_ppc.hpp
Expand Up @@ -161,5 +161,7 @@
return VM_Version::has_fcfids();
}

// Implements a variant of EncodeISOArrayNode that encode ASCII only
static const bool supports_encode_ascii_array = false;

#endif // CPU_PPC_MATCHER_PPC_HPP
3 changes: 3 additions & 0 deletions src/hotspot/cpu/s390/matcher_s390.hpp
Expand Up @@ -149,4 +149,7 @@
return true;
}

// Implements a variant of EncodeISOArrayNode that encode ASCII only
static const bool supports_encode_ascii_array = false;

#endif // CPU_S390_MATCHER_S390_HPP
3 changes: 3 additions & 0 deletions src/hotspot/cpu/x86/matcher_x86.hpp
Expand Up @@ -192,4 +192,7 @@
return true;
}

// Implements a variant of EncodeISOArrayNode that encode ASCII only
static const bool supports_encode_ascii_array = true;

#endif // CPU_X86_MATCHER_X86_HPP
5 changes: 2 additions & 3 deletions src/hotspot/share/opto/c2compiler.cpp
Expand Up @@ -217,9 +217,8 @@ bool C2Compiler::is_intrinsic_supported(const methodHandle& method, bool is_virt
if (StubRoutines::unsafe_arraycopy() == NULL) return false;
break;
case vmIntrinsics::_encodeAsciiArray:
#if !defined(X86)
return false; // not yet implemented
#endif
if (!Matcher::match_rule_supported(Op_EncodeISOArray) && !Matcher::supports_encode_ascii_array) return false;
break;
case vmIntrinsics::_encodeISOArray:
case vmIntrinsics::_encodeByteISOArray:
if (!Matcher::match_rule_supported(Op_EncodeISOArray)) return false;
Expand Down