Cleanup ifdef's in JSCExecutor

Reviewed By: kathryngray

Differential Revision: D5433407

fbshipit-source-id: 104e8e5589d9c5e09c6702992eac3db2e6b4ab1a
This commit is contained in:
Pieter De Baets
2017-07-25 04:45:08 -07:00
committed by Facebook Github Bot
parent ca9e26cecd
commit ec14db1abc
13 changed files with 116 additions and 204 deletions

View File

@@ -2,18 +2,8 @@
#include "JSCSamplingProfiler.h"
#include <stdio.h>
#include <string.h>
#include <jschelpers/JSCHelpers.h>
#include <jschelpers/Value.h>
#ifndef __APPLE__
#include <JavaScriptCore/API/JSProfilerPrivate.h>
#endif
namespace facebook {
namespace react {
namespace {
static JSValueRef pokeSamplingProfiler(
JSContextRef ctx,
JSObjectRef function,
@@ -23,7 +13,9 @@ static JSValueRef pokeSamplingProfiler(
JSValueRef* exception) {
return JSC_JSPokeSamplingProfiler(ctx);
}
}
namespace facebook {
namespace react {
void initSamplingProfilerOnMainJSCThread(JSGlobalContextRef ctx) {
JSC_JSStartSamplingProfilingOnMainJSCThread(ctx);
@@ -33,5 +25,4 @@ void initSamplingProfilerOnMainJSCThread(JSGlobalContextRef ctx) {
installGlobalFunction(ctx, "pokeSamplingProfiler", pokeSamplingProfiler);
}
}
}
} }