How to use the @glimmer/vm.Register.fp function in @glimmer/vm

To help you get started, we’ve selected a few @glimmer/vm 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 / opcode-compiler / lib / syntax.ts View on Github external
builder.pushPrimitiveReference(null);
    }

    expr(params[0], builder);

    builder.enter(2);

    builder.putIterator();

    builder.jumpUnless('ELSE');

    builder.pushFrame();

    builder.returnTo('ITER');

    builder.dup(Register.fp, 1);

    builder.enterList('BODY');

    builder.label('ITER');
    builder.iterate('BREAK');

    builder.label('BODY');
    builder.invokeStaticBlock(unwrap(template), 2);
    builder.pop(2);
    builder.exit();
    builder.return();

    builder.label('BREAK');
    builder.exitList();
    builder.popFrame();
github glimmerjs / glimmer-vm / packages / @glimmer / opcode-compiler / lib / syntax.ts View on Github external
body() {
        builder.putIterator();

        builder.jumpUnless('ELSE');

        builder.pushFrame();

        builder.dup(Register.fp, 1);

        builder.returnTo('ITER');
        builder.enterList('BODY');

        builder.label('ITER');
        builder.iterate('BREAK');

        builder.label('BODY');
        builder.invokeStaticBlock(unwrap(template), 2);
        builder.pop(2);
        builder.jump('FINALLY');

        builder.label('BREAK');
        builder.exitList();
        builder.popFrame();