Google has rolled out Chrome 91 on the stable channel, with the latest version of the browser bringing tons of features including the super-fast non-optimizing Sparkplug compiler, that compiles bytecode to machine code.

While Google had earlier introduced a two-tier compiler system in the V8 engine made up of Ignition and Turbofan for JavaScript execution in Chrome browser. The Ignition is responsible for executing the JavaScript while Turbofan optimizes the code for maximum performance, these compilers make tradeoffs during the different phases of JavaScript execution.

As part of Chrome’s V8 JavaScript/WebAssembly engine, Sparkplug will be nestled between the Ignition interpreter and the TurboFan optimizing compiler; thus filling the gap between the JavaScript execution tradeoffs.

How Sparkplug compiler will ensure faster performance in Chrome?



Sparkplug does not depend on gathered information while executing JavaScript for generating machine native codes, which allows for quicker execution and generating high-performance codes.



It compiles directly from bytecode instead of JavaScript source; thus Sparkplug compiles functions already compiled to bytecode, and the bytecode compiler having done work such as determining if parentheses are arrow functions, variable resolution, and desugaring destructuring statements.

And given that it compiles directly to machine code through a single linear pass over the bytecode, it emits code that matches the execution of that bytecode.

How to Download or Upgrade to Chrome 91?



Google updates for Chrome happens in the background, and also, users can install the latest version manually, by clicking on "About Google Chrome" from the Help menu; with the result tab display showing if the browser has been updated or the download-and-upgrade button.

Apart from the Sparkplug compiler feature, the new update also brings many performance improvement under the hood, which according to Google, Chrome 91 is 23 percent faster than the previous version.

Chrome Sparkplug compiler to boost JavaScript performance

Google has rolled out Chrome 91 on the stable channel, with the latest version of the browser bringing tons of features including the super-fast non-optimizing Sparkplug compiler, that compiles bytecode to machine code.

While Google had earlier introduced a two-tier compiler system in the V8 engine made up of Ignition and Turbofan for JavaScript execution in Chrome browser. The Ignition is responsible for executing the JavaScript while Turbofan optimizes the code for maximum performance, these compilers make tradeoffs during the different phases of JavaScript execution.

As part of Chrome’s V8 JavaScript/WebAssembly engine, Sparkplug will be nestled between the Ignition interpreter and the TurboFan optimizing compiler; thus filling the gap between the JavaScript execution tradeoffs.

How Sparkplug compiler will ensure faster performance in Chrome?



Sparkplug does not depend on gathered information while executing JavaScript for generating machine native codes, which allows for quicker execution and generating high-performance codes.



It compiles directly from bytecode instead of JavaScript source; thus Sparkplug compiles functions already compiled to bytecode, and the bytecode compiler having done work such as determining if parentheses are arrow functions, variable resolution, and desugaring destructuring statements.

And given that it compiles directly to machine code through a single linear pass over the bytecode, it emits code that matches the execution of that bytecode.

How to Download or Upgrade to Chrome 91?



Google updates for Chrome happens in the background, and also, users can install the latest version manually, by clicking on "About Google Chrome" from the Help menu; with the result tab display showing if the browser has been updated or the download-and-upgrade button.

Apart from the Sparkplug compiler feature, the new update also brings many performance improvement under the hood, which according to Google, Chrome 91 is 23 percent faster than the previous version.

No comments