8000 Rust YJIT: Prune more C code (#206) · kddnewton/ruby@f088d99 · GitHub
[go: up one dir, main page]

Skip to content

Commit f088d99

Browse files
authored
Rust YJIT: Prune more C code (ruby#206)
* Remove yjit_core.c * Remove yjit_codegen.c, yjit_codegen.h * Avoid linking with rb_vm_insn_addr2opcode in test mode
1 parent 075b7ed commit f088d99

File tree

8 files changed

+2
-683
lines changed

8 files changed

+2
-683
lines changed

common.mk

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17794,9 +17794,6 @@ yjit.$(OBJEXT): {$(VPATH)}yjit.rb
1779417794
yjit.$(OBJEXT): {$(VPATH)}yjit.rbinc
1779517795
yjit.$(OBJEXT): {$(VPATH)}yjit_asm.c
1779617796
yjit.$(OBJEXT): {$(VPATH)}yjit_asm.h
17797-
yjit.$(OBJEXT): {$(VPATH)}yjit_codegen.c
17798-
yjit.$(OBJEXT): {$(VPATH)}yjit_codegen.h
17799-
yjit.$(OBJEXT): {$(VPATH)}yjit_core.c
1780017797
yjit.$(OBJEXT): {$(VPATH)}yjit_core.h
1780117798
yjit.$(OBJEXT): {$(VPATH)}yjit_iface.c
1780217799
yjit.$(OBJEXT): {$(VPATH)}yjit_iface.h

yjit.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,8 +496,6 @@ rb_get_call_data_ci(struct rb_call_data* cd) {
496496
return cd->ci;
497497
}
498498

499-
#include "yjit_core.c"
500499
#include "yjit_iface.c"
501-
#include "yjit_codegen.c"
502500

503501
#endif // if JIT_ENABLED && PLATFORM_SUPPORTED_P

yjit/src/stats.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ pub extern "C" fn rb_yjit_collect_binding_set() {
267267
#[no_mangle]
268268
pub extern "C" fn rb_yjit_count_side_exit_op(exit_pc: *const VALUE) -> *const VALUE
269269
{
270+
#[cfg(not(test))]
270271
unsafe {
271272
// Get the opcode from the encoded insn handler at this PC
272273
let opcode = rb_vm_insn_addr2opcode((*exit_pc).as_ptr());

yjit_codegen.c

Lines changed: 0 additions & 164 deletions
This file was deleted.

yjit_codegen.h

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)
0