summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2024-01-17 16:45:57 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2024-01-22 19:39:34 +0900
commit127b19ab561b5365884b465d50356a1e4019713c (patch)
tree3efd404748d23a86992531fe287ec34b4f1dd2b9 /vm_core.h
parent15f6ee057d800d54f803449d6bd4a8aadea524c1 (diff)
Use line numbers as builtin-index
The order of iseq may differ from the order of tokens, typically `while`/`until` conditions are put after the body. These orders can match by using line numbers as builtin-indexes, but at the same time, it introduces the restriction that multiple `cexpr!` and `cstmt!` cannot appear in the same line. Another possible idea is to use `RubyVM::AbstractSyntaxTree` and `node_id` instead of ripper, with making BASERUBY 3.1 or later.
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/vm_core.h b/vm_core.h
index 743071ac85..881e1beaac 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -747,7 +747,6 @@ typedef struct rb_vm_struct {
st_table *frozen_strings;
const struct rb_builtin_function *builtin_function_table;
- int builtin_inline_index;
struct rb_id_table *negative_cme_table;
st_table *overloaded_cme_table; // cme -> overloaded_cme