Lines Matching defs:JSValueRef
54 class JSValueRef;
111 using ConcurrentCallback = void (*)(Local<JSValueRef> result, bool success, void *taskInfo, void *data);
473 class ECMA_PUBLIC_API JSValueRef {
586 bool IsStrictEquals(const EcmaVM *vm, Local<JSValueRef> value);
588 bool InstanceOf(const EcmaVM *vm, Local<JSValueRef> value);
620 JSValueRef **arrayBuffer,
642 PropertyAttribute(Local<JSValueRef> value, bool w, bool e, bool c)
692 Local<JSValueRef> GetValue(const EcmaVM *vm) const
695 return JSValueRef::Undefined(vm);
699 void SetValue(Local<JSValueRef> value)
707 Local<JSValueRef> GetGetter(const EcmaVM *vm) const
710 return JSValueRef::Undefined(vm);
714 void SetGetter(Local<JSValueRef> value)
722 Local<JSValueRef> GetSetter(const EcmaVM *vm) const
725 return JSValueRef::Undefined(vm);
729 void SetSetter(Local<JSValueRef> value)
739 Local<JSValueRef> value_;
740 Local<JSValueRef> getter_;
741 Local<JSValueRef> setter_;
750 class ECMA_PUBLIC_API NativePointerRef : public JSValueRef {
766 class ECMA_PUBLIC_API ObjectRef : public JSValueRef {
774 std::vector<Local<JSValueRef>> keys;
779 static inline ObjectRef *Cast(JSValueRef *value)
786 static Local<ObjectRef> NewWithProperties(const EcmaVM *vm, size_t propertyCount, const Local<JSValueRef> *keys,
790 const Local<JSValueRef> *values);
797 bool Set(const EcmaVM *vm, Local<JSValueRef> key, Local<JSValueRef> value);
798 bool Set(const EcmaVM *vm, const char *utf8, Local<JSValueRef> value);
799 bool Set(const EcmaVM *vm, uint32_t key, Local<JSValueRef> value);
800 bool SetAccessorProperty(const EcmaVM *vm, Local<JSValueRef> key, Local<FunctionRef> getter,
802 Local<JSValueRef> Get(const EcmaVM *vm, Local<JSValueRef> key);
803 Local<JSValueRef> Get(const EcmaVM *vm, const char *utf8);
804 Local<JSValueRef> Get(const EcmaVM *vm, int32_t key);
806 bool GetOwnProperty(const EcmaVM *vm, Local<JSValueRef> key, PropertyAttribute &property);
810 Local<JSValueRef> GetPrototype(const EcmaVM *vm);
813 bool DefineProperty(const EcmaVM *vm, Local<JSValueRef> key, PropertyAttribute attribute);
815 bool Has(const EcmaVM *vm, Local<JSValueRef> key);
818 bool HasOwnProperty(const EcmaVM *vm, Local<JSValueRef> key);
820 bool Delete(const EcmaVM *vm, Local<JSValueRef> key);
823 Local<JSValueRef> Freeze(const EcmaVM *vm);
824 Local<JSValueRef> Seal(const EcmaVM *vm);
841 using FunctionCallback = Local<JSValueRef>(*)(JsiRuntimeCallInfo*);
842 using InternalFunctionCallback = JSValueRef(*)(JsiRuntimeCallInfo*);
895 JSValueRef* CallForNapi(const EcmaVM *vm, JSValueRef *thisObj, JSValueRef *const argv[],
897 Local<JSValueRef> Call(const EcmaVM *vm, Local<JSValueRef> thisObj, const Local<JSValueRef> argv[],
899 Local<JSValueRef> Constructor(const EcmaVM *vm, const Local<JSValueRef> argv[], int32_t length);
900 JSValueRef* ConstructorOptimize(const EcmaVM *vm, JSValueRef* argv[], int32_t length);
902 Local<JSValueRef> GetFunctionPrototype(const EcmaVM *vm);
912 class ECMA_PUBLIC_API PrimitiveRef : public JSValueRef {
914 Local<JSValueRef> GetValue(const EcmaVM *vm);
931 static inline StringRef *Cast(JSValueRef *value)
954 PromiseRejectInfo(Local<JSValueRef> promise, Local<JSValueRef> reason,
957 Local<JSValueRef> GetPromise() const;
958 Local<JSValueRef> GetReason() const;
963 Local<JSValueRef> promise_ {};
964 Local<JSValueRef> reason_ {};
1010 static Local<JSValueRef> CreateBigWords(const EcmaVM *vm, bool sign, uint32_t size, const uint64_t* words);
1118 static bool SetValueAt(const EcmaVM *vm, Local<JSValueRef> obj, uint32_t index, Local<JSValueRef> value);
1119 static Local<JSValueRef> GetValueAt(const EcmaVM *vm, Local<JSValueRef> obj, uint32_t index);
1126 static Local<JSValueRef> GetValueAt(const EcmaVM *vm, Local<JSValueRef> obj, uint32_t index);
1127 static bool SetProperty(const EcmaVM *vm, Local<JSValueRef> obj, uint32_t index, Local<JSValueRef> value);
1242 static Local<JSValueRef> Error(const EcmaVM *vm, Local<StringRef> message);
1243 static Local<JSValueRef> RangeError(const EcmaVM *vm, Local<StringRef> message);
1244 static Local<JSValueRef> ReferenceError(const EcmaVM *vm, Local<StringRef> message);
1245 static Local<JSValueRef> SyntaxError(const EcmaVM *vm, Local<StringRef> message);
1246 static Local<JSValueRef> TypeError(const EcmaVM *vm, Local<StringRef> message);
1247 static Local<JSValueRef> AggregateError(const EcmaVM *vm, Local<StringRef> message);
1248 static Local<JSValueRef> EvalError(const EcmaVM *vm, Local<StringRef> message);
1249 static Local<JSValueRef> OOMError(const EcmaVM *vm, Local<StringRef> message);
1250 static Local<JSValueRef> TerminationError(const EcmaVM *vm, Local<StringRef> message);
1332 inline Local<JSValueRef> GetFunctionRef() const
1337 inline Local<JSValueRef> GetNewTargetRef() const
1342 inline Local<JSValueRef> GetThisRef() const
1347 inline Local<JSValueRef> GetCallArgRef(uint32_t idx) const
1355 Local<JSValueRef> GetArgRef(uint32_t idx) const
1357 return Local<JSValueRef>(GetArgAddress(idx));
1379 Local<JSValueRef> Get(const EcmaVM *vm, Local<JSValueRef> key);
1380 Local<JSValueRef> Get(const EcmaVM *vm, const char *utf8);
1381 Local<JSValueRef> GetKey(const EcmaVM *vm, int entry);
1382 Local<JSValueRef> GetValue(const EcmaVM *vm, int entry);
1384 void Set(const EcmaVM *vm, Local<JSValueRef> key, Local<JSValueRef> value);
1385 void Set(const EcmaVM *vm, const char *utf8, Local<JSValueRef> value);
1386 bool Has(const EcmaVM *vm, Local<JSValueRef> key);
1388 void Delete(const EcmaVM *vm, Local<JSValueRef> key);
1400 Local<JSValueRef> Get(const EcmaVM *vm, Local<JSValueRef> key);
1401 Local<JSValueRef> Get(const EcmaVM *vm, const char *utf8);
1402 Local<JSValueRef> GetKey(const EcmaVM *vm, int entry);
1403 Local<JSValueRef> GetValue(const EcmaVM *vm, int entry);
1404 void Set(const EcmaVM *vm, Local<JSValueRef> key, Local<JSValueRef> value);
1405 void Set(const EcmaVM *vm, const char *utf8, Local<JSValueRef> value);
1406 bool Has(const EcmaVM *vm, Local<JSValueRef> key);
1408 void Delete(const EcmaVM *vm, Local<JSValueRef> key);
1420 Local<JSValueRef> GetValue(const EcmaVM *vm, int entry);
1421 void Add(const EcmaVM *vm, Local<JSValueRef> value);
1442 Local<JSValueRef> GetPromiseState(const EcmaVM *vm);
1443 Local<JSValueRef> GetPromiseResult(const EcmaVM *vm);
1450 bool Resolve(const EcmaVM *vm, Local<JSValueRef> value);
1452 bool Reject(const EcmaVM *vm, Local<JSValueRef> reason);
1478 Local<JSValueRef> GetKind(const EcmaVM *vm);
1482 Local<JSValueRef> Next(const EcmaVM *vm);
1487 Local<JSValueRef> Next(const EcmaVM *vm);
1626 static void ThrowException(const EcmaVM *vm, Local<JSValueRef> error);
1661 static void* SerializeValue(const EcmaVM *vm, Local<JSValueRef> data, Local<JSValueRef> transfer,
1662 Local<JSValueRef> cloneList,
1665 static Local<JSValueRef> DeserializeValue(const EcmaVM *vm, void *recoder, void *hint);
1674 static void SetHostEnqueueJob(const EcmaVM* vm, Local<JSValueRef> cb,
1716 static bool InitForConcurrentFunction(EcmaVM *vm, Local<JSValueRef> func, void *taskInfo);
1740 static Local<JSValueRef> NapiHasProperty(const EcmaVM *vm, uintptr_t nativeObj, uintptr_t key);
1741 static Local<JSValueRef> NapiHasOwnProperty(const EcmaVM *vm, uintptr_t nativeObj, uintptr_t key);
1742 static Local<JSValueRef> NapiGetProperty(const EcmaVM *vm, uintptr_t nativeObj, uintptr_t key);
1743 static Local<JSValueRef> NapiDeleteProperty(const EcmaVM *vm, uintptr_t nativeObj, uintptr_t key);
1744 static Local<JSValueRef> NapiGetNamedProperty(const EcmaVM *vm, uintptr_t nativeObj, const char* utf8Key);
1746 static Local<JSValueRef> CreateLocal(const EcmaVM *vm, JSValueRef src);
1787 Local<JSValueRef> GetHandler(const EcmaVM *vm);
1788 Local<JSValueRef> GetTarget(const EcmaVM *vm);
1796 Local<JSValueRef> GetKey(const EcmaVM *vm, int entry);
1797 Local<JSValueRef> GetValue(const EcmaVM *vm, int entry);
1799 void Set(const EcmaVM *vm, const Local<JSValueRef> &key, const Local<JSValueRef> &value);
1800 bool Has(const EcmaVM *vm, Local<JSValueRef> key);
1807 Local<JSValueRef> GetValue(const EcmaVM *vm, int entry);
1809 void Add(const EcmaVM *vm, Local<JSValueRef> value);
1816 Local<JSValueRef> GetValue(const EcmaVM *vm, int entry);
1818 void Add(const EcmaVM *vm, Local<JSValueRef> value);
1824 Local<JSValueRef> GetKind(const EcmaVM *vm);