simplify handleMemoryPressure conditionalization, delete some dead code

Reviewed By: javache

Differential Revision: D7803912

fbshipit-source-id: 0bab4be07fc006a208caa75f94b5716c99b5d265
This commit is contained in:
Marc Horowitz authored and Facebook Github Bot committed 2018-05-09 22:12:03 -07:00
1 parent 09f3d7ab49
commit 042449f24a
8 files changed
+3 -17

No files matched your search

+2 -2
View File
@@ -696,12 +696,12 @@ bool JSCExecutor::isInspectable() {
return canUseInspector(m_context);
}
#ifdef WITH_JSC_MEMORY_PRESSURE
void JSCExecutor::handleMemoryPressure(int pressureLevel) {
#ifdef WITH_JSC_MEMORY_PRESSURE
JSHandleMemoryPressure(
this, m_context, static_cast<JSMemoryPressure>(pressureLevel));
}
#endif
}
void JSCExecutor::flushQueueImmediate(Value&& queue) {
auto queueStr = queue.toJSONString();