Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

JavaScript engine

From Simple English Wikipedia, the free encyclopedia
V8 (JavaScript engine) logo

AJavaScript engine is a program that runsJavaScript code.Web Browsers often have a JavaScript engine. It can also be used outside of web browsers, such as running services inNode.js or apps in the electronframework.

Design

[change |change source]

JavaScript was originally created as ascripting language to allowweb pages to have changing, or dynamic, elements. Early Javascript engines were created asinterpreters, programs that simply read the script and execute the instructions without analyzing it any more.

As JavaScript started being used more and more as ageneral-purpose language, execution speed, or how quickly the code is run, became more important for JavaScript engines. In response, many engines, such as V8 (Used inChrome andChromium) and SpiderMonkey (used inFirefox), started using Just-In-Time Compilation. In this method, it starts bycompiling all of the code to optimizedmachine code, which is typically faster than interpretation, then running the result.[1][2]

References

[change |change source]
  1. Doglio, Fernando (2020-08-12)."The JIT in #".Medium. Retrieved2021-01-02.
  2. "A crash course in just-in-time (JIT) compilers – Mozilla Hacks - the Web developer blog".Mozilla Hacks – the Web developer blog. Retrieved2021-01-02.
Thisshort article abouttechnology can be made longer. You can help Wikipedia byadding to it.
Retrieved from "https://simple.wikipedia.org/w/index.php?title=JavaScript_engine&oldid=10440162"
Category:
Hidden category:

[8]ページ先頭

©2009-2026 Movatter.jp