Project

General

Profile

« Previous | Next » 

Revision 1f7234c0

Added by alanwu (Alan Wu) over 1 year ago

YJIT: Lookup IDs on boot instead of binding to them

Previously, the version-controlled cruby_bindings.inc.rs file
contained the build-time artifact id.h, which nobu mentioned hinders
the goal of having fewer magic numbers in the repository.

Lookup the IDs YJIT needs on boot. It costs cycles, but it's fine since
YJIT only uses a handful of IDs at the moment. No perceptible
degradation to boot time found in my testing.