Tagged articles

JSValue

3 articles · Page 1 of 1
Didi Tech
Didi Tech
May 17, 2021 · Backend Development

Implementation of JSValue in JavaScript Engines: Tagged, Boxing, and Pointer Techniques

The article surveys how major JavaScript engines represent the dynamic JSValue type—using QuickJS’s tagged unions, JavaScriptCore’s NaN‑boxing, SpiderMonkey’s nun‑/pun‑boxing, V8’s tagged pointers with compression, and iOS’s Objective‑C pointer tags—explaining each scheme’s memory layout, performance trade‑offs, and design rationale.

JSValueJavaScript engineMemory Optimization
0 likes · 11 min read
Implementation of JSValue in JavaScript Engines: Tagged, Boxing, and Pointer Techniques
Qunar Tech Salon
Qunar Tech Salon
Sep 7, 2018 · Mobile Development

Understanding JavaScriptCore in iOS: Architecture, Components, and Integration

This article explains the role of JavaScriptCore in iOS development, covering its origins in WebKit, the internal architecture of JSCore—including lexer, parser, LLInt and JIT—its key features, and how developers can use JSContext, JSValue, and JSExport to bridge Objective‑C and JavaScript for hybrid applications.

Hybrid DevelopmentJSContextJSValue
0 likes · 30 min read
Understanding JavaScriptCore in iOS: Architecture, Components, and Integration