@typeberry/jam 0.0.5-cdbb94a → 0.0.5-d373345
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/block-generator/index.js +5 -3
- package/block-generator/index.js.map +1 -1
- package/importer/index.js +5 -3
- package/importer/index.js.map +1 -1
- package/index.js +5 -3
- package/index.js.map +1 -1
- package/package.json +1 -1
package/block-generator/index.js
CHANGED
|
@@ -15502,12 +15502,14 @@ class writeable_page_WriteablePage extends MemoryPage {
|
|
|
15502
15502
|
|
|
15503
15503
|
|
|
15504
15504
|
|
|
15505
|
+
|
|
15506
|
+
|
|
15505
15507
|
var AccessType;
|
|
15506
15508
|
(function (AccessType) {
|
|
15507
15509
|
AccessType[AccessType["READ"] = 0] = "READ";
|
|
15508
15510
|
AccessType[AccessType["WRITE"] = 1] = "WRITE";
|
|
15509
15511
|
})(AccessType || (AccessType = {}));
|
|
15510
|
-
|
|
15512
|
+
const memory_logger = Logger.new(import.meta.filename, "pvm:mem");
|
|
15511
15513
|
class memory_Memory {
|
|
15512
15514
|
sbrkIndex;
|
|
15513
15515
|
virtualSbrkIndex;
|
|
@@ -15538,7 +15540,7 @@ class memory_Memory {
|
|
|
15538
15540
|
if (bytes.length === 0) {
|
|
15539
15541
|
return Result.ok(OK);
|
|
15540
15542
|
}
|
|
15541
|
-
|
|
15543
|
+
memory_logger.insane(`MEM[${address}] <- ${BytesBlob.blobFrom(bytes)}`);
|
|
15542
15544
|
const pagesResult = this.getPages(address, bytes.length, AccessType.WRITE);
|
|
15543
15545
|
if (pagesResult.isError) {
|
|
15544
15546
|
return Result.error(pagesResult.error);
|
|
@@ -15605,7 +15607,7 @@ class memory_Memory {
|
|
|
15605
15607
|
currentPosition += bytesToRead;
|
|
15606
15608
|
bytesLeft -= bytesToRead;
|
|
15607
15609
|
}
|
|
15608
|
-
|
|
15610
|
+
memory_logger.insane(`MEM[${startAddress}] => ${BytesBlob.blobFrom(result)}`);
|
|
15609
15611
|
return Result.ok(OK);
|
|
15610
15612
|
}
|
|
15611
15613
|
sbrk(length) {
|