porffor 0.20.6 → 0.20.7

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/compiler/types.js CHANGED
@@ -1,27 +1,21 @@
1
+ export const TYPE_FLAGS = {
2
+ parity: 0b10000000,
3
+ length: 0b01000000,
4
+ };
5
+
1
6
  export const TYPES = {
2
7
  empty: 0x00,
3
8
  number: 0x01,
4
9
  boolean: 0x02,
5
- string: 0x03,
6
- undefined: 0x04,
7
- object: 0x05,
10
+ string: 0x03 | TYPE_FLAGS.length,
11
+ bigint: 0x04,
12
+ symbol: 0x05,
8
13
  function: 0x06,
9
- symbol: 0x07,
10
- bigint: 0x08
11
- };
14
+ object: 0x07,
12
15
 
13
- // flags
14
- export const TYPE_FLAGS = {
15
- // iterable: 0b10000000,
16
- parity: 0b10000000,
17
- length: 0b01000000,
16
+ undefined: 0x00 | TYPE_FLAGS.parity,
18
17
  };
19
18
 
20
- // TYPES.string |= TYPE_FLAGS.iterable;
21
- TYPES.string |= TYPE_FLAGS.length;
22
-
23
- TYPES.undefined = TYPES.empty | TYPE_FLAGS.parity;
24
-
25
19
  export const TYPE_NAMES = {
26
20
  [TYPES.empty]: 'empty',
27
21
  [TYPES.number]: 'Number',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "porffor",
3
3
  "description": "a basic experimental wip aot optimizing js -> wasm engine/compiler/runtime in js",
4
- "version": "0.20.6+c859e2f26",
4
+ "version": "0.20.7+2834584b7",
5
5
  "author": "CanadaHonk",
6
6
  "license": "MIT",
7
7
  "scripts": {},
package/runner/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import fs from 'node:fs';
3
- globalThis.version = '0.20.6+c859e2f26';
3
+ globalThis.version = '0.20.7+2834584b7';
4
4
 
5
5
  // deno compat
6
6
  if (typeof process === 'undefined' && typeof Deno !== 'undefined') {