Where can I find information about Javascript engi

2020-05-11 10:19发布

问题:

I'm looking for books / articles / papers on Javascript engine internals along the lines of the many reference works about the JVM internals, CLR internals, etc. I could (and likely will) look at the source code for JavaScriptCore and V8/Chromium, but if there's a book out there or some other "guided tour" documentation, I'd prefer to read them first. Thanks.

回答1:

One of the in-depth documents could be the ECMA-262 Language Specifications.

A good book on the language's idioms and best practices is JavaScript The Good Parts



回答2:

I was curious about this too, and here's what I found:

About Chrome's Javascript engine (v8):

  • Garbage Collection in V8; For mobile and beyond
  • V8 Internals: Building a High Performance JavaScript Engine
  • Chrome V8 - Design Elements

About Firefox Javascript Engine (Spidermonkey):

  • Spidermonkey Internals
  • Spidermonkey is on diet
  • IonMonkey: Mozilla’s new JavaScript JIT compiler
  • Tracemonkey (obsolete JIT compiler, but however the article is still interesting)

About IE 9+ Javascript Engine (Chakra):

  • Advances in JavaScript Performance in IE10 and Windows 8 - Internals of Chakra

About Safari Javascript engine (SquirrelFish):

  • Announcing SquirrelFish
  • Introducing SquirrelFish Extreme

General overview:

  • JavaScript Engines: Under the Hood
  • The Future of JavaScript Engines: Replace Them With JavaScript Compilers


回答3:

Google have documented a lot about V8. http://code.google.com/p/v8/ There are some interesting videos on the main page ( although you've probably already seen those )