Firefox 18 Beta - Introducing IonMonkey
Written by Ian Elliot   
Thursday, 29 November 2012

The biggest addition in Firefox 18 is  Mozilla’s new JavaScript JIT compiler called IonMonkey. This promises a  noticeable performance  improvement whenever Firefox is displaying Web apps, games, and other JavaScript-heavy pages.


IonMonkey provides a brand new architecture that allows for optimizations to be introduced into JavaScript JIT compilation. It differs from previous compilers by including an intermediate representation (IR) and has three steps:

  1. Translate JavaScript to an intermediate representation (IR).
  2. Run various algorithms to optimize the IR.
  3. Translate the final IR to machine code.

The optimizations include:

 

  • Loop-Invariant Code Motion (LICM), or moving instructions outside of loops when possible.
  • Sparse Global Value Numbering (GVN), a powerful form of redundant code elimination.
  • Linear Scan Register Allocation (LSRA), the register allocation scheme used in the HotSpot JVM (and until recently, LLVM).
  • Dead Code Elimination (DCE), removing unused instructions.
  • Range Analysis; eliminating bounds checks

The code generation works for x86 both 32bit and 64 bit and for ARM. 

The new design is similar to the techniques used in Chrome's Crankshaft JavaScript engine and should make the two similar in JavaScript performance.

 

Other new features in Firefox 18 are:

  • Retina Display Support for Mac users to make Firefox even sharper when watching movies, playing games and browsing the Web.

  • A facility to disable insecure content on HTTPS secure websites to maintain the privacy of your communication with the website. You can enable the feature in about:config.

  • Support for standard W3C touch events in addition to MozTouch events.

firefoxicon

More Information

Mozilla blog

Related Articles

Firefox 17 Available In Beta

Firefox 16 Has Developer Goodies

Firefox 16 Goes Back To The Command Line

Firefox 15 Is Go Along With A New 3D Game Demo

 

To be informed about new articles on I Programmer, install the I Programmer Toolbar, subscribe to the RSS feed, follow us on, Twitter, Facebook, Google+ or Linkedin,  or sign up for our weekly newsletter.

espbook

 

Comments




or email your comment to: comments@i-programmer.info

Banner


JetBrains Makes WebStorm and Rider Free for Non-Commercial Use
24/10/2024

JetBrains has launched a non-commercial license for its JavaScript and TypeScript IDE, WebStorm, and for Rider, its cross-platform .NET and game development IDE.



The Feds Want Us To Move On From C/C++
13/11/2024

The clamour for safe programming languages seems to be growing and becoming official. We have known for a while that C and C++ are dangerous languages so why has it become such an issue now and is it  [ ... ]


More News

 

Last Updated ( Tuesday, 14 May 2013 )