-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvements to naming and documentation as well as significant consolidation of concepts that no longer need to be separated. The consolidation is largely driven by the removal of concepts that were originally introduced for the (long removed) AOT mode.
- Loading branch information
Showing
41 changed files
with
346 additions
and
454 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 4 additions & 13 deletions
17
packages/@glimmer-workspace/integration-tests/lib/modes/jit/render.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,20 @@ | ||
import type { ElementBuilder, RenderResult } from '@glimmer/interfaces'; | ||
import type { ElementBuilder, ProgramContext, RenderResult } from '@glimmer/interfaces'; | ||
import type { Reference } from '@glimmer/reference'; | ||
import type { PrecompileOptions } from '@glimmer/syntax'; | ||
import { unwrapTemplate } from '@glimmer/debug-util'; | ||
import { renderMain, renderSync } from '@glimmer/runtime'; | ||
|
||
import type { JitTestDelegateContext } from './delegate'; | ||
|
||
import { preprocess } from '../../compile'; | ||
|
||
export function renderTemplate( | ||
src: string, | ||
{ runtime, program }: JitTestDelegateContext, | ||
context: ProgramContext, | ||
self: Reference, | ||
builder: ElementBuilder, | ||
options?: PrecompileOptions | ||
): RenderResult { | ||
let template = preprocess(src, options); | ||
|
||
let iterator = renderMain( | ||
runtime, | ||
program, | ||
{}, | ||
self, | ||
builder, | ||
unwrapTemplate(template).asLayout() | ||
); | ||
return renderSync(runtime.env, iterator); | ||
let iterator = renderMain(context, {}, self, builder, unwrapTemplate(template).asLayout()); | ||
return renderSync(context.env, iterator); | ||
} |
4 changes: 2 additions & 2 deletions
4
packages/@glimmer-workspace/integration-tests/lib/modes/jit/resolver.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.