Files
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
..
2023-03-06 21:59:23 -08:00
2023-10-05 20:03:54 +09:00
2024-03-06 15:33:43 -05:00
2021-09-10 20:00:06 +09:00
2021-09-10 20:00:06 +09:00
2023-12-07 15:52:35 -05:00
2021-09-10 20:00:06 +09:00
2021-09-10 20:00:06 +09:00
2021-09-10 20:00:06 +09:00
2021-09-10 20:00:06 +09:00
2023-12-07 15:52:35 -05:00
2022-07-03 09:42:44 -07:00
2024-04-24 15:30:43 -04:00
2023-09-24 09:07:52 -04:00
2024-04-04 15:00:57 +01:00
2024-01-24 20:51:50 +09:00
2021-09-10 20:00:06 +09:00
2021-09-10 20:00:06 +09:00
2021-09-10 20:00:06 +09:00
2024-01-11 10:09:53 -05:00
2024-03-18 13:52:27 +09:00
2023-03-06 21:59:23 -08:00
2023-05-21 23:00:27 +09:00
2022-03-30 16:50:46 +09:00
2023-12-07 15:52:35 -05:00
2023-06-05 15:47:16 -04:00
2023-01-18 08:49:32 -05:00
2021-09-10 20:00:06 +09:00
2021-09-10 20:00:06 +09:00
2024-03-19 09:26:49 +01:00
2023-12-07 15:52:35 -05:00
2024-01-05 05:51:25 +09:00
2021-09-10 20:00:06 +09:00
2023-12-07 15:52:35 -05:00
2021-09-10 20:00:06 +09:00
2023-11-24 13:29:04 -05:00
2021-09-10 20:00:06 +09:00