Moving some RAM logic to Instance.

Reviewed By: michalgr

Differential Revision: D6208977

fbshipit-source-id: 28339d07c58f1acc816be02f2707ef75529fa069
This commit is contained in:
Dan Caspi
2017-11-03 05:17:23 -07:00
committed by Facebook Github Bot
parent 59a5dbc0b0
commit 19de7fcb22
4 changed files with 34 additions and 25 deletions

View File

@@ -44,6 +44,10 @@ public:
void loadScriptFromString(std::unique_ptr<const JSBigString> string,
std::string sourceURL, bool loadSynchronously);
static bool isIndexedRAMBundle(const char *sourcePath);
void loadRAMBundleFromFile(const std::string& sourcePath,
const std::string& sourceURL,
bool loadSynchronously);
void loadRAMBundle(std::unique_ptr<RAMBundleRegistry> bundleRegistry,
std::unique_ptr<const JSBigString> startupScript,
std::string startupScriptSourceURL, bool loadSynchronously);