How to use the @glimmer/program.HeapImpl function in @glimmer/program

To help you get started, we’ve selected a few @glimmer/program 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 / runtime / lib / environment.ts View on Github external
export function JitRuntime(
  options: EnvironmentOptions,
  resolver: RuntimeResolverDelegate = {},
  delegate: EnvironmentDelegate = {}
): JitRuntimeContext {
  let env = new EnvironmentImpl(options, delegate);

  let constants = new Constants();
  let heap = new HeapImpl();
  let program = new RuntimeProgramImpl(constants, heap);

  return {
    env,
    resolver: new DefaultRuntimeResolver(resolver),
    program,
  };
}