- Learn WebAssembly
- Mike Rourke
- 188字
- 2021-08-13 15:38:53
WebAssembly store and object caches
Before digging into interactions, let's discuss the relationship between JavaScript and WebAssembly in the context of execution. The Core Specification contains the following description in the Execution section:
Execution behavior is defined in terms of an abstract machine that models the program state. It includes a stack, which records operand values and control constructs, and an abstract store containing global state."
Under the hood, JavaScript uses something called agents to manage execution. The store being referred to in the definition is contained within an agent. The following diagram represents a JavaScript agent:

The store represents the state of the abstract machine. WebAssembly operations take a store and return an updated store. Each agent is associated with caches that map JavaScript objects to WebAssembly addresses. So why is this important? It represents the underlying method of interaction between WebAssembly modules and JavaScript. The JavaScript objects correspond to the WebAssembly namespace within the JavaScript API. With that in mind, let's dig into the interface.
- Clojure Programming Cookbook
- 兩周自制腳本語言
- Mastering Python Scripting for System Administrators
- Blender 3D Incredible Machines
- Drupal 8 Module Development
- 運(yùn)用后端技術(shù)處理業(yè)務(wù)邏輯(藍(lán)橋杯軟件大賽培訓(xùn)教材-Java方向)
- Swift Playgrounds少兒趣編程
- Visual Basic程序設(shè)計(jì)教程
- 一本書講透Java線程:原理與實(shí)踐
- C++語言程序設(shè)計(jì)
- UX Design for Mobile
- 計(jì)算機(jī)系統(tǒng)解密:從理解計(jì)算機(jī)到編寫高效代碼
- AI輔助編程Python實(shí)戰(zhàn):基于GitHub Copilot和ChatGPT
- iOS程序員面試筆試真題與解析
- Java EE 7 First Look