[ 
https://issues.apache.org/jira/browse/GROOVY-11415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Sun updated GROOVY-11415:
--------------------------------
    Description: 
The bytecode for {{===}} and {{!==}} is to invoke static method, e.g. 
\{{compareIdentical}}, \{{compareNotIdentical}}.

We could generate better bytecode by leveraging \{{IF_ACMPEQ}}, \{{IF_ACMPNE}}, 
which is same to the bytecode generated by Java compiler.

  was:The bytecode for \{{===}} and \{{!==}} is to invoke static method, e.g. 
\{{}}


> Tweak bytecode for identity
> ---------------------------
>
>                 Key: GROOVY-11415
>                 URL: https://issues.apache.org/jira/browse/GROOVY-11415
>             Project: Groovy
>          Issue Type: Improvement
>            Reporter: Daniel Sun
>            Assignee: Daniel Sun
>            Priority: Major
>
> The bytecode for {{===}} and {{!==}} is to invoke static method, e.g. 
> \{{compareIdentical}}, \{{compareNotIdentical}}.
> We could generate better bytecode by leveraging \{{IF_ACMPEQ}}, 
> \{{IF_ACMPNE}}, which is same to the bytecode generated by Java compiler.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to