Skip to content

Conversation

@saghul
Copy link
Contributor

@saghul saghul commented Jan 8, 2026

@saghul saghul marked this pull request as ready for review January 8, 2026 12:44
@saghul saghul force-pushed the refactor-closures branch from c008353 to 4929037 Compare January 8, 2026 12:58
@saghul saghul requested a review from bnoordhuis January 8, 2026 17:36
Copy link
Contributor

@bnoordhuis bnoordhuis left a comment

Choose a reason for hiding this comment

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

Nice work.

uint16_t var_count;
uint16_t defined_arg_count; /* for length function property */
uint16_t stack_size; /* maximum stack size */
uint16_t var_ref_count; /* number of local variable references */
Copy link
Contributor

Choose a reason for hiding this comment

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

This field creates a 6 byte padding hole on 64 bits architectures because of the alignment requirement of the next field. Can maybe be eliminated with some reshuffling.

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'll take a look!

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 did some AI assisted suffling of fields :-) Can you PTAL?

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