ruby/internal
HASUMI Hitoshi 55a402bb75 Add line_count field to rb_ast_body_t
This patch adds `int line_count` field to `rb_ast_body_t` structure.
Instead, we no longer cast `script_lines` to Fixnum.

## Background

Ref https://github.com/ruby/ruby/pull/10618

In the PR above, we have decoupled IMEMO from `rb_ast_t`.
This means we could lift the five-words-restriction of the structure
that forced us to unionize `rb_ast_t *` and `FIXNUM` in one field.

## Relating refactor

- Remove the second parameter of `rb_ruby_ast_new()` function

## Attention

I will remove a code that assigns -1 to line_count, in `rb_binding_add_dynavars()`
of vm.c, because I don't think it is necessary.
But I will make another PR for this so that we can atomically revert
in case I was wrong (See the comment on the code)
2024-04-27 12:08:26 +09:00
..
2024-03-06 15:33:43 -05:00
2024-04-24 15:30:43 -04:00
2024-04-04 15:00:57 +01:00
2024-01-24 20:51:50 +09:00
2024-01-11 10:09:53 -05:00
2024-03-18 13:52:27 +09:00
2024-03-19 09:26:49 +01:00
2024-01-05 05:51:25 +09:00