@glimmer/encoder
Advanced tools
Comparing version
@@ -1,11 +0,1 @@ | ||
import { CompilerBuffer, InstructionEncoder, MACHINE_MASK, Operand, VmMachineOp, VmOp } from "@glimmer/interfaces"; | ||
declare class InstructionEncoderImpl implements InstructionEncoder { | ||
readonly buffer: CompilerBuffer; | ||
constructor(buffer: CompilerBuffer); | ||
size: number; | ||
encode(type: VmMachineOp, machine: MACHINE_MASK, ...operands: Operand[]): void; | ||
encode(type: VmOp, machine: 0, ...operands: Operand[]): void; | ||
patch(position: number, target: number): void; | ||
} | ||
export { InstructionEncoderImpl }; | ||
//# sourceMappingURL=index.d.ts.map | ||
export * from './lib/encoder'; |
@@ -7,5 +7,4 @@ import { DEBUG } from "@glimmer/env"; | ||
constructor(buffer) { | ||
this.buffer = buffer; | ||
this.buffer = buffer, this.size = 0; | ||
} | ||
size=0; | ||
encode(type, machine, ...args) { | ||
@@ -12,0 +11,0 @@ if (type > TYPE_SIZE) throw new Error(`Opcode type over 8-bits. Got ${type}.`); |
@@ -1,11 +0,1 @@ | ||
import { CompilerBuffer, InstructionEncoder, MACHINE_MASK, Operand, VmMachineOp, VmOp } from "@glimmer/interfaces"; | ||
declare class InstructionEncoderImpl implements InstructionEncoder { | ||
readonly buffer: CompilerBuffer; | ||
constructor(buffer: CompilerBuffer); | ||
size: number; | ||
encode(type: VmMachineOp, machine: MACHINE_MASK, ...operands: Operand[]): void; | ||
encode(type: VmOp, machine: 0, ...operands: Operand[]): void; | ||
patch(position: number, target: number): void; | ||
} | ||
export { InstructionEncoderImpl }; | ||
//# sourceMappingURL=index.d.ts.map | ||
export * from './lib/encoder'; |
@@ -1,2 +0,2 @@ | ||
import{TYPE_SIZE as t,ARG_SHIFT as e}from"@glimmer/vm";class r{constructor(t){this.buffer=t}size=0;encode(r,o,...s){if(r>t)throw new Error(`Opcode type over 8-bits. Got ${r}.`);let f=r|o|arguments.length-2<<e;this.buffer.push(f);for(const t of s)this.buffer.push(t);this.size=this.buffer.length}patch(t,e){if(-1!==this.buffer[t+1])throw new Error("Trying to patch operand in populated slot instead of a reserved slot.");this.buffer[t+1]=e}}export{r as InstructionEncoderImpl}; | ||
import{TYPE_SIZE as t,ARG_SHIFT as e}from"@glimmer/vm";class r{constructor(t){this.buffer=t,this.size=0}encode(r,o,...s){if(r>t)throw new Error(`Opcode type over 8-bits. Got ${r}.`);let f=r|o|arguments.length-2<<e;this.buffer.push(f);for(const t of s)this.buffer.push(t);this.size=this.buffer.length}patch(t,e){if(-1!==this.buffer[t+1])throw new Error("Trying to patch operand in populated slot instead of a reserved slot.");this.buffer[t+1]=e}}export{r as InstructionEncoderImpl}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@glimmer/encoder", | ||
"version": "0.92.5", | ||
"version": "0.93.0", | ||
"license": "MIT", | ||
"repository": "https://github.com/glimmerjs/glimmer-vm/tree/main/packages/@glimmer/encoder", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/glimmerjs/glimmer-vm.git", | ||
"directory": "packages/@glimmer/encoder" | ||
}, | ||
"type": "module", | ||
"exports": { | ||
".": { | ||
"require": { | ||
"development": { | ||
"types": "./dist/dev/index.d.cts", | ||
"default": "./dist/dev/index.cjs" | ||
} | ||
}, | ||
"default": { | ||
"development": { | ||
"types": "./dist/dev/index.d.ts", | ||
"default": "./dist/dev/index.js" | ||
}, | ||
"default": { | ||
"types": "./dist/prod/index.d.ts", | ||
"default": "./dist/prod/index.js" | ||
} | ||
} | ||
"development": { | ||
"types": "./dist/dev/index.d.ts", | ||
"default": "./dist/dev/index.js" | ||
}, | ||
"default": { | ||
"types": "./dist/prod/index.d.ts", | ||
"default": "./dist/prod/index.js" | ||
} | ||
@@ -34,18 +28,17 @@ }, | ||
"dependencies": { | ||
"@glimmer/interfaces": "0.93.0", | ||
"@glimmer/vm": "0.93.1" | ||
"@glimmer/interfaces": "0.94.0", | ||
"@glimmer/vm": "0.94.0" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^8.52.0", | ||
"publint": "^0.2.5", | ||
"rollup": "^4.5.1", | ||
"eslint": "^9.18.0", | ||
"publint": "^0.3.2", | ||
"rollup": "^4.31.0-0", | ||
"typescript": "*", | ||
"@glimmer-workspace/build-support": "1.0.0" | ||
"@glimmer-workspace/build-support": "0.92.0", | ||
"@glimmer-workspace/env": "0.92.0" | ||
}, | ||
"scripts": { | ||
"build": "rollup -c rollup.config.mjs", | ||
"test:lint": "eslint .", | ||
"test:publint": "publint", | ||
"test:types": "tsc --noEmit -p ../tsconfig.json" | ||
"test:lint": "eslint . --quiet", | ||
"test:publint": "publint" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
0
-100%6703
-25.71%6
20%10
-28.57%46
-41.77%+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
Updated
Updated