@quenk/potoo 4.0.12 → 4.1.2

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.
Files changed (74) hide show
  1. package/lib/actor/address.d.ts +5 -1
  2. package/lib/actor/address.js +7 -2
  3. package/lib/actor/address.js.map +1 -1
  4. package/lib/actor/system/vm/allocator/index.d.ts +9 -2
  5. package/lib/actor/system/vm/allocator/map.d.ts +2 -1
  6. package/lib/actor/system/vm/allocator/map.js +30 -23
  7. package/lib/actor/system/vm/allocator/map.js.map +1 -1
  8. package/lib/actor/system/vm/event/dispatcher.d.ts +4 -4
  9. package/lib/actor/system/vm/event/dispatcher.js +9 -9
  10. package/lib/actor/system/vm/event/dispatcher.js.map +1 -1
  11. package/lib/actor/system/vm/event/index.d.ts +1 -1
  12. package/lib/actor/system/vm/event/index.js +1 -1
  13. package/lib/actor/system/vm/index.d.ts +16 -9
  14. package/lib/actor/system/vm/index.js +17 -9
  15. package/lib/actor/system/vm/index.js.map +1 -1
  16. package/lib/actor/system/vm/runtime/error.d.ts +0 -42
  17. package/lib/actor/system/vm/runtime/error.js +1 -61
  18. package/lib/actor/system/vm/runtime/error.js.map +1 -1
  19. package/lib/actor/system/vm/thread/collector.d.ts +35 -0
  20. package/lib/actor/system/vm/thread/collector.js +52 -0
  21. package/lib/actor/system/vm/thread/collector.js.map +1 -0
  22. package/lib/actor/system/vm/thread/factory.js +2 -2
  23. package/lib/actor/system/vm/thread/factory.js.map +1 -1
  24. package/lib/actor/system/vm/thread/index.d.ts +5 -0
  25. package/lib/actor/system/vm/thread/index.js.map +1 -1
  26. package/lib/actor/system/vm/thread/process.d.ts +4 -2
  27. package/lib/actor/system/vm/thread/process.js +4 -3
  28. package/lib/actor/system/vm/thread/process.js.map +1 -1
  29. package/lib/actor/system/vm/thread/runner.d.ts +31 -0
  30. package/lib/actor/system/vm/thread/runner.js +60 -0
  31. package/lib/actor/system/vm/thread/runner.js.map +1 -0
  32. package/lib/actor/system/vm/thread/shared/js.d.ts +4 -3
  33. package/lib/actor/system/vm/thread/shared/js.js +18 -6
  34. package/lib/actor/system/vm/thread/shared/js.js.map +1 -1
  35. package/lib/actor/template.d.ts +0 -5
  36. package/lib/actor/template.js +1 -13
  37. package/lib/actor/template.js.map +1 -1
  38. package/package.json +1 -1
  39. package/lib/actor/system/vm/frame.d.ts +0 -228
  40. package/lib/actor/system/vm/frame.js +0 -233
  41. package/lib/actor/system/vm/frame.js.map +0 -1
  42. package/lib/actor/system/vm/object/foreign.d.ts +0 -9
  43. package/lib/actor/system/vm/object/foreign.js +0 -13
  44. package/lib/actor/system/vm/object/foreign.js.map +0 -1
  45. package/lib/actor/system/vm/object/index.d.ts +0 -5
  46. package/lib/actor/system/vm/object/index.js +0 -3
  47. package/lib/actor/system/vm/object/index.js.map +0 -1
  48. package/lib/actor/system/vm/object/list.d.ts +0 -8
  49. package/lib/actor/system/vm/object/list.js +0 -12
  50. package/lib/actor/system/vm/object/list.js.map +0 -1
  51. package/lib/actor/system/vm/op/actor.d.ts +0 -69
  52. package/lib/actor/system/vm/op/actor.js +0 -118
  53. package/lib/actor/system/vm/op/actor.js.map +0 -1
  54. package/lib/actor/system/vm/op/base.d.ts +0 -142
  55. package/lib/actor/system/vm/op/base.js +0 -242
  56. package/lib/actor/system/vm/op/base.js.map +0 -1
  57. package/lib/actor/system/vm/op/index.d.ts +0 -106
  58. package/lib/actor/system/vm/op/index.js +0 -232
  59. package/lib/actor/system/vm/op/index.js.map +0 -1
  60. package/lib/actor/system/vm/op/object.d.ts +0 -31
  61. package/lib/actor/system/vm/op/object.js +0 -78
  62. package/lib/actor/system/vm/op/object.js.map +0 -1
  63. package/lib/actor/system/vm/registry.d.ts +0 -126
  64. package/lib/actor/system/vm/registry.js +0 -191
  65. package/lib/actor/system/vm/registry.js.map +0 -1
  66. package/lib/actor/system/vm/script/index.d.ts +0 -49
  67. package/lib/actor/system/vm/script/index.js +0 -29
  68. package/lib/actor/system/vm/script/index.js.map +0 -1
  69. package/lib/actor/system/vm/script/info.d.ts +0 -279
  70. package/lib/actor/system/vm/script/info.js +0 -256
  71. package/lib/actor/system/vm/script/info.js.map +0 -1
  72. package/lib/actor/system/vm/type.d.ts +0 -90
  73. package/lib/actor/system/vm/type.js +0 -29
  74. package/lib/actor/system/vm/type.js.map +0 -1
@@ -1,90 +0,0 @@
1
- /**
2
- * This module contains the type of objects used by the VM.
3
- *
4
- * The high byte of a stack instruction is used to indicate the type of value.
5
- * Therefore we can have a max of 255 types. In practice, far less is needed
6
- * and most non-primitive types should be an object.
7
- */
8
- import { Type } from '@quenk/noni/lib/data/type';
9
- import { PTObject } from './object';
10
- import { Thread } from './thread';
11
- export declare const BYTE_TYPE = 4278190080;
12
- export declare const BYTE_INDEX = 16777215;
13
- export declare const TYPE_STEP = 16777216;
14
- export declare const TYPE_UINT8 = 16777216;
15
- export declare const TYPE_UINT16: number;
16
- export declare const TYPE_UINT32: number;
17
- export declare const TYPE_INT8: number;
18
- export declare const TYPE_INT16: number;
19
- export declare const TYPE_INT32: number;
20
- export declare const TYPE_BOOLEAN: number;
21
- export declare const TYPE_STRING: number;
22
- export declare const TYPE_OBJECT: number;
23
- export declare const TYPE_LIST: number;
24
- export declare const TYPE_FUN: number;
25
- export declare const TYPE_CONS: number;
26
- export declare const TYPE_FOREIGN: number;
27
- export declare const TYPE_VOID = 4026531840;
28
- export declare const TYPE_MASK = 4278190080;
29
- /**
30
- * TypeDescriptor
31
- */
32
- export type TypeDescriptor = number;
33
- /**
34
- * PTValue types.
35
- */
36
- export type PTValue = PTVoid | PTNumber | PTBoolean | PTString | PTObject;
37
- /**
38
- * PTNumber types.
39
- */
40
- export type PTNumber = PTInt8 | PTInt16 | PTInt32 | PTUInt8 | PTUInt16 | PTUInt32;
41
- /**
42
- * PTVoid is the absence of a value.
43
- */
44
- export type PTVoid = typeof TYPE_VOID;
45
- /**
46
- * PTInt8 is a signed 8bit integer.
47
- */
48
- export type PTInt8 = number;
49
- /**
50
- * PTInt16 is a signed 16bit integer.
51
- */
52
- export type PTInt16 = number;
53
- /**
54
- * PTInt32 is a signed 32bit integer.
55
- */
56
- export type PTInt32 = number;
57
- /**
58
- * PTUInt8 is an unsigned 8bit integer.
59
- */
60
- export type PTUInt8 = number;
61
- /**
62
- * PTUInt16 is an unsigned 16bit integer.
63
- */
64
- export type PTUInt16 = number;
65
- /**
66
- * PTUInt32 is an unsigned 32bit integer.
67
- */
68
- export type PTUInt32 = number;
69
- /**
70
- * PTBoolean is a boolean value.
71
- *
72
- * Zero=false, non-zero=true.
73
- */
74
- export type PTBoolean = number;
75
- /**
76
- * PTString
77
- */
78
- export type PTString = string;
79
- /**
80
- * ForeignFun type.
81
- *
82
- * To make the return value available to the VM, push a value onto the stack.
83
- */
84
- export type ForeignFun = (r: Thread, ...args: Type[]) => Type;
85
- /**
86
- * getType from a TypeDescriptor.
87
- *
88
- * The highest byte of the 32bit descriptor indicates its type.
89
- */
90
- export declare const getType: (d: TypeDescriptor) => number;
@@ -1,29 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getType = exports.TYPE_MASK = exports.TYPE_VOID = exports.TYPE_FOREIGN = exports.TYPE_CONS = exports.TYPE_FUN = exports.TYPE_LIST = exports.TYPE_OBJECT = exports.TYPE_STRING = exports.TYPE_BOOLEAN = exports.TYPE_INT32 = exports.TYPE_INT16 = exports.TYPE_INT8 = exports.TYPE_UINT32 = exports.TYPE_UINT16 = exports.TYPE_UINT8 = exports.TYPE_STEP = exports.BYTE_INDEX = exports.BYTE_TYPE = void 0;
4
- exports.BYTE_TYPE = 0xff000000;
5
- exports.BYTE_INDEX = 0xffffff;
6
- exports.TYPE_STEP = 0x1000000;
7
- exports.TYPE_UINT8 = exports.TYPE_STEP;
8
- exports.TYPE_UINT16 = exports.TYPE_STEP * 2;
9
- exports.TYPE_UINT32 = exports.TYPE_STEP * 3;
10
- exports.TYPE_INT8 = exports.TYPE_STEP * 4;
11
- exports.TYPE_INT16 = exports.TYPE_STEP * 5;
12
- exports.TYPE_INT32 = exports.TYPE_STEP * 6;
13
- exports.TYPE_BOOLEAN = exports.TYPE_STEP * 7;
14
- exports.TYPE_STRING = exports.TYPE_STEP * 8;
15
- exports.TYPE_OBJECT = exports.TYPE_STEP * 9;
16
- exports.TYPE_LIST = exports.TYPE_STEP * 10;
17
- exports.TYPE_FUN = exports.TYPE_STEP * 11;
18
- exports.TYPE_CONS = exports.TYPE_STEP * 12;
19
- exports.TYPE_FOREIGN = exports.TYPE_STEP * 13;
20
- exports.TYPE_VOID = 0xf0000000;
21
- exports.TYPE_MASK = 0xff000000;
22
- /**
23
- * getType from a TypeDescriptor.
24
- *
25
- * The highest byte of the 32bit descriptor indicates its type.
26
- */
27
- const getType = (d) => d & exports.BYTE_TYPE;
28
- exports.getType = getType;
29
- //# sourceMappingURL=type.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../src/actor/system/vm/type.ts"],"names":[],"mappings":";;;AAYa,QAAA,SAAS,GAAG,UAAU,CAAC;AACvB,QAAA,UAAU,GAAG,QAAQ,CAAC;AAEtB,QAAA,SAAS,GAAG,SAAS,CAAC;AAEtB,QAAA,UAAU,GAAG,iBAAS,CAAC;AACvB,QAAA,WAAW,GAAG,iBAAS,GAAG,CAAC,CAAC;AAC5B,QAAA,WAAW,GAAG,iBAAS,GAAG,CAAC,CAAC;AAC5B,QAAA,SAAS,GAAG,iBAAS,GAAG,CAAC,CAAC;AAC1B,QAAA,UAAU,GAAG,iBAAS,GAAG,CAAC,CAAC;AAC3B,QAAA,UAAU,GAAG,iBAAS,GAAG,CAAC,CAAC;AAC3B,QAAA,YAAY,GAAG,iBAAS,GAAG,CAAC,CAAC;AAC7B,QAAA,WAAW,GAAG,iBAAS,GAAG,CAAC,CAAC;AAC5B,QAAA,WAAW,GAAG,iBAAS,GAAG,CAAC,CAAC;AAC5B,QAAA,SAAS,GAAG,iBAAS,GAAG,EAAE,CAAC;AAC3B,QAAA,QAAQ,GAAG,iBAAS,GAAG,EAAE,CAAC;AAC1B,QAAA,SAAS,GAAG,iBAAS,GAAG,EAAE,CAAC;AAC3B,QAAA,YAAY,GAAG,iBAAS,GAAG,EAAE,CAAC;AAC9B,QAAA,SAAS,GAAG,UAAU,CAAC;AAEvB,QAAA,SAAS,GAAG,UAAU,CAAC;AA6EpC;;;;GAIG;AACI,MAAM,OAAO,GAAG,CAAC,CAAiB,EAAU,EAAE,CAAC,CAAC,GAAG,iBAAS,CAAC;AAAvD,QAAA,OAAO,WAAgD"}