First step to boot rn apps with hot bytecode cache

Reviewed By: tadeuzagallo

Differential Revision: D3561565

fbshipit-source-id: dc1cf580d7b31f30939b180aec38d9b8d0dd0f58
This commit is contained in:
Michał Gregorczyk
2016-08-04 15:42:56 -07:00
committed by Facebook Github Bot 6
parent f08f23f8cb
commit 5405aeb2a3
3 changed files with 12 additions and 1 deletions

View File

@@ -275,6 +275,10 @@ void JSCExecutor::loadApplicationScript(
return loadApplicationScript(std::move(jsScriptBigString), sourceURL);
}
if (flags & UNPACKED_BC_CACHE) {
configureJSCBCCache(m_context, bundlePath);
}
String jsSourceURL(sourceURL.c_str());
JSSourceCodeRef sourceCode = JSCreateSourceCode(
jsScriptBigString->fd(),