@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/index.js
CHANGED
|
@@ -42055,12 +42055,14 @@ class WriteablePage extends MemoryPage {
|
|
|
42055
42055
|
|
|
42056
42056
|
|
|
42057
42057
|
|
|
42058
|
+
|
|
42059
|
+
|
|
42058
42060
|
var AccessType;
|
|
42059
42061
|
(function (AccessType) {
|
|
42060
42062
|
AccessType[AccessType["READ"] = 0] = "READ";
|
|
42061
42063
|
AccessType[AccessType["WRITE"] = 1] = "WRITE";
|
|
42062
42064
|
})(AccessType || (AccessType = {}));
|
|
42063
|
-
|
|
42065
|
+
const memory_logger = Logger.new(import.meta.filename, "pvm:mem");
|
|
42064
42066
|
class Memory {
|
|
42065
42067
|
sbrkIndex;
|
|
42066
42068
|
virtualSbrkIndex;
|
|
@@ -42091,7 +42093,7 @@ class Memory {
|
|
|
42091
42093
|
if (bytes.length === 0) {
|
|
42092
42094
|
return result_Result.ok(result_OK);
|
|
42093
42095
|
}
|
|
42094
|
-
|
|
42096
|
+
memory_logger.insane(`MEM[${address}] <- ${bytes_BytesBlob.blobFrom(bytes)}`);
|
|
42095
42097
|
const pagesResult = this.getPages(address, bytes.length, AccessType.WRITE);
|
|
42096
42098
|
if (pagesResult.isError) {
|
|
42097
42099
|
return result_Result.error(pagesResult.error);
|
|
@@ -42158,7 +42160,7 @@ class Memory {
|
|
|
42158
42160
|
currentPosition += bytesToRead;
|
|
42159
42161
|
bytesLeft -= bytesToRead;
|
|
42160
42162
|
}
|
|
42161
|
-
|
|
42163
|
+
memory_logger.insane(`MEM[${startAddress}] => ${bytes_BytesBlob.blobFrom(result)}`);
|
|
42162
42164
|
return result_Result.ok(result_OK);
|
|
42163
42165
|
}
|
|
42164
42166
|
sbrk(length) {
|