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 ref.cast_nop_static #4656

Merged
merged 2 commits into from
May 11, 2022
Merged

Add ref.cast_nop_static #4656

merged 2 commits into from
May 11, 2022

Conversation

tlively
Copy link
Member

@tlively tlively commented May 10, 2022

This unsafe experimental instruction is semantically equivalent to
ref.cast_static, but V8 will unsafely turn it into a nop. This is meant to help
us measure cast overhead more precisely than we can by globally turning all
casts into nops.

This unsafe experimental instruction is semantically equivalent to
ref.cast_static, but V8 will unsafely turn it into a nop. This is meant to help
us measure cast overhead more precisely than we can by globally turning all
casts into nops.
@tlively
Copy link
Member Author

tlively commented May 10, 2022

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@tlively tlively requested a review from kripken May 10, 2022 20:54
Copy link
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

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

lgtm % comment

@@ -810,10 +810,12 @@ class Builder {
ret->finalize();
return ret;
}
RefCast* makeRefCast(Expression* ref, HeapType intendedType) {
RefCast*
makeRefCast(Expression* ref, HeapType intendedType, bool unsafe = false) {
Copy link
Member

Choose a reason for hiding this comment

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

This could be an enum perhaps, Safe/Unsafe or Checked/Unchecked or such?

@tlively tlively merged commit 57bef0d into main May 11, 2022
@tlively tlively deleted the ref-cast-nop-static branch May 11, 2022 18:23
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