Skip to content

Conversation

@clonker
Copy link
Member

@clonker clonker commented Jul 11, 2024

@ekpyron
Copy link
Collaborator

ekpyron commented Jul 22, 2024

Looks like this is in dire need of a rebase

@clonker clonker force-pushed the immutable_ast_class branch 2 times, most recently from b1ae6a5 to 4247ad4 Compare July 22, 2024 11:36
@clonker clonker requested a review from r0qs July 22, 2024 13:36
@clonker clonker force-pushed the immutable_ast_class branch from 4247ad4 to f261123 Compare July 24, 2024 11:14
Copy link
Collaborator

@cameel cameel left a comment

Choose a reason for hiding this comment

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

No issues on terms of correctness, but could use better naming and the override in compilability checker could be done differently. See comments.

Copy link
Collaborator

@cameel cameel left a comment

Choose a reason for hiding this comment

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

Unfortunately I did find some new stuff on this second pass:

  • I think we should move AsmAnalysisInfo to the AST struct and make it immutable as well. It would reduce the risk of forgetting to update it and we would also be able to calculate it just once per AST.
  • YulOptimizerTest allows arbitrary object nesting but does not handle that properly (only cares about the top-level one). And now with the extra copying added by this PR that gets extra unsafe, because we're not doing full copies of the objects. We should safeguard that with some asserts and maybe consider also actually fixing it properly (later, in a separate PR).

@clonker clonker force-pushed the immutable_ast_class branch from a057641 to 27e2479 Compare August 2, 2024 12:03
@clonker clonker force-pushed the immutable_ast_class branch 2 times, most recently from ae6b298 to ca2eabe Compare August 2, 2024 14:10
@clonker clonker force-pushed the immutable_ast_class branch from ca2eabe to 44bfa72 Compare August 2, 2024 14:28
@ekpyron ekpyron enabled auto-merge August 6, 2024 14:33
@ekpyron ekpyron merged commit c92b32f into develop Aug 6, 2024
@ekpyron ekpyron deleted the immutable_ast_class branch August 6, 2024 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants