3 ms·
If you want to see how destination driven code generation (DDCG) works concretely, check out this old presentation by a V8 developer. It shows concretely how D
by eatonphil 4y ago
If you want to see how destination driven code generation (DDCG) works concretely, check out this old presentation by a V8 developer.
It shows concretely how DDCG compares to common optimizations like peephole and top-of-stack caching.
And shows concrete examples of compiling various forms (expressions, assignment, control flow, etc) with DDCG.
The only reason it's on my personal Github is because the original is so hard to find.
https://github.com/eatonphil/one-pass-code-generation-in-v8 https://github.com/eatonphil/one-pass-code-generation-in-v8