How to use the @glimmer/encoder.OpcodeSize.OPERAND_LEN_MASK function in @glimmer/encoder

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;
  }

@glimmer/encoder

MIT
Latest version published 2 months ago

Package Health Score

77 / 100
Full package analysis

Similar packages