summaryrefslogtreecommitdiff
path: root/zjit.c
diff options
context:
space:
mode:
authorTakashi Kokubun <[email protected]>2025-03-07 12:55:47 -0800
committerTakashi Kokubun <[email protected]>2025-04-18 21:52:59 +0900
commit33a052486baa54ab858bd0a06033e90a3c66d2ac (patch)
treed2f0602755e3e1df114be2c882dc4071128d362d /zjit.c
parentd2115562b92e70bea71cfaca175f59587c6a77da (diff)
Assert everything is compiled in test_zjit (https://github.com/Shopify/zjit/pull/40)
* Assert everything is compiled in test_zjit * Update a comment on rb_zjit_assert_compiles Co-authored-by: Maxime Chevalier-Boisvert <[email protected]> * Add a comment about assert_compiles * Actually use pipe_fd --------- Co-authored-by: Maxime Chevalier-Boisvert <[email protected]>
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13131
Diffstat (limited to 'zjit.c')
-rw-r--r--zjit.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/zjit.c b/zjit.c
index 027f4ae7d2..af11ac2949 100644
--- a/zjit.c
+++ b/zjit.c
@@ -677,3 +677,9 @@ rb_iseq_set_zjit_payload(const rb_iseq_t *iseq, void *payload)
RUBY_ASSERT_ALWAYS(NULL == iseq->body->zjit_payload);
iseq->body->zjit_payload = payload;
}
+
+// Primitives used by zjit.rb
+VALUE rb_zjit_assert_compiles(rb_execution_context_t *ec, VALUE self);
+
+// Preprocessed zjit.rb generated during build
+#include "zjit.rbinc"