diff options
author | stephan <stephan@noemail.net> | 2022-12-25 22:55:45 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2022-12-25 22:55:45 +0000 |
commit | ec35e92d1d52cbe92a3a283b510a45c8fb03c9d1 (patch) | |
tree | fc2d8c6e43d8416cf12cb01f40a13edee18e32f1 /ext/wasm/api/sqlite3-api-prologue.js | |
parent | 6431f860aee2805999730e7fa7a9758d9789a90a (diff) | |
download | sqlite-ec35e92d1d52cbe92a3a283b510a45c8fb03c9d1.tar.gz sqlite-ec35e92d1d52cbe92a3a283b510a45c8fb03c9d1.zip |
Rename the new wasm.irSizeof() to sizeofIR() because that seems clearer.
FossilOrigin-Name: 49a83ca3ba46d3ae8021fbdd72b48ce9181eea6845fa7bb7aa83b16fad1728be
Diffstat (limited to 'ext/wasm/api/sqlite3-api-prologue.js')
-rw-r--r-- | ext/wasm/api/sqlite3-api-prologue.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/wasm/api/sqlite3-api-prologue.js b/ext/wasm/api/sqlite3-api-prologue.js index 9bac70448..ff528feef 100644 --- a/ext/wasm/api/sqlite3-api-prologue.js +++ b/ext/wasm/api/sqlite3-api-prologue.js @@ -1021,7 +1021,7 @@ self.sqlite3ApiBootstrap = function sqlite3ApiBootstrap( memory must eventually be released using restore(). If n is a string, it must be a WASM "IR" value in the set - accepted by wasm.irSizeof(), which is mapped to the size of + accepted by wasm.sizeofIR(), which is mapped to the size of that data type. If passed a string not in that set, it throws a WasmAllocError. @@ -1031,7 +1031,7 @@ self.sqlite3ApiBootstrap = function sqlite3ApiBootstrap( heap. Similarly, the returned address is always 8-byte aligned. */ alloc: function(n){ - if('string'===typeof n && !(n = wasm.irSizeof(n))){ + if('string'===typeof n && !(n = wasm.sizeofIR(n))){ WasmAllocError.toss("Invalid value for pstack.alloc(",arguments[0],")"); } return wasm.exports.sqlite3_wasm_pstack_alloc(n) @@ -1043,7 +1043,7 @@ self.sqlite3ApiBootstrap = function sqlite3ApiBootstrap( returns the addresses as an array of n element, each holding the address of one chunk. - sz may optionally be an IR string accepted by wasm.irSizeof(). + sz may optionally be an IR string accepted by wasm.sizeofIR(). Throws a WasmAllocError if allocation fails. @@ -1054,7 +1054,7 @@ self.sqlite3ApiBootstrap = function sqlite3ApiBootstrap( ``` */ allocChunks: function(n,sz){ - if('string'===typeof sz && !(sz = wasm.irSizeof(sz))){ + if('string'===typeof sz && !(sz = wasm.sizeofIR(sz))){ WasmAllocError.toss("Invalid size value for allocChunks(",arguments[1],")"); } const mem = wasm.pstack.alloc(n * sz); |