Skip to content

Drop dummy_line_node usage #2401

Closed
Closed

Description

@kddnewton

Previously we always had to pass in a NODE* to add instructions to iseqs because that was what was required. However, since ruby/ruby#9898, we can now pass in line number and node id directly. This provides us with an opportunity to remove our dependency on NODE entirely by instead passing in our own pm_line_column_t struct. This should speed things up and make them simpler at the same time.

As a side benefit, this also means that we may not need to support node id. If we slot in the column values instead of node ids, it's possible that we could re-derive the node that generated the instruction sequence from that. No promises, but it seems possible. So this ticket also serves as the basis for our potential future support for error highlight.

Activity

  1. added
    enhancement
    on Feb 13, 2024
  2. added this to the CRuby unblocked milestone on Feb 14, 2024
  3. kddnewton commented on Apr 12, 2024

    @kddnewton
    CollaboratorAuthor

    Done on master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    compilerenhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions