Method-based Trace Compilation for TraceMonkey JavaScript Engine

Jin-Seok Oh, Won-Ki Jung, Hyeong‐Seok Oh, Soo‐Mook Moon · 2011

As full web browsing is more important, JavaScript performance is getting more important than in the past Mozilla's TraceMonkey employs a Just-In-Time Compiler for improving performance of javascript. But, In real web sites, Hot-loop that is a unit of Trace is less important than in traditional program. Although hot-method is also hot-path, hot-method is not compiled but executed by interpreter. so we developed a method-based Trace for TraceMonkey. Using a rule for existing Trace, between loop-based Trace and method-based Trace are not conflict. However, Sunspider that is used for benchmark does not represent real web environment. so hot-method is not dominant part and performance is not improved, There, the new and simple method for method-based compiler is necessary.

Read the paper · More papers on PaperTik