assemblyscript
Advanced tools
Comparing version 0.27.3 to 0.27.4
{ | ||
"imports": { | ||
"assemblyscript": "https://cdn.jsdelivr.net/npm/assemblyscript@0.27.3/dist/assemblyscript.js", | ||
"assemblyscript/asc": "https://cdn.jsdelivr.net/npm/assemblyscript@0.27.3/dist/asc.js", | ||
"assemblyscript": "https://cdn.jsdelivr.net/npm/assemblyscript@0.27.4/dist/assemblyscript.js", | ||
"assemblyscript/asc": "https://cdn.jsdelivr.net/npm/assemblyscript@0.27.4/dist/asc.js", | ||
"binaryen": "https://cdn.jsdelivr.net/npm/binaryen@112.0.0-nightly.20230411/index.js", | ||
@@ -6,0 +6,0 @@ "long": "https://cdn.jsdelivr.net/npm/long@5.2.1/index.js" |
@@ -1,6 +0,6 @@ | ||
var ASSEMBLYSCRIPT_VERSION = "0.27.3"; | ||
var ASSEMBLYSCRIPT_VERSION = "0.27.4"; | ||
var ASSEMBLYSCRIPT_IMPORTMAP = { | ||
"imports": { | ||
"assemblyscript": "https://cdn.jsdelivr.net/npm/assemblyscript@0.27.3/dist/assemblyscript.js", | ||
"assemblyscript/asc": "https://cdn.jsdelivr.net/npm/assemblyscript@0.27.3/dist/asc.js", | ||
"assemblyscript": "https://cdn.jsdelivr.net/npm/assemblyscript@0.27.4/dist/assemblyscript.js", | ||
"assemblyscript/asc": "https://cdn.jsdelivr.net/npm/assemblyscript@0.27.4/dist/asc.js", | ||
"binaryen": "https://cdn.jsdelivr.net/npm/binaryen@112.0.0-nightly.20230411/index.js", | ||
@@ -7,0 +7,0 @@ "long": "https://cdn.jsdelivr.net/npm/long@5.2.1/index.js" |
@@ -11,3 +11,3 @@ { | ||
], | ||
"version": "0.27.3", | ||
"version": "0.27.4", | ||
"author": "Daniel Wirtz <dcode+assemblyscript@dcode.io>", | ||
@@ -14,0 +14,0 @@ "license": "Apache-2.0", |
@@ -376,4 +376,5 @@ import { AL_BITS, AL_SIZE, AL_MASK, DEBUG, BLOCK, BLOCK_OVERHEAD, BLOCK_MAXSIZE } from "./common"; | ||
/** Adds more memory to the pool. */ | ||
function addMemory(root: Root, start: usize, end: usize): bool { | ||
if (DEBUG) assert(start <= end); // must be valid | ||
function addMemory(root: Root, start: usize, endU64: u64): bool { | ||
let end = <usize>endU64; | ||
if (DEBUG) assert(<u64>start <= endU64); // must be valid | ||
start = ((start + BLOCK_OVERHEAD + AL_MASK) & ~AL_MASK) - BLOCK_OVERHEAD; | ||
@@ -446,3 +447,3 @@ end &= ~AL_MASK; | ||
let pagesAfter = memory.size(); | ||
addMemory(root, <usize>pagesBefore << 16, <usize>pagesAfter << 16); | ||
addMemory(root, <usize>pagesBefore << 16, <u64>pagesAfter << 16); | ||
} | ||
@@ -482,7 +483,7 @@ | ||
if (ASC_LOW_MEMORY_LIMIT) { | ||
const memEnd = <usize>ASC_LOW_MEMORY_LIMIT & ~AL_MASK; | ||
const memEnd = <u64>ASC_LOW_MEMORY_LIMIT & ~AL_MASK; | ||
if (memStart <= memEnd) addMemory(root, memStart, memEnd); | ||
else unreachable(); // low memory limit already exceeded | ||
} else { | ||
addMemory(root, memStart, memory.size() << 16); | ||
addMemory(root, memStart, <u64>memory.size() << 16); | ||
} | ||
@@ -489,0 +490,0 @@ ROOT = root; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7193969
55045