This repository was archived by the owner on Nov 13, 2026. It is now read-only.
Repository navigation
Refactor NodeFactory - #1576
Merged
Merged
Refactor NodeFactory#1576
Conversation
There are several node kinds that will be different depending on the compilation backend. Factor them out into separate classes to remove usage of `isCppCodegen`. The base `NodeFactory` is only allowed to do tasks that are common across codegens now. We might want a `TestNodeFactory` in the future for unit testing. I'll follow up with splitting `NodeFactory` into one more abstract layer (to e.g. make `AttachToDependecyGraph` abstract and to take out things like `HelperEntrypoint(...)`).
This is unused and it's an assembly stub referenced from `NodeFactory`, hence verboten.
MichalStrehovsky
force-pushed
the
nodeFactory
branch
from
July 24, 2016 05:20
e6411a0 to
17eafe8
Compare
Member
|
👍 |
Member
Author
|
Cc @nattress |
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
There are several node kinds that will be different depending on the compilation backend. Factor them out into separate classes to remove usage of
isCppCodegen.The base
NodeFactoryis only allowed to do tasks that are common across codegens now.We might want a
TestNodeFactoryin the future for unit testing.I'll follow up with splitting
NodeFactoryinto one more abstract layer (to e.g. makeAttachToDependecyGraphabstract and to take out things likeHelperEntrypoint(...)) but for that I need to have a look at how this is used on the TFS side.I'm also deleting the SingleArgumentJumpThunk. I would need to build abstraction for it, but since it's not used, I don't see the point.