How is Javascript translated to bytecode?

前端 未结 5 1311
滥情空心
滥情空心 2020-12-16 11:30

I can\'t find information on the web how W3C languages compile to machine code. I know that the gap between the web and the processor must be somehow the browser, but how do

5条回答
  •  被撕碎了的回忆
    2020-12-16 11:52

    For Firefox there's some specifications on its bytecodes:

    https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Bytecodes https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Internals/Bytecode

    For V8 it's compiled to native code directly:

    http://jayconrod.com/posts/51/a-tour-of-v8-full-compiler

提交回复
热议问题