Skip to content

Commit

Permalink
Revert "Stop recognizing UTF16_Encoder.encodeUTF16" methods (1)
Browse files Browse the repository at this point in the history
This commit restores the helper entries for encodeUTF16Big
and encodeUTF16Little for p and x platforms that were removed
by eclipse-omr#7548.

Signed-off-by: KONNO Kazuhiro <[email protected]>
  • Loading branch information
knn-k committed Dec 2, 2024
1 parent 37e9b35 commit d9a0b9e
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 17 deletions.
3 changes: 3 additions & 0 deletions compiler/codegen/OMRCodeGenerator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1685,6 +1685,9 @@ class OMR_EXTENSIBLE CodeGenerator
bool getSupportsArrayTranslateTROT() {return _flags4.testAny(SupportsArrayTranslateTROT);}
void setSupportsArrayTranslateTROT() {_flags4.set(SupportsArrayTranslateTROT);}

bool getSupportsEncodeUtf16LittleWithSurrogateTest() { return false; }
bool getSupportsEncodeUtf16BigWithSurrogateTest() { return false; }

bool getSupportsArraySet() {return _flags1.testAny(SupportsArraySet);}
void setSupportsArraySet() {_flags1.set(SupportsArraySet);}

Expand Down
2 changes: 1 addition & 1 deletion compiler/control/OMROptions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ enum TR_CompilationOptions
TR_DisableInvariantCodeMotion = 0x00008000 + 28,
TR_EnableSelfTuningScratchMemoryUsageBeforeCompile = 0x00010000 + 28,
TR_EnableSelfTuningScratchMemoryUsageInTrMemory = 0x00020000 + 28,
// Available = 0x00040000 + 28,
TR_DisableUTF16BEEncoder = 0x00040000 + 28,
// Available = 0x00080000 + 28,
TR_DisableDAATrailingZero = 0x00100000 + 28,
TR_DisableDynamicRIBufferProcessing = 0x00200000 + 28,
Expand Down
38 changes: 22 additions & 16 deletions compiler/runtime/Helpers.inc
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,9 @@ SETVAL(TR_IA32JitMethodMonitorExitReserved,TR_LXRH+28)
SETVAL(TR_IA32arrayTranslateTRTO, TR_LXRH+29)
SETVAL(TR_IA32arrayTranslateTROTNoBreak, TR_LXRH+30)
SETVAL(TR_IA32arrayTranslateTROT, TR_LXRH+31)
SETVAL(TR_IA32numRuntimeHelpers,TR_LXRH+32)
SETVAL(TR_IA32encodeUTF16Big,TR_LXRH+32)
SETVAL(TR_IA32encodeUTF16Little,TR_LXRH+33)
SETVAL(TR_IA32numRuntimeHelpers,TR_LXRH+34)

SETVAL(TR_AMD64floatRemainder,TR_LXRH+0)
SETVAL(TR_AMD64doubleRemainder,TR_LXRH+1)
Expand Down Expand Up @@ -234,10 +236,12 @@ SETVAL(TR_AMD64clockGetTime,TR_LXRH+26)
SETVAL(TR_AMD64arrayTranslateTRTO, TR_LXRH+27)
SETVAL(TR_AMD64arrayTranslateTROTNoBreak, TR_LXRH+28)
SETVAL(TR_AMD64arrayTranslateTROT, TR_LXRH+29)
SETVAL(TR_AMD64doAESENCEncrypt,TR_LXRH+30)
SETVAL(TR_AMD64doAESENCDecrypt,TR_LXRH+31)
SETVAL(TR_AMD64java_util_zip_CRC32C_updateBytes,TR_LXRH+32)
SETVAL(TR_AMD64numRuntimeHelpers,TR_LXRH+33)
SETVAL(TR_AMD64encodeUTF16Big,TR_LXRH+30)
SETVAL(TR_AMD64encodeUTF16Little,TR_LXRH+31)
SETVAL(TR_AMD64doAESENCEncrypt,TR_LXRH+32)
SETVAL(TR_AMD64doAESENCDecrypt,TR_LXRH+33)
SETVAL(TR_AMD64java_util_zip_CRC32C_updateBytes,TR_LXRH+34)
SETVAL(TR_AMD64numRuntimeHelpers,TR_LXRH+35)

SETVAL(TR_PPClongDivide,TR_FSRH)
SETVAL(TR_PPCnativeStaticHelper,TR_FSRH+1)
Expand Down Expand Up @@ -320,17 +324,19 @@ SETVAL(TR_PPCquadWordArrayCopy_vsx, TR_FSRH+77)
SETVAL(TR_PPCforwardQuadWordArrayCopy_vsx, TR_FSRH+78)
SETVAL(TR_PPCpostP10ForwardCopy, TR_FSRH+79)
SETVAL(TR_PPCpostP10GenericCopy, TR_FSRH+80)
SETVAL(TR_PPCP256Multiply, TR_FSRH+81)
SETVAL(TR_PPCP256Mod, TR_FSRH+82)
SETVAL(TR_PPCP256addNoMod, TR_FSRH+83)
SETVAL(TR_PPCP256subNoMod, TR_FSRH+84)
SETVAL(TR_PPCAESCBCDecrypt, TR_FSRH+85)
SETVAL(TR_PPCAESCBCEncrypt, TR_FSRH+86)
SETVAL(TR_PPCinterpreterUnresolvedConstantDynamicGlue, TR_FSRH+87)
SETVAL(TR_PPCcrc32_vpmsum, TR_FSRH+88)
SETVAL(TR_PPCcrc32_no_vpmsum, TR_FSRH+89)
SETVAL(TR_PPCcrc32_oneByte, TR_FSRH+90)
SETVAL(TR_PPCnumRuntimeHelpers,TR_FSRH+91)
SETVAL(TR_PPCencodeUTF16Big, TR_FSRH+81)
SETVAL(TR_PPCencodeUTF16Little, TR_FSRH+82)
SETVAL(TR_PPCP256Multiply, TR_FSRH+83)
SETVAL(TR_PPCP256Mod, TR_FSRH+84)
SETVAL(TR_PPCP256addNoMod, TR_FSRH+85)
SETVAL(TR_PPCP256subNoMod, TR_FSRH+86)
SETVAL(TR_PPCAESCBCDecrypt, TR_FSRH+87)
SETVAL(TR_PPCAESCBCEncrypt, TR_FSRH+88)
SETVAL(TR_PPCinterpreterUnresolvedConstantDynamicGlue, TR_FSRH+89)
SETVAL(TR_PPCcrc32_vpmsum, TR_FSRH+90)
SETVAL(TR_PPCcrc32_no_vpmsum, TR_FSRH+91)
SETVAL(TR_PPCcrc32_oneByte, TR_FSRH+92)
SETVAL(TR_PPCnumRuntimeHelpers,TR_FSRH+93)

SETVAL(TR_ARMdouble2Long,TR_FSRH)
SETVAL(TR_ARMdoubleRemainder,TR_FSRH+1)
Expand Down

0 comments on commit d9a0b9e

Please sign in to comment.