3 ms·
Browsers do implement Javascript using a bytecode based VM - https://github.com/WebKit/webkit/tree/master/Source/JavaScriptCore/bytecode https://github.com/WebK
by jballanc 14y ago
Browsers do implement Javascript using a bytecode based VM - https://github.com/WebKit/webkit/tree/master/Source/JavaScriptCore/bytecode https://github.com/WebKit/webkit/tree/master/Source/JavaScri...
It just isn't standardized, or made available to website authors directly (there would likely need to be significant extra security audits before you could contemplate something like that...).
- doublec 14y agoNot all browsers do this. At least one compiles directly to native machine code. Chrome's V8 does this according to http://stackoverflow.com/a/8819921 http://stackoverflow.com/a/8819921