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

Apply TCO for sequence and logical operations located at the end of the return statement #1259

Merged
merged 1 commit into from
Oct 23, 2023

Conversation

clover2123
Copy link
Contributor

  • remove unused parameter in toBoolean method
  • optimize bytecode generations in sequence and logical operations

@clover2123 clover2123 marked this pull request as ready for review October 23, 2023 02:28
@@ -982,7 +982,7 @@ class ESCARGOT_EXPORT ValueRef {
ESCARGOT_TYPEDARRAY_REF_LIST(DEFINE_VALUEREF_IS_AS);
#undef DEFINE_VALUEREF_IS_AS

bool toBoolean(ExecutionStateRef* state);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO we should not change public API if possible
and this requirements can be changed later by ECMAScript spec change

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see :) I have reverted toBoolean change.

@ksh8281 ksh8281 merged commit 7f7d8c3 into Samsung:master Oct 23, 2023
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants