mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
ZJIT: Add --zjit-stats (#14034)
This commit is contained in:
parent
a66e4f2154
commit
b22eb0e468
17 changed files with 212 additions and 25 deletions
10
zjit.c
10
zjit.c
|
@ -15,6 +15,7 @@
|
|||
#include "builtin.h"
|
||||
#include "insns.inc"
|
||||
#include "insns_info.inc"
|
||||
#include "zjit.h"
|
||||
#include "vm_sync.h"
|
||||
#include "vm_insnhelper.h"
|
||||
#include "probes.h"
|
||||
|
@ -22,7 +23,6 @@
|
|||
#include "iseq.h"
|
||||
#include "ruby/debug.h"
|
||||
#include "internal/cont.h"
|
||||
#include "zjit.h"
|
||||
|
||||
// For mmapp(), sysconf()
|
||||
#ifndef _WIN32
|
||||
|
@ -331,9 +331,6 @@ rb_iseq_set_zjit_payload(const rb_iseq_t *iseq, void *payload)
|
|||
iseq->body->zjit_payload = payload;
|
||||
}
|
||||
|
||||
// Primitives used by zjit.rb
|
||||
VALUE rb_zjit_assert_compiles(rb_execution_context_t *ec, VALUE self);
|
||||
|
||||
void
|
||||
rb_zjit_print_exception(void)
|
||||
{
|
||||
|
@ -349,5 +346,10 @@ rb_zjit_shape_obj_too_complex_p(VALUE obj)
|
|||
return rb_shape_obj_too_complex_p(obj);
|
||||
}
|
||||
|
||||
// Primitives used by zjit.rb. Don't put other functions below, which wouldn't use them.
|
||||
VALUE rb_zjit_assert_compiles(rb_execution_context_t *ec, VALUE self);
|
||||
VALUE rb_zjit_stats(rb_execution_context_t *ec, VALUE self);
|
||||
VALUE rb_zjit_stats_enabled_p(rb_execution_context_t *ec, VALUE self);
|
||||
|
||||
// Preprocessed zjit.rb generated during build
|
||||
#include "zjit.rbinc"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue