-
-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix circular dependencies between GenDataFooter and GenYieldPoint
Summary: GenDataFooter contains a GenYieldPoint*, which is the simpler class. However GenYieldPoint had methods that took a GenDataFooter, so the two could not be defined without forward declarations. GenYieldPoint also had methods that would load the Runtime singleton under the hood, which encourages more of these kinds of circular dependencies. This diff unravels some of the methods used by GenYieldPoint, moves more of the responsibility onto callers to access data via GenDataFooter and Runtime directly. The methods each only had one callsite, and they were all in pyjit.cpp where it makes much more sense to load the Runtime singleton. There is a now a simpler dependency graph from: GenYieldPoint -> GenDataFooter -> CodeRuntime -> Runtime Reviewed By: jbower-fb Differential Revision: D55761655 fbshipit-source-id: 1a26568ae2eef715929b12c5dae207a69860b69e
- Loading branch information
1 parent
d43fc11
commit 3aa5e13
Showing
5 changed files
with
132 additions
and
134 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
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