- 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.
- DB2 V9權(quán)威指南
- C語言程序設(shè)計教程
- JSP網(wǎng)絡(luò)編程(學(xué)習(xí)筆記)
- 流量的秘密:Google Analytics網(wǎng)站分析與優(yōu)化技巧(第2版)
- PostgreSQL Cookbook
- JavaScript語言精髓與編程實踐(第3版)
- PHP網(wǎng)絡(luò)編程學(xué)習(xí)筆記
- 軟件架構(gòu):Python語言實現(xiàn)
- Python完全自學(xué)教程
- Mastering JavaScript Design Patterns(Second Edition)
- 低代碼平臺開發(fā)實踐:基于React
- Java高并發(fā)核心編程(卷1):NIO、Netty、Redis、ZooKeeper
- Processing創(chuàng)意編程指南
- Mastering Embedded Linux Programming
- 軟件測試分析與實踐