@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/importer/index.js
CHANGED
|
@@ -15963,12 +15963,14 @@ class WriteablePage extends MemoryPage {
|
|
|
15963
15963
|
|
|
15964
15964
|
|
|
15965
15965
|
|
|
15966
|
+
|
|
15967
|
+
|
|
15966
15968
|
var AccessType;
|
|
15967
15969
|
(function (AccessType) {
|
|
15968
15970
|
AccessType[AccessType["READ"] = 0] = "READ";
|
|
15969
15971
|
AccessType[AccessType["WRITE"] = 1] = "WRITE";
|
|
15970
15972
|
})(AccessType || (AccessType = {}));
|
|
15971
|
-
|
|
15973
|
+
const memory_logger = Logger.new(import.meta.filename, "pvm:mem");
|
|
15972
15974
|
class Memory {
|
|
15973
15975
|
sbrkIndex;
|
|
15974
15976
|
virtualSbrkIndex;
|
|
@@ -15999,7 +16001,7 @@ class Memory {
|
|
|
15999
16001
|
if (bytes.length === 0) {
|
|
16000
16002
|
return result_Result.ok(result_OK);
|
|
16001
16003
|
}
|
|
16002
|
-
|
|
16004
|
+
memory_logger.insane(`MEM[${address}] <- ${bytes_BytesBlob.blobFrom(bytes)}`);
|
|
16003
16005
|
const pagesResult = this.getPages(address, bytes.length, AccessType.WRITE);
|
|
16004
16006
|
if (pagesResult.isError) {
|
|
16005
16007
|
return result_Result.error(pagesResult.error);
|
|
@@ -16066,7 +16068,7 @@ class Memory {
|
|
|
16066
16068
|
currentPosition += bytesToRead;
|
|
16067
16069
|
bytesLeft -= bytesToRead;
|
|
16068
16070
|
}
|
|
16069
|
-
|
|
16071
|
+
memory_logger.insane(`MEM[${startAddress}] => ${bytes_BytesBlob.blobFrom(result)}`);
|
|
16070
16072
|
return result_Result.ok(result_OK);
|
|
16071
16073
|
}
|
|
16072
16074
|
sbrk(length) {
|