3 ms·
From http://brewhouse.io/blog/2014/09/19/ruby-kaigi-2014-day-2 http://brewhouse.io/blog/2014/09/19/ruby-kaigi-2014-day-2 RuJIT is a Trace-based JIT compiler,
by ksec 12y ago
From
http://brewhouse.io/blog/2014/09/19/ruby-kaigi-2014-day-2 http://brewhouse.io/blog/2014/09/19/ruby-kaigi-2014-day-2
RuJIT is a Trace-based JIT compiler, similar to the approach taken by Firefox’s JS VM. It is based on the current version of CRuby, and resulted in ~2-5X speedup compared to trunk (and up to 100X in some cases).
Note: The Firefox JS VM in the article was referring to Tracemonkey. Mozilla abandoned it and use Method JIT Compiler IonMonkey instead. A better Trace Based JIT example would be LuaJIT.
- amaranth 12y agoDoesn't Firefox use IonMonkey for general method JITing and TraceMonkey for hotspots?
- simonster 12y agoNo. Firefox has an interpreter, a baseline method JIT ("Baseline"), and an optimizing method JIT (IonMonkey). TraceMonkey was removed several years ago after JaegerMonkey got type inference (see http://blog.mozilla.org/nnethercote/category/tracemonkey/ http://blog.mozilla.org/nnethercote/category/tracemonkey/).
- DanWaterworth 12y agoIndeed. Pypy is another example of a trace based jit.