porffor 0.57.17 → 0.57.18

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.
@@ -13,7 +13,7 @@ params:[127,127,127,127],typedParams:1,returns:[127,127],
13
13
  locals:[127,127,127,127,127],localNames:["a","a#type","b","b#type","al","bl","out","i","ptr"],
14
14
  }
15
15
  this.__Porffor_object_hash = {
16
- wasm:()=>[[32,1],[65,5],[70],[4,64],[65,0],[15],[26],[11],[32,0],[33,2],[32,0],[40,0,0],[33,3],[65,197,187,242,136,120],[32,3],[115],[65,147,131,128,8],[108],[33,4],[32,1],[65,195,1],[70],[4,64],[32,2],[32,3],[106],[65,8],[107],[33,5],[3,64],[32,2],[32,5],[76],[4,64],[32,2],[41,0,4],[33,6],[32,4],[32,6],[66,32],[136],[167],[115],[65,147,131,128,8],[108],[32,6],[167],[115],[65,147,131,128,8],[108],[33,4],[32,2],[65,8],[106],[33,2],[12,1],[11],[11],[32,2],[41,0,4],[32,2],[32,5],[107],[65,8],[108],[173],[34,7],[134],[32,7],[136],[33,6],[32,4],[32,6],[66,32],[136],[167],[115],[65,147,131,128,8],[108],[32,6],[167],[115],[65,147,131,128,8],[108],[33,4],[5],[32,2],[32,3],[65,2],[108],[106],[65,8],[107],[33,5],[3,64],[32,2],[32,5],[76],[4,64],[32,2],[41,0,4],[33,6],[32,4],[32,6],[66,48],[136],[66,255,1],[131],[66,24],[134],[32,6],[66,32],[136],[66,255,1],[131],[66,16],[134],[132],[32,6],[66,16],[136],[66,255,1],[131],[66,8],[134],[132],[32,6],[66,255,1],[131],[132],[167],[115],[65,147,131,128,8],[108],[33,4],[32,2],[65,8],[106],[33,2],[12,1],[11],[11],[32,2],[41,0,4],[32,2],[32,5],[107],[65,8],[108],[173],[34,7],[134],[32,7],[136],[33,6],[32,4],[32,6],[66,48],[136],[66,255,1],[131],[66,24],[134],[32,6],[66,32],[136],[66,255,1],[131],[66,16],[134],[132],[32,6],[66,16],[136],[66,255,1],[131],[66,8],[134],[132],[32,6],[66,255,1],[131],[132],[167],[115],[65,147,131,128,8],[108],[33,4],[11],[32,4],[15]],
16
+ wasm:()=>[[32,1],[65,5],[70],[4,64],[65,0],[15],[26],[11],[32,0],[33,2],[32,0],[40,0,0],[33,3],[65,197,187,242,136,120],[32,3],[115],[65,147,131,128,8],[108],[33,4],[32,2],[32,3],[106],[65,8],[107],[33,5],[3,64],[32,2],[32,5],[76],[4,64],[32,2],[41,0,4],[33,6],[32,4],[32,6],[66,32],[136],[167],[115],[65,147,131,128,8],[108],[32,6],[167],[115],[65,147,131,128,8],[108],[33,4],[32,2],[65,8],[106],[33,2],[12,1],[11],[11],[32,2],[41,0,4],[32,2],[32,5],[107],[65,8],[108],[173],[34,7],[134],[32,7],[136],[33,6],[32,4],[32,6],[66,32],[136],[167],[115],[65,147,131,128,8],[108],[32,6],[167],[115],[65,147,131,128,8],[108],[15]],
17
17
  params:[127,127],typedParams:1,returns:[127],returnType:1,
18
18
  locals:[127,127,127,127,126,126],localNames:["key","key#type","ptr","len","hash","endPtr","x","shift"],
19
19
  }
@@ -3601,7 +3601,7 @@ const coctcOffset = prop => {
3601
3601
 
3602
3602
  let offset = coctc.get(prop);
3603
3603
  if (offset == null) {
3604
- offset = (coctc.lastOffset ?? Prefs.coctcOffset ?? 16300) - 9;
3604
+ offset = (coctc.lastOffset ?? Prefs.coctcOffset ?? (globalThis.pageSize - 128)) - 9;
3605
3605
  if (offset < 0) return 0;
3606
3606
 
3607
3607
  coctc.lastOffset = offset;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "porffor",
3
3
  "description": "An ahead-of-time JavaScript compiler",
4
- "version": "0.57.17",
4
+ "version": "0.57.18",
5
5
  "author": "Oliver Medhurst <honk@goose.icu>",
6
6
  "license": "MIT",
7
7
  "scripts": {},
package/runtime/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import fs from 'node:fs';
3
- globalThis.version = '0.57.17';
3
+ globalThis.version = '0.57.18';
4
4
 
5
5
  // deno compat
6
6
  if (typeof process === 'undefined' && typeof Deno !== 'undefined') {
@@ -43,12 +43,6 @@ createImport('profile1', [ Valtype.i32 ], 0, f => { // pre-call
43
43
  // This index corresponds to the entry in samplesFunc/Start/End
44
44
  const sampleIndex = samplesFunc.push(f) - 1;
45
45
  samplesEnd.push(null); // Placeholder for end time
46
- if (runningIdx >= running.length) {
47
- // Resize running buffer if needed
48
- const newRunning = new Uint32Array(running.length * 2);
49
- newRunning.set(running);
50
- running = newRunning;
51
- }
52
46
  running[runningIdx++] = sampleIndex;
53
47
  });
54
48