mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Compare commits
1
Commits
main
...
export-D83637519
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c2f2337eba |
@@ -13,7 +13,7 @@ typedef NSURLSessionConfiguration * (^NSURLSessionConfigurationProvider)(void);
|
||||
* The block provided via this function will provide the NSURLSessionConfiguration for all HTTP requests made by the
|
||||
* app.
|
||||
*/
|
||||
RCT_EXTERN void RCTSetCustomNSURLSessionConfigurationProvider(NSURLSessionConfigurationProvider);
|
||||
RCT_EXTERN void RCTSetCustomNSURLSessionConfigurationProvider(NSURLSessionConfigurationProvider /*provider*/);
|
||||
/**
|
||||
* This is the default RCTURLRequestHandler implementation for HTTP requests.
|
||||
*/
|
||||
|
||||
@@ -37,8 +37,13 @@ RCT_EXTERN BOOL RCTIsMainQueue(void);
|
||||
do { \
|
||||
} while (false)
|
||||
#endif
|
||||
RCT_EXTERN void _RCTAssertFormat(const char *, const char *, int, const char *, NSString *, ...)
|
||||
NS_FORMAT_FUNCTION(5, 6);
|
||||
RCT_EXTERN void _RCTAssertFormat(
|
||||
const char * /*condition*/,
|
||||
const char * /*fileName*/,
|
||||
int /*lineNumber*/,
|
||||
const char * /*function*/,
|
||||
NSString * /*format*/,
|
||||
...) NS_FORMAT_FUNCTION(5, 6);
|
||||
|
||||
/**
|
||||
* Report a fatal condition when executing. These calls will _NOT_ be compiled out
|
||||
|
||||
@@ -22,7 +22,7 @@ RCTAssertFunction RCTCurrentAssertFunction = nil;
|
||||
RCTFatalHandler RCTCurrentFatalHandler = nil;
|
||||
RCTFatalExceptionHandler RCTCurrentFatalExceptionHandler = nil;
|
||||
|
||||
NSException *_RCTNotImplementedException(SEL, Class);
|
||||
NSException *_RCTNotImplementedException(SEL /*cmd*/, Class /*cls*/);
|
||||
NSException *_RCTNotImplementedException(SEL cmd, Class cls)
|
||||
{
|
||||
NSString *msg = [NSString stringWithFormat:
|
||||
|
||||
@@ -117,7 +117,7 @@ NSSet<NSString *> *getCoreModuleClasses(void)
|
||||
}
|
||||
|
||||
static NSMutableArray<NSString *> *modulesLoadedWithOldArch;
|
||||
void addModuleLoadedWithOldArch(NSString *);
|
||||
void addModuleLoadedWithOldArch(NSString * /*moduleName*/);
|
||||
void addModuleLoadedWithOldArch(NSString *moduleName)
|
||||
{
|
||||
static dispatch_once_t onceToken;
|
||||
@@ -138,7 +138,7 @@ NSMutableArray<NSString *> *getModulesLoadedWithOldArch(void)
|
||||
* prior to the first bridge initialization.
|
||||
* TODO: (T115656171) Refactor RCTRegisterModule out of Bridge.m since it doesn't use the Bridge.
|
||||
*/
|
||||
void RCTRegisterModule(Class);
|
||||
void RCTRegisterModule(Class /*moduleClass*/);
|
||||
void RCTRegisterModule(Class moduleClass)
|
||||
{
|
||||
if (RCTAreLegacyLogsEnabled() && ![getCoreModuleClasses() containsObject:[moduleClass description]]) {
|
||||
|
||||
@@ -177,9 +177,14 @@ typedef NSArray UIColorArray __deprecated_msg("Use NSArray<UIColor *>");
|
||||
/**
|
||||
* Underlying implementations of RCT_XXX_CONVERTER macros. Ignore these.
|
||||
*/
|
||||
RCT_EXTERN NSNumber *RCTConvertEnumValue(const char *, NSDictionary *, NSNumber *, id);
|
||||
RCT_EXTERN NSNumber *RCTConvertMultiEnumValue(const char *, NSDictionary *, NSNumber *, id);
|
||||
RCT_EXTERN NSArray *RCTConvertArrayValue(SEL, id);
|
||||
RCT_EXTERN NSNumber *
|
||||
RCTConvertEnumValue(const char * /*typeName*/, NSDictionary * /*mapping*/, NSNumber * /*defaultValue*/, id /*json*/);
|
||||
RCT_EXTERN NSNumber *RCTConvertMultiEnumValue(
|
||||
const char * /*typeName*/,
|
||||
NSDictionary * /*mapping*/,
|
||||
NSNumber * /*defaultValue*/,
|
||||
id /*json*/);
|
||||
RCT_EXTERN NSArray *RCTConvertArrayValue(SEL /*type*/, id /*json*/);
|
||||
|
||||
/**
|
||||
* This macro is used for logging conversion errors. This is just used to
|
||||
|
||||
@@ -75,12 +75,12 @@ RCTFormatLog(NSDate *timestamp, RCTLogLevel level, NSString *fileName, NSNumber
|
||||
/**
|
||||
* A method to generate a string RCTLogLevel
|
||||
*/
|
||||
RCT_EXTERN NSString *RCTFormatLogLevel(RCTLogLevel);
|
||||
RCT_EXTERN NSString *RCTFormatLogLevel(RCTLogLevel /*level*/);
|
||||
|
||||
/**
|
||||
* A method to generate a string from a RCTLogSource
|
||||
*/
|
||||
RCT_EXTERN NSString *RCTFormatLogSource(RCTLogSource);
|
||||
RCT_EXTERN NSString *RCTFormatLogSource(RCTLogSource /*source*/);
|
||||
|
||||
/**
|
||||
* The default logging function used by RCTLogXX.
|
||||
@@ -149,5 +149,7 @@ RCT_EXTERN void RCTLogSetBridgelessCallableJSModules(RCTCallableJSModules *calla
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
RCT_EXTERN void _RCTLogNativeInternal(RCTLogLevel, const char *, int, NSString *, ...) NS_FORMAT_FUNCTION(4, 5);
|
||||
RCT_EXTERN void _RCTLogJavaScriptInternal(RCTLogLevel, NSString *);
|
||||
RCT_EXTERN void
|
||||
_RCTLogNativeInternal(RCTLogLevel /*level*/, const char * /*fileName*/, int /*lineNumber*/, NSString * /*format*/, ...)
|
||||
NS_FORMAT_FUNCTION(4, 5);
|
||||
RCT_EXTERN void _RCTLogJavaScriptInternal(RCTLogLevel /*level*/, NSString * /*message*/);
|
||||
|
||||
@@ -706,7 +706,7 @@ NSURL *RCTDataURL(NSString *mimeType, NSData *data)
|
||||
[data base64EncodedStringWithOptions:(NSDataBase64EncodingOptions)0]]];
|
||||
}
|
||||
|
||||
BOOL RCTIsGzippedData(NSData *__nullable); // exposed for unit testing purposes
|
||||
BOOL RCTIsGzippedData(NSData *__nullable /*data*/); // exposed for unit testing purposes
|
||||
BOOL RCTIsGzippedData(NSData *__nullable data)
|
||||
{
|
||||
UInt8 *bytes = (UInt8 *)data.bytes;
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#import <React/RCTEventEmitter.h>
|
||||
|
||||
RCT_EXTERN void RCTEnableAppearancePreference(BOOL enabled);
|
||||
RCT_EXTERN void RCTOverrideAppearancePreference(NSString *);
|
||||
RCT_EXTERN void RCTOverrideAppearancePreference(NSString * /*colorSchemeOverride*/);
|
||||
RCT_EXTERN void RCTUseKeyWindowForSystemStyle(BOOL useMainScreen);
|
||||
RCT_EXTERN NSString *RCTCurrentOverrideAppearancePreference(void);
|
||||
RCT_EXTERN NSString *RCTColorSchemePreference(UITraitCollection *traitCollection);
|
||||
|
||||
@@ -21,8 +21,8 @@ class RCTMessageThread : public MessageQueueThread,
|
||||
public:
|
||||
RCTMessageThread(NSRunLoop* runLoop, RCTJavaScriptCompleteBlock errorBlock);
|
||||
~RCTMessageThread() override;
|
||||
void runOnQueue(std::function<void()>&&) override;
|
||||
void runOnQueueSync(std::function<void()>&&) override;
|
||||
void runOnQueue(std::function<void()>&& /*func*/) override;
|
||||
void runOnQueueSync(std::function<void()>&& /*func*/) override;
|
||||
void quitSynchronous() override;
|
||||
void setRunLoop(NSRunLoop* runLoop);
|
||||
|
||||
|
||||
@@ -90,7 +90,7 @@ class RCTObjcExecutor : public JSExecutor {
|
||||
}];
|
||||
}
|
||||
|
||||
void setBundleRegistry(std::unique_ptr<RAMBundleRegistry>) override
|
||||
void setBundleRegistry(std::unique_ptr<RAMBundleRegistry> /*bundleRegistry*/) override
|
||||
{
|
||||
RCTAssert(NO, @"RAM bundles are not supported in RCTObjcExecutor");
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ RCT_EXTERN dispatch_queue_t RCTProfileGetQueue(void)
|
||||
|
||||
RCT_EXTERN NSUInteger _RCTProfileBeginFlowEvent(void)
|
||||
__deprecated_msg("This API will be removed along with the legacy architecture.");
|
||||
RCT_EXTERN void _RCTProfileEndFlowEvent(NSUInteger)
|
||||
RCT_EXTERN void _RCTProfileEndFlowEvent(NSUInteger /*cookie*/)
|
||||
__deprecated_msg("This API will be removed along with the legacy architecture.");
|
||||
|
||||
/**
|
||||
@@ -55,7 +55,7 @@ RCT_EXTERN BOOL RCTProfileIsProfiling(void)
|
||||
/**
|
||||
* Start collecting profiling information
|
||||
*/
|
||||
RCT_EXTERN void RCTProfileInit(RCTBridge *)
|
||||
RCT_EXTERN void RCTProfileInit(RCTBridge * /*bridge*/)
|
||||
__deprecated_msg("This API will be removed along with the legacy architecture.");
|
||||
|
||||
/**
|
||||
@@ -63,7 +63,7 @@ RCT_EXTERN void RCTProfileInit(RCTBridge *)
|
||||
* returned is compliant with google's trace event format - the format used
|
||||
* as input to trace-viewer
|
||||
*/
|
||||
RCT_EXTERN void RCTProfileEnd(RCTBridge *, void (^)(NSString *))
|
||||
RCT_EXTERN void RCTProfileEnd(RCTBridge * /*bridge*/, void (^/*callback*/)(NSString *))
|
||||
__deprecated_msg("This API will be removed along with the legacy architecture.");
|
||||
|
||||
/**
|
||||
@@ -164,13 +164,13 @@ RCT_EXTERN void RCTProfileImmediateEvent(uint64_t tag, NSString *name, NSTimeInt
|
||||
/**
|
||||
* Hook into a bridge instance to log all bridge module's method calls
|
||||
*/
|
||||
RCT_EXTERN void RCTProfileHookModules(RCTBridge *)
|
||||
RCT_EXTERN void RCTProfileHookModules(RCTBridge * /*bridge*/)
|
||||
__deprecated_msg("This API will be removed along with the legacy architecture.");
|
||||
|
||||
/**
|
||||
* Unhook from a given bridge instance's modules
|
||||
*/
|
||||
RCT_EXTERN void RCTProfileUnhookModules(RCTBridge *)
|
||||
RCT_EXTERN void RCTProfileUnhookModules(RCTBridge * /*bridge*/)
|
||||
__deprecated_msg("This API will be removed along with the legacy architecture.");
|
||||
|
||||
/**
|
||||
@@ -215,7 +215,7 @@ typedef struct {
|
||||
void (*end_async_flow)(uint64_t tag, const char *name, int cookie);
|
||||
} RCTProfileCallbacks __deprecated_msg("This API will be removed along with the legacy architecture.");
|
||||
|
||||
RCT_EXTERN void RCTProfileRegisterCallbacks(RCTProfileCallbacks *)
|
||||
RCT_EXTERN void RCTProfileRegisterCallbacks(RCTProfileCallbacks * /*cb*/)
|
||||
__deprecated_msg("This API will be removed along with the legacy architecture.");
|
||||
|
||||
/**
|
||||
|
||||
@@ -184,7 +184,7 @@ RCT_EXTERN void RCTProfileTrampoline(void);
|
||||
static void *RCTProfileTrampoline = NULL;
|
||||
#endif
|
||||
|
||||
RCT_EXTERN void RCTProfileTrampolineStart(id, SEL);
|
||||
RCT_EXTERN void RCTProfileTrampolineStart(id /*self*/, SEL /*cmd*/);
|
||||
void RCTProfileTrampolineStart(id self, SEL cmd)
|
||||
{
|
||||
/**
|
||||
|
||||
+1
-1
@@ -49,7 +49,7 @@ class JCxxInspectorPackagerConnection
|
||||
jni::alias_ref<JDelegateImpl::javaobject> delegate);
|
||||
|
||||
static jni::local_ref<jhybriddata> initHybrid(
|
||||
jni::alias_ref<jclass>,
|
||||
jni::alias_ref<jclass> /*unused*/,
|
||||
const std::string& url,
|
||||
const std::string& deviceName,
|
||||
const std::string& packageName,
|
||||
|
||||
@@ -19,8 +19,8 @@ class JInspectorFlags : public jni::JavaClass<JInspectorFlags> {
|
||||
static constexpr auto kJavaDescriptor =
|
||||
"Lcom/facebook/react/devsupport/InspectorFlags;";
|
||||
|
||||
static bool getFuseboxEnabled(jni::alias_ref<jclass>);
|
||||
static bool getIsProfilingBuild(jni::alias_ref<jclass>);
|
||||
static bool getFuseboxEnabled(jni::alias_ref<jclass> /*unused*/);
|
||||
static bool getIsProfilingBuild(jni::alias_ref<jclass> /*unused*/);
|
||||
|
||||
static void registerNatives();
|
||||
|
||||
|
||||
@@ -25,7 +25,8 @@ class ComponentFactory : public jni::HybridClass<ComponentFactory> {
|
||||
ComponentRegistryFactory buildRegistryFunction;
|
||||
|
||||
private:
|
||||
static jni::local_ref<jhybriddata> initHybrid(jni::alias_ref<jclass>);
|
||||
static jni::local_ref<jhybriddata> initHybrid(
|
||||
jni::alias_ref<jclass> /*unused*/);
|
||||
};
|
||||
|
||||
} // namespace facebook::react
|
||||
|
||||
+3
-3
@@ -19,10 +19,10 @@ class HermesSamplingProfiler : public jni::JavaClass<HermesSamplingProfiler> {
|
||||
public:
|
||||
constexpr static auto kJavaDescriptor =
|
||||
"Lcom/facebook/hermes/instrumentation/HermesSamplingProfiler;";
|
||||
static void enable(jni::alias_ref<jclass>);
|
||||
static void disable(jni::alias_ref<jclass>);
|
||||
static void enable(jni::alias_ref<jclass> /*unused*/);
|
||||
static void disable(jni::alias_ref<jclass> /*unused*/);
|
||||
static void dumpSampledTraceToFile(
|
||||
jni::alias_ref<jclass>,
|
||||
jni::alias_ref<jclass> /*unused*/,
|
||||
const std::string& filename);
|
||||
|
||||
static void registerNatives();
|
||||
|
||||
@@ -43,7 +43,8 @@ class [[deprecated(
|
||||
static constexpr auto kJavaDescriptor =
|
||||
"Lcom/facebook/react/bridge/CatalystInstanceImpl;";
|
||||
|
||||
static jni::local_ref<jhybriddata> initHybrid(jni::alias_ref<jclass>);
|
||||
static jni::local_ref<jhybriddata> initHybrid(
|
||||
jni::alias_ref<jclass> /*unused*/);
|
||||
|
||||
static void registerNatives();
|
||||
|
||||
|
||||
+1
-1
@@ -62,7 +62,7 @@ class ReactInstanceManagerInspectorTarget
|
||||
jsinspector_modern::HostTargetMetadata getMetadata() override;
|
||||
void onReload(const PageReloadRequest& request) override;
|
||||
void onSetPausedInDebuggerMessage(
|
||||
const OverlaySetPausedInDebuggerMessageRequest&) override;
|
||||
const OverlaySetPausedInDebuggerMessageRequest& /*request*/) override;
|
||||
void loadNetworkResource(
|
||||
const jsinspector_modern::LoadNetworkResourceRequest& params,
|
||||
jsinspector_modern::ScopedExecutor<
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@ class DefaultComponentsRegistry
|
||||
|
||||
private:
|
||||
static void setRegistryRunction(
|
||||
jni::alias_ref<jclass>,
|
||||
jni::alias_ref<jclass> /*unused*/,
|
||||
ComponentFactory* delegate);
|
||||
};
|
||||
|
||||
|
||||
+3
-2
@@ -25,8 +25,9 @@ class DefaultTurboModuleManagerDelegate : public jni::HybridClass<
|
||||
"Lcom/facebook/react/defaults/DefaultTurboModuleManagerDelegate;";
|
||||
|
||||
static jni::local_ref<jhybriddata> initHybrid(
|
||||
jni::alias_ref<jclass>,
|
||||
jni::alias_ref<jni::JList<CxxReactPackage::javaobject>::javaobject>);
|
||||
jni::alias_ref<jclass> /*unused*/,
|
||||
jni::alias_ref<jni::JList<
|
||||
CxxReactPackage::javaobject>::javaobject> /*cxxReactPackages*/);
|
||||
|
||||
static void registerNatives();
|
||||
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ class BlobCollector : public jni::HybridClass<BlobCollector>,
|
||||
"Lcom/facebook/react/modules/blob/BlobCollector;";
|
||||
|
||||
static void nativeInstall(
|
||||
jni::alias_ref<jclass>,
|
||||
jni::alias_ref<jclass> /*unused*/,
|
||||
jni::alias_ref<jobject> blobModule,
|
||||
jlong jsContextNativePointer);
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ class JReactInstance : public jni::HybridClass<JReactInstance> {
|
||||
"Lcom/facebook/react/runtime/ReactInstance;";
|
||||
|
||||
static jni::local_ref<jhybriddata> initHybrid(
|
||||
jni::alias_ref<jhybridobject>,
|
||||
jni::alias_ref<jhybridobject> /*unused*/,
|
||||
jni::alias_ref<JJSRuntimeFactory::javaobject> jsRuntimeFactory,
|
||||
jni::alias_ref<JavaMessageQueueThread::javaobject> jsMessageQueueThread,
|
||||
jni::alias_ref<JavaMessageQueueThread::javaobject>
|
||||
|
||||
@@ -110,7 +110,7 @@ class CxxModule {
|
||||
Method(
|
||||
std::string aname,
|
||||
std::function<void(folly::dynamic, Callback, Callback)>&& afunc,
|
||||
AsyncTagType)
|
||||
AsyncTagType /*unused*/)
|
||||
: name(std::move(aname)),
|
||||
callbacks(2),
|
||||
isPromise(false),
|
||||
@@ -163,7 +163,7 @@ class CxxModule {
|
||||
std::string aname,
|
||||
T* t,
|
||||
void (T::*method)(folly::dynamic, Callback, Callback),
|
||||
AsyncTagType)
|
||||
AsyncTagType /*unused*/)
|
||||
: name(std::move(aname)),
|
||||
callbacks(2),
|
||||
isPromise(false),
|
||||
@@ -183,7 +183,7 @@ class CxxModule {
|
||||
Method(
|
||||
std::string aname,
|
||||
std::function<folly::dynamic()>&& afunc,
|
||||
SyncTagType)
|
||||
SyncTagType /*unused*/)
|
||||
: name(std::move(aname)),
|
||||
callbacks(0),
|
||||
isPromise(false),
|
||||
@@ -194,7 +194,7 @@ class CxxModule {
|
||||
Method(
|
||||
std::string aname,
|
||||
std::function<folly::dynamic(folly::dynamic)>&& afunc,
|
||||
SyncTagType)
|
||||
SyncTagType /*unused*/)
|
||||
: name(std::move(aname)),
|
||||
callbacks(0),
|
||||
isPromise(false),
|
||||
|
||||
@@ -27,8 +27,8 @@ class ArgsConverter;
|
||||
class JSCRuntime;
|
||||
|
||||
struct Lock {
|
||||
void lock(const jsc::JSCRuntime&) const {}
|
||||
void unlock(const jsc::JSCRuntime&) const {}
|
||||
void lock(const jsc::JSCRuntime& /*unused*/) const {}
|
||||
void unlock(const jsc::JSCRuntime& /*unused*/) const {}
|
||||
};
|
||||
|
||||
class JSCRuntime : public jsi::Runtime {
|
||||
@@ -158,78 +158,88 @@ class JSCRuntime : public jsi::Runtime {
|
||||
override;
|
||||
jsi::PropNameID createPropNameIDFromString(const jsi::String& str) override;
|
||||
jsi::PropNameID createPropNameIDFromSymbol(const jsi::Symbol& sym) override;
|
||||
std::string utf8(const jsi::PropNameID&) override;
|
||||
bool compare(const jsi::PropNameID&, const jsi::PropNameID&) override;
|
||||
std::string utf8(const jsi::PropNameID& /*sym*/) override;
|
||||
bool compare(const jsi::PropNameID& /*a*/, const jsi::PropNameID& /*b*/)
|
||||
override;
|
||||
|
||||
std::string symbolToString(const jsi::Symbol&) override;
|
||||
std::string symbolToString(const jsi::Symbol& /*sym*/) override;
|
||||
|
||||
jsi::BigInt createBigIntFromInt64(int64_t) override;
|
||||
jsi::BigInt createBigIntFromUint64(uint64_t) override;
|
||||
bool bigintIsInt64(const jsi::BigInt&) override;
|
||||
bool bigintIsUint64(const jsi::BigInt&) override;
|
||||
uint64_t truncate(const jsi::BigInt&) override;
|
||||
jsi::String bigintToString(const jsi::BigInt&, int) override;
|
||||
jsi::BigInt createBigIntFromInt64(int64_t /*unused*/) override;
|
||||
jsi::BigInt createBigIntFromUint64(uint64_t /*unused*/) override;
|
||||
bool bigintIsInt64(const jsi::BigInt& /*unused*/) override;
|
||||
bool bigintIsUint64(const jsi::BigInt& /*unused*/) override;
|
||||
uint64_t truncate(const jsi::BigInt& /*unused*/) override;
|
||||
jsi::String bigintToString(const jsi::BigInt& /*unused*/, int /*unused*/)
|
||||
override;
|
||||
|
||||
jsi::String createStringFromAscii(const char* str, size_t length) override;
|
||||
jsi::String createStringFromUtf8(const uint8_t* utf8, size_t length) override;
|
||||
std::string utf8(const jsi::String&) override;
|
||||
std::string utf8(const jsi::String& /*str*/) override;
|
||||
|
||||
jsi::Object createObject() override;
|
||||
jsi::Object createObject(std::shared_ptr<jsi::HostObject> ho) override;
|
||||
virtual std::shared_ptr<jsi::HostObject> getHostObject(
|
||||
const jsi::Object&) override;
|
||||
jsi::HostFunctionType& getHostFunction(const jsi::Function&) override;
|
||||
const jsi::Object& /*obj*/) override;
|
||||
jsi::HostFunctionType& getHostFunction(const jsi::Function& /*obj*/) override;
|
||||
|
||||
bool hasNativeState(const jsi::Object&) override;
|
||||
std::shared_ptr<jsi::NativeState> getNativeState(const jsi::Object&) override;
|
||||
void setNativeState(const jsi::Object&, std::shared_ptr<jsi::NativeState>)
|
||||
override;
|
||||
bool hasNativeState(const jsi::Object& /*obj*/) override;
|
||||
std::shared_ptr<jsi::NativeState> getNativeState(
|
||||
const jsi::Object& /*obj*/) override;
|
||||
void setNativeState(
|
||||
const jsi::Object& /*obj*/,
|
||||
std::shared_ptr<jsi::NativeState> /*nativeState*/) override;
|
||||
|
||||
jsi::Value getProperty(const jsi::Object&, const jsi::String& name) override;
|
||||
jsi::Value getProperty(const jsi::Object&, const jsi::PropNameID& name)
|
||||
jsi::Value getProperty(const jsi::Object& /*obj*/, const jsi::String& name)
|
||||
override;
|
||||
jsi::Value getProperty(
|
||||
const jsi::Object& /*obj*/,
|
||||
const jsi::PropNameID& name) override;
|
||||
bool hasProperty(const jsi::Object& /*obj*/, const jsi::String& name)
|
||||
override;
|
||||
bool hasProperty(const jsi::Object& /*obj*/, const jsi::PropNameID& name)
|
||||
override;
|
||||
bool hasProperty(const jsi::Object&, const jsi::String& name) override;
|
||||
bool hasProperty(const jsi::Object&, const jsi::PropNameID& name) override;
|
||||
void setPropertyValue(
|
||||
const jsi::Object&,
|
||||
const jsi::Object& /*object*/,
|
||||
const jsi::String& name,
|
||||
const jsi::Value& value) override;
|
||||
void setPropertyValue(
|
||||
const jsi::Object&,
|
||||
const jsi::Object& /*object*/,
|
||||
const jsi::PropNameID& name,
|
||||
const jsi::Value& value) override;
|
||||
bool isArray(const jsi::Object&) const override;
|
||||
bool isArrayBuffer(const jsi::Object&) const override;
|
||||
bool isFunction(const jsi::Object&) const override;
|
||||
bool isHostObject(const jsi::Object&) const override;
|
||||
bool isHostFunction(const jsi::Function&) const override;
|
||||
jsi::Array getPropertyNames(const jsi::Object&) override;
|
||||
bool isArray(const jsi::Object& /*obj*/) const override;
|
||||
bool isArrayBuffer(const jsi::Object& /*obj*/) const override;
|
||||
bool isFunction(const jsi::Object& /*obj*/) const override;
|
||||
bool isHostObject(const jsi::Object& /*obj*/) const override;
|
||||
bool isHostFunction(const jsi::Function& /*obj*/) const override;
|
||||
jsi::Array getPropertyNames(const jsi::Object& /*obj*/) override;
|
||||
|
||||
// TODO: revisit this implementation
|
||||
jsi::WeakObject createWeakObject(const jsi::Object&) override;
|
||||
jsi::Value lockWeakObject(const jsi::WeakObject&) override;
|
||||
jsi::WeakObject createWeakObject(const jsi::Object& /*obj*/) override;
|
||||
jsi::Value lockWeakObject(const jsi::WeakObject& /*obj*/) override;
|
||||
|
||||
jsi::Array createArray(size_t length) override;
|
||||
jsi::ArrayBuffer createArrayBuffer(
|
||||
std::shared_ptr<jsi::MutableBuffer> buffer) override;
|
||||
size_t size(const jsi::Array&) override;
|
||||
size_t size(const jsi::ArrayBuffer&) override;
|
||||
uint8_t* data(const jsi::ArrayBuffer&) override;
|
||||
jsi::Value getValueAtIndex(const jsi::Array&, size_t i) override;
|
||||
void setValueAtIndexImpl(const jsi::Array&, size_t i, const jsi::Value& value)
|
||||
override;
|
||||
size_t size(const jsi::Array& /*arr*/) override;
|
||||
size_t size(const jsi::ArrayBuffer& /*obj*/) override;
|
||||
uint8_t* data(const jsi::ArrayBuffer& /*obj*/) override;
|
||||
jsi::Value getValueAtIndex(const jsi::Array& /*arr*/, size_t i) override;
|
||||
void setValueAtIndexImpl(
|
||||
const jsi::Array& /*arr*/,
|
||||
size_t i,
|
||||
const jsi::Value& value) override;
|
||||
|
||||
jsi::Function createFunctionFromHostFunction(
|
||||
const jsi::PropNameID& name,
|
||||
unsigned int paramCount,
|
||||
jsi::HostFunctionType func) override;
|
||||
jsi::Value call(
|
||||
const jsi::Function&,
|
||||
const jsi::Function& /*f*/,
|
||||
const jsi::Value& jsThis,
|
||||
const jsi::Value* args,
|
||||
size_t count) override;
|
||||
jsi::Value callAsConstructor(
|
||||
const jsi::Function&,
|
||||
const jsi::Function& /*f*/,
|
||||
const jsi::Value* args,
|
||||
size_t count) override;
|
||||
|
||||
@@ -238,7 +248,8 @@ class JSCRuntime : public jsi::Runtime {
|
||||
bool strictEquals(const jsi::String& a, const jsi::String& b) const override;
|
||||
bool strictEquals(const jsi::Object& a, const jsi::Object& b) const override;
|
||||
bool instanceOf(const jsi::Object& o, const jsi::Function& f) override;
|
||||
void setExternalMemoryPressure(const jsi::Object&, size_t) override;
|
||||
void setExternalMemoryPressure(const jsi::Object& /*obj*/, size_t /*amount*/)
|
||||
override;
|
||||
|
||||
private:
|
||||
// Basically convenience casts
|
||||
@@ -605,7 +616,7 @@ jsi::Runtime::PointerValue* JSCRuntime::cloneSymbol(
|
||||
}
|
||||
|
||||
jsi::Runtime::PointerValue* JSCRuntime::cloneBigInt(
|
||||
const Runtime::PointerValue*) {
|
||||
const Runtime::PointerValue* /*pv*/) {
|
||||
throw std::logic_error("Not implemented");
|
||||
}
|
||||
|
||||
@@ -683,27 +694,29 @@ std::string JSCRuntime::symbolToString(const jsi::Symbol& sym) {
|
||||
return jsi::Value(*this, sym).toString(*this).utf8(*this);
|
||||
}
|
||||
|
||||
jsi::BigInt JSCRuntime::createBigIntFromInt64(int64_t) {
|
||||
jsi::BigInt JSCRuntime::createBigIntFromInt64(int64_t /*unused*/) {
|
||||
throw std::logic_error("Not implemented");
|
||||
}
|
||||
|
||||
jsi::BigInt JSCRuntime::createBigIntFromUint64(uint64_t) {
|
||||
jsi::BigInt JSCRuntime::createBigIntFromUint64(uint64_t /*unused*/) {
|
||||
throw std::logic_error("Not implemented");
|
||||
}
|
||||
|
||||
bool JSCRuntime::bigintIsInt64(const jsi::BigInt&) {
|
||||
bool JSCRuntime::bigintIsInt64(const jsi::BigInt& /*unused*/) {
|
||||
throw std::logic_error("Not implemented");
|
||||
}
|
||||
|
||||
bool JSCRuntime::bigintIsUint64(const jsi::BigInt&) {
|
||||
bool JSCRuntime::bigintIsUint64(const jsi::BigInt& /*unused*/) {
|
||||
throw std::logic_error("Not implemented");
|
||||
}
|
||||
|
||||
uint64_t JSCRuntime::truncate(const jsi::BigInt&) {
|
||||
uint64_t JSCRuntime::truncate(const jsi::BigInt& /*unused*/) {
|
||||
throw std::logic_error("Not implemented");
|
||||
}
|
||||
|
||||
jsi::String JSCRuntime::bigintToString(const jsi::BigInt&, int) {
|
||||
jsi::String JSCRuntime::bigintToString(
|
||||
const jsi::BigInt& /*unused*/,
|
||||
int /*unused*/) {
|
||||
throw std::logic_error("Not implemented");
|
||||
}
|
||||
|
||||
@@ -1426,7 +1439,9 @@ bool JSCRuntime::instanceOf(const jsi::Object& o, const jsi::Function& f) {
|
||||
return res;
|
||||
}
|
||||
|
||||
void JSCRuntime::setExternalMemoryPressure(const jsi::Object&, size_t) {}
|
||||
void JSCRuntime::setExternalMemoryPressure(
|
||||
const jsi::Object& /*obj*/,
|
||||
size_t /*amount*/) {}
|
||||
|
||||
jsi::Runtime::PointerValue* JSCRuntime::makeSymbolValue(
|
||||
JSValueRef symbolRef) const {
|
||||
|
||||
Reference in New Issue
Block a user