- 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.
- 數據科學實戰手冊(R+Python)
- DevOps:軟件架構師行動指南
- 數據庫程序員面試筆試真題與解析
- Python深度學習
- Learning AWS Lumberyard Game Development
- C/C++常用算法手冊(第3版)
- Learning Apache Kafka(Second Edition)
- HTML5 and CSS3 Transition,Transformation,and Animation
- Visual Basic程序設計習題與上機實踐
- 軟件測試綜合技術
- OpenCV 3 Blueprints
- PHP與MySQL權威指南
- Visual C++從入門到精通(第2版)
- Effective C++:改善程序與設計的55個具體做法(第三版)中文版(雙色)
- 青少年Python趣味編程