How to use @glimmer/encoder - 3 common examples

To help you get started, we’ve selected a few @glimmer/encoder examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github glimmerjs / glimmer-vm / packages / @glimmer / program / lib / opcode.ts View on Github external
get size() {
    let rawType = this.heap.getbyaddr(this.offset);
    return ((rawType & OpcodeSize.OPERAND_LEN_MASK) >> OpcodeSize.ARG_SHIFT) + 1;
  }
github glimmerjs / glimmer-vm / packages / @glimmer / program / lib / opcode.ts View on Github external
get isMachine() {
    let rawType = this.heap.getbyaddr(this.offset);
    return rawType & OpcodeSize.MACHINE_MASK;
  }
github glimmerjs / glimmer-vm / packages / @glimmer / program / lib / opcode.ts View on Github external
get type() {
    return this.heap.getbyaddr(this.offset) & OpcodeSize.TYPE_MASK;
  }

@glimmer/encoder

MIT
Latest version published 2 months ago

Package Health Score

77 / 100
Full package analysis

Similar packages