mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-05 17:30:38 +08:00
Cleanup ifdef's in JSCExecutor
Reviewed By: kathryngray Differential Revision: D5433407 fbshipit-source-id: 104e8e5589d9c5e09c6702992eac3db2e6b4ab1a
This commit is contained in:
committed by
Facebook Github Bot
parent
ca9e26cecd
commit
ec14db1abc
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
} }
|
||||
|
||||
Reference in New Issue
Block a user