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

add packed type for type equal #2215

Merged
merged 2 commits into from
May 15, 2023
Merged

add packed type for type equal #2215

merged 2 commits into from
May 15, 2023

Conversation

kylo5aby
Copy link

No description provided.

@@ -354,6 +354,11 @@ wasm_ref_type_equal(const wasm_ref_type_t *ref_type1,
type1 = ref_type1_norm.value_type;
type2 = ref_type2_norm.value_type;

if ((type1 == VALUE_TYPE_I8 && type2 == VALUE_TYPE_I8)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This will not work, if value type is set to VALUE_TYPE_I8 or I16, seems in L348 the wasm_ref_type_normalize will fail and this function returned directly?

I think we should modify the implementation of wasm_ref_type_normalize to process VALUE_TYPE_I8 and VALUE_TYPE_I16?

Copy link
Author

Choose a reason for hiding this comment

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

thanks for advice, seems in wasm_ref_type_normalize, on condition doesn't contain VALUE_TYPE_I16/I8, I'll fix it

@wenyongh wenyongh merged commit ea3b828 into bytecodealliance:dev/gc_refactor May 15, 2023
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.

3 participants