tannal / ohmywork

0 stars 0 forks source link

JavaScript Engine #28

Open tannal opened 1 month ago

tannal commented 1 month ago

Interpreter

Just In time Compiler

JSCore http://www.filpizlo.com/slides/pizlo-splash2018-jsc-compiler-slides.pdf

Memory Management & Garbage Collector

v8 & chromium

A minor GC cycle does nothing for DOM Nodes A major GC cycle resolves all JavaScript and DOM reachability and reclaims DOM Nodes

The project started in April 2012, aims to reclaim dom objects in minor gc.

https://docs.google.com/document/d/1OMG0fXB3DDvBaQ2YgxWLzzKjn9nWp8y_oTdQqFkBWhw/edit

https://docs.google.com/presentation/d/1uifwVYGNYTZDoGLyCb7sXa7g49mWNMW2gaWvMN5NLk8/edit#slide=id.g69245a5_4_6

Runtime

tannal commented 3 weeks ago

Case Study add URL.parse in javascript engine runtime

node

in lib/internal/url.js add a static method to URL class

in src/node_url.cc

deno