The resulting V8 JavaScript engine was designed for speed and introduces new features with that in mind such as hidden class transitions , dynamic code generation , and precise garbage collection . The JavaScript virtual machine used by Chrome , the V8 JavaScript engine , has features such as dynamic code generation , hidden class transitions , and precise garbage collection .