Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplifies JitRuntime, JitContext, Environment setup #1028

Merged
merged 2 commits into from
Feb 16, 2020

Conversation

pzuraq
Copy link
Member

@pzuraq pzuraq commented Feb 12, 2020

Currently there are three JitRuntime creation methods:

  • CustomJitRuntime
  • JitRuntime
  • JitRuntimeFromProgram

With the recent refactors to Ember and Glimmer.js, we can consolidate
these to a single method. In addition, this PR updates that method to
take the JitContext() output directly, rather than requiring users
create a program themselves.

As part of this work, I also simplified tests to use the actual
JitContext method rather than making a custom one.

Finally, this PR makes updateOperations optional on the environment
delegate. This allows environments that do not want to update, such as
streaming SSR, to opt out of updates altogether.

@pzuraq pzuraq force-pushed the cleanup/simplify-runtime-and-context branch 3 times, most recently from 29b7fe2 to 77dc99b Compare February 14, 2020 00:20
@rwjblue
Copy link
Member

rwjblue commented Feb 15, 2020

@pzuraq needs a rebase

Chris Garrett added 2 commits February 16, 2020 13:31
Currently there are three JitRuntime creation methods:

- `CustomJitRuntime`
- `JitRuntime`
- `JitRuntimeFromProgram`

With the recent refactors to Ember and Glimmer.js, we can consolidate
these to a single method. In addition, this PR updates that method to
take the `JitContext()` output directly, rather than requiring users
create a program themselves.

As part of this work, I also simplified tests to use the actual
`JitContext` method rather than making a custom one.

Finally, this PR makes `updateOperations` optional on the environment
delegate. This allows environments that do not want to update, such as
streaming SSR, to opt out of updates altogether.
@krisselden krisselden force-pushed the cleanup/simplify-runtime-and-context branch from 77dc99b to d5dd04c Compare February 16, 2020 21:32
@krisselden krisselden merged commit 0845927 into master Feb 16, 2020
@krisselden krisselden deleted the cleanup/simplify-runtime-and-context branch February 17, 2020 21:27
@rwjblue rwjblue changed the title [CLEANUP][BREAKING] Simplifies JitRuntime, JitContext, Environment setup Simplifies JitRuntime, JitContext, Environment setup Feb 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants