summaryrefslogtreecommitdiff
path: root/yjit.rb
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2024-02-08 15:46:53 -0500
committerKevin Newton <kddnewton@gmail.com>2024-02-09 17:01:27 -0500
commitf7467e70e1803a230f9a0bf013c8134c1dde2c94 (patch)
tree93e44ceabef6cf1ee9206eedee56b7f37af31035 /yjit.rb
parente96c838ca40be75b57af289a182bb0ed6adaf829 (diff)
Split line_no and node_id before new_insn_body
Before this commit, there were many places where we had to generate dummy line nodes to hold both the line number and the node id that would then immediately get pulled out from the created node. Now we pass them explicitly so that we don't have to generate these nodes. This makes a clearer line between the parser and compiler, and also makes it easier to generate instructions when we don't have a specific node to tie them to. As such, it removes almost every single place where we needed to previously generate dummy nodes. This also makes it easier for the prism compiler, because now we can pass in line number and node id instead of trying to generate dummy nodes for every instruction that we compile.
Diffstat (limited to 'yjit.rb')
0 files changed, 0 insertions, 0 deletions