Tag

Engine Internals

0 views collected around this technical thread.

JD Tech Talk
JD Tech Talk
Sep 19, 2024 · Fundamentals

Porting the V8 JavaScript Engine to HarmonyOS: Background, Architecture, Tool Selection, and Cross‑Compilation Process

This article explains the need to adapt the Roma framework for HarmonyOS by selecting and analyzing the V8 JavaScript engine, describes its internal components such as the parser, Ignition interpreter, TurboFan JIT compiler and Orinoco garbage collector, and provides a step‑by‑step guide for cross‑compiling V8 with CMake, GN, Ninja and tool‑chain files to produce a usable library for HarmonyOS native projects.

Engine InternalsHarmonyOSJavaScript
0 likes · 36 min read
Porting the V8 JavaScript Engine to HarmonyOS: Background, Architecture, Tool Selection, and Cross‑Compilation Process
NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
Feb 5, 2024 · Fundamentals

How V8 Implements JavaScript Closures

V8 creates JavaScript closures by lazily parsing functions, using a pre‑parser to detect and record outer‑variable references, copying captured values to the heap, then generating bytecode that builds a function context and closure, ensuring efficient execution while avoiding memory‑leak pitfalls.

BytecodeClosuresEngine Internals
0 likes · 16 min read
How V8 Implements JavaScript Closures
Xueersi Online School Tech Team
Xueersi Online School Tech Team
Nov 26, 2021 · Fundamentals

Understanding V8 Engine Memory Allocation and Garbage Collection

This article explains how the V8 JavaScript engine allocates memory, why garbage collection is necessary, describes the memory layout of new and old generations, reviews common GC algorithms such as reference counting, mark‑sweep, mark‑compact and incremental marking, and offers practical tips for writing high‑performance JavaScript code.

Engine InternalsGarbage CollectionJavaScript
0 likes · 22 min read
Understanding V8 Engine Memory Allocation and Garbage Collection
ByteDance Terminal Technology
ByteDance Terminal Technology
Sep 9, 2021 · Mobile Development

Resolving Thread Merging Issues in Flutter Multi‑Engine PlatformView Scenarios

This article explains the thread‑merging problem that arises when using PlatformView in Flutter’s multi‑engine setups, analyzes the root causes in both independent and lightweight engines, and presents a comprehensive solution that modifies the engine’s task‑runner merging logic to support one‑to‑many merges.

Engine InternalsFlutterMulti-Engine
0 likes · 27 min read
Resolving Thread Merging Issues in Flutter Multi‑Engine PlatformView Scenarios