Simplify bundle loading a little bit.

Reviewed By: amnn

Differential Revision: D4306559

fbshipit-source-id: 9733c508aa5a905251e96855794a59ef79d61cfa
This commit is contained in:
Michał Gregorczyk 2016-12-09 17:48:59 -08:00 committed by Facebook Github Bot
parent 1103a91d8d
commit 46919095aa
2 changed files with 1 additions and 8 deletions

View File

@ -22,8 +22,7 @@ namespace react {
enum { enum {
UNPACKED_JS_SOURCE = (1 << 0), UNPACKED_JS_SOURCE = (1 << 0),
UNPACKED_BC_CACHE = (1 << 1), UNPACKED_BYTECODE = (1 << 1),
UNPACKED_BYTECODE = (1 << 2),
}; };
class JSExecutor; class JSExecutor;

View File

@ -347,12 +347,6 @@ void JSCExecutor::loadApplicationScript(
return loadApplicationScript(std::move(jsScriptBigString), sourceURL); return loadApplicationScript(std::move(jsScriptBigString), sourceURL);
} }
#if defined(WITH_FB_JSC_TUNING) && defined(__ANDROID__)
if (flags & UNPACKED_BC_CACHE) {
configureJSCBCCache(m_context, bundlePath);
}
#endif
sourceCode = JSCreateSourceCode( sourceCode = JSCreateSourceCode(
jsScriptBigString->fd(), jsScriptBigString->fd(),
jsSourceURL, jsSourceURL,