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

[B3] Build fix #25416

Closed
wants to merge 1 commit into from
Closed

Conversation

@sideeffect42 sideeffect42 requested a review from a team as a code owner March 4, 2024 16:25
Reviewed by NOBODY (OOPS!).

In B3Procedure.h typeAtOffset() calls extractFromTuple() which is only
implemented by sub classes.

* Source/JavaScriptCore/b3/B3Procedure.h: making typeAtOffset() virtual.
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Mar 4, 2024
@@ -125,7 +125,7 @@ class Procedure {
JS_EXPORT_PRIVATE const Vector<Type>& tupleForType(Type tuple) const;

unsigned resultCount(Type type) const { return type.isTuple() ? tupleForType(type).size() : type.isNumeric(); }
Type typeAtOffset(Type type, unsigned index) const { ASSERT(index < resultCount(type)); return type.isTuple() ? extractFromTuple(type, index) : type; }
virtual Type typeAtOffset(Type type, unsigned index) const { ASSERT(index < resultCount(type)); return type.isTuple() ? extractFromTuple(type, index) : type; }
Copy link
Contributor

Choose a reason for hiding this comment

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

typeAtOffset is not overridden anywhere, though, so this really shouldn't be virtual.

@sideeffect42 sideeffect42 deleted the b3procedure-build-fix branch March 4, 2024 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merging-blocked Applied to prevent a change from being merged
Projects
None yet
4 participants