Lines Matching full:vm
96 Local(const EcmaVM *vm, const Global<T> ¤t);
98 Local(const EcmaVM *vm, const CopyableGlobal<T> ¤t);
176 CopyableGlobal(const EcmaVM *vm, const Local<S> ¤t);
178 CopyableGlobal(const EcmaVM *vm, const Local<T> ¤t);
272 Global(const EcmaVM *vm, const Local<S> ¤t);
274 Global(const EcmaVM *vm, const Global<S> ¤t);
286 Local<T> ToLocal(const EcmaVM *vm) const in ToLocal() argument
288 return Local<T>(vm, *this); in ToLocal()
335 explicit LocalScope(const EcmaVM *vm);
339 inline LocalScope(const EcmaVM *vm, JSTaggedType value);
350 explicit EscapeLocalScope(const EcmaVM *vm);
372 explicit JSExecutionScope(const EcmaVM *vm);
384 static Local<PrimitiveRef> Undefined(const EcmaVM *vm);
385 static Local<PrimitiveRef> Null(const EcmaVM *vm);
386 static Local<PrimitiveRef> True(const EcmaVM *vm);
387 static Local<PrimitiveRef> False(const EcmaVM *vm);
390 int64_t IntegerValue(const EcmaVM *vm);
391 uint32_t Uint32Value(const EcmaVM *vm);
392 int32_t Int32Value(const EcmaVM *vm);
394 Local<NumberRef> ToNumber(const EcmaVM *vm);
395 Local<BooleanRef> ToBoolean(const EcmaVM *vm);
396 Local<StringRef> ToString(const EcmaVM *vm);
397 Local<ObjectRef> ToObject(const EcmaVM *vm);
398 Local<NativePointerRef> ToNativePointer(const EcmaVM *vm);
413 bool IsArray(const EcmaVM *vm);
471 bool IsStrictEquals(const EcmaVM *vm, Local<JSValueRef> value);
472 Local<StringRef> Typeof(const EcmaVM *vm);
473 bool InstanceOf(const EcmaVM *vm, Local<JSValueRef> value);
486 Local<JSValueRef> GetValue(const EcmaVM *vm);
491 static Local<IntegerRef> New(const EcmaVM *vm, int input);
492 static Local<IntegerRef> NewFromUnsigned(const EcmaVM *vm, unsigned int input);
498 static Local<NumberRef> New(const EcmaVM *vm, double input);
499 static Local<NumberRef> New(const EcmaVM *vm, int32_t input);
500 static Local<NumberRef> New(const EcmaVM *vm, uint32_t input);
501 static Local<NumberRef> New(const EcmaVM *vm, int64_t input);
508 static Local<BigIntRef> New(const EcmaVM *vm, uint64_t input);
509 static Local<BigIntRef> New(const EcmaVM *vm, int64_t input);
510 …static Local<JSValueRef> CreateBigWords(const EcmaVM *vm, bool sign, uint32_t size, const uint64_t…
511 void BigIntToInt64(const EcmaVM *vm, int64_t *cValue, bool *lossless);
512 void BigIntToUint64(const EcmaVM *vm, uint64_t *cValue, bool *lossless);
519 static Local<BooleanRef> New(const EcmaVM *vm, bool input);
530 static Local<StringRef> NewFromUtf8(const EcmaVM *vm, const char *utf8, int length = -1);
535 static Local<StringRef> GetNapiWrapperString(const EcmaVM *vm);
540 static Local<SymbolRef> New(const EcmaVM *vm, Local<StringRef> description);
541 Local<StringRef> GetDescription(const EcmaVM *vm);
547 …static Local<NativePointerRef> New(const EcmaVM *vm, void *nativePointer, size_t nativeBindingsize…
548 …static Local<NativePointerRef> New(const EcmaVM *vm, void *nativePointer, NativePointerCallback ca…
611 Local<JSValueRef> GetValue(const EcmaVM *vm) const in GetValue() argument
614 return JSValueRef::Undefined(vm); in GetValue()
626 Local<JSValueRef> GetGetter(const EcmaVM *vm) const in GetGetter() argument
629 return JSValueRef::Undefined(vm); in GetGetter()
641 Local<JSValueRef> GetSetter(const EcmaVM *vm) const in GetSetter() argument
644 return JSValueRef::Undefined(vm); in GetSetter()
676 static Local<ObjectRef> New(const EcmaVM *vm);
677 static Local<ObjectRef> New(const EcmaVM *vm, void *attach, void *detach);
678 bool Set(const EcmaVM *vm, void *attach, void *detach);
679 bool Set(const EcmaVM *vm, Local<JSValueRef> key, Local<JSValueRef> value);
680 bool Set(const EcmaVM *vm, uint32_t key, Local<JSValueRef> value);
681 bool SetAccessorProperty(const EcmaVM *vm, Local<JSValueRef> key, Local<FunctionRef> getter,
683 Local<JSValueRef> Get(const EcmaVM *vm, Local<JSValueRef> key);
684 Local<JSValueRef> Get(const EcmaVM *vm, int32_t key);
686 bool GetOwnProperty(const EcmaVM *vm, Local<JSValueRef> key, PropertyAttribute &property);
687 Local<ArrayRef> GetOwnPropertyNames(const EcmaVM *vm);
688 Local<ArrayRef> GetOwnEnumerablePropertyNames(const EcmaVM *vm);
689 Local<JSValueRef> GetPrototype(const EcmaVM *vm);
691 bool DefineProperty(const EcmaVM *vm, Local<JSValueRef> key, PropertyAttribute attribute);
693 bool Has(const EcmaVM *vm, Local<JSValueRef> key);
694 bool Has(const EcmaVM *vm, uint32_t key);
696 bool Delete(const EcmaVM *vm, Local<JSValueRef> key);
697 bool Delete(const EcmaVM *vm, uint32_t key);
711 … static Local<FunctionRef> New(EcmaVM *vm, FunctionCallback nativeFunc, Deleter deleter = nullptr,
713 …static Local<FunctionRef> NewClassFunction(EcmaVM *vm, FunctionCallback nativeFunc, Deleter delete…
715 …Local<JSValueRef> Call(const EcmaVM *vm, Local<JSValueRef> thisObj, const Local<JSValueRef> argv[],
717 Local<JSValueRef> Constructor(const EcmaVM *vm, const Local<JSValueRef> argv[], int32_t length);
719 Local<JSValueRef> GetFunctionPrototype(const EcmaVM *vm);
722 bool Inherit(const EcmaVM *vm, Local<FunctionRef> parent);
723 void SetName(const EcmaVM *vm, Local<StringRef> name);
724 Local<StringRef> GetName(const EcmaVM *vm);
725 Local<StringRef> GetSourceCode(const EcmaVM *vm, int lineNumber);
726 bool IsNative(const EcmaVM *vm);
731 static Local<ArrayRef> New(const EcmaVM *vm, uint32_t length = 0);
732 int32_t Length(const EcmaVM *vm);
733 …static bool SetValueAt(const EcmaVM *vm, Local<JSValueRef> obj, uint32_t index, Local<JSValueRef> …
734 static Local<JSValueRef> GetValueAt(const EcmaVM *vm, Local<JSValueRef> obj, uint32_t index);
739 Local<PromiseRef> Catch(const EcmaVM *vm, Local<FunctionRef> handler);
740 Local<PromiseRef> Then(const EcmaVM *vm, Local<FunctionRef> handler);
741 Local<PromiseRef> Finally(const EcmaVM *vm, Local<FunctionRef> handler);
742 …Local<PromiseRef> Then(const EcmaVM *vm, Local<FunctionRef> onFulfilled, Local<FunctionRef> onReje…
747 static Local<PromiseCapabilityRef> New(const EcmaVM *vm);
748 bool Resolve(const EcmaVM *vm, Local<JSValueRef> value);
749 bool Reject(const EcmaVM *vm, Local<JSValueRef> reason);
750 Local<PromiseRef> GetPromise(const EcmaVM *vm);
755 static Local<ArrayBufferRef> New(const EcmaVM *vm, int32_t length);
756 …static Local<ArrayBufferRef> New(const EcmaVM *vm, void *buffer, int32_t length, const Deleter &de…
759 int32_t ByteLength(const EcmaVM *vm);
765 …static Local<DataViewRef> New(const EcmaVM *vm, Local<ArrayBufferRef> arrayBuffer, uint32_t byteOf…
769 Local<ArrayBufferRef> GetArrayBuffer(const EcmaVM *vm);
774 uint32_t ByteLength(const EcmaVM *vm);
775 uint32_t ByteOffset(const EcmaVM *vm);
776 uint32_t ArrayLength(const EcmaVM *vm);
777 Local<ArrayBufferRef> GetArrayBuffer(const EcmaVM *vm);
782 …static Local<Int8ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffset,…
787 …static Local<Uint8ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffset…
792 …static Local<Uint8ClampedArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byt…
798 …static Local<Int16ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffset…
803 …static Local<Uint16ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffse…
809 …static Local<Int32ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffset…
814 …static Local<Uint32ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffse…
820 …static Local<Float32ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffs…
826 …static Local<Float64ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffs…
832 …static Local<BigInt64ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOff…
838 …static Local<BigUint64ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOf…
844 Local<StringRef> GetOriginalSource(const EcmaVM *vm);
846 Local<JSValueRef> IsGlobal(const EcmaVM *vm);
847 Local<JSValueRef> IsIgnoreCase(const EcmaVM *vm);
848 Local<JSValueRef> IsMultiline(const EcmaVM *vm);
849 Local<JSValueRef> IsDotAll(const EcmaVM *vm);
850 Local<JSValueRef> IsUtf16(const EcmaVM *vm);
851 Local<JSValueRef> IsStick(const EcmaVM *vm);
856 static Local<DateRef> New(const EcmaVM *vm, double time);
857 Local<StringRef> ToString(const EcmaVM *vm);
865 Local<JSValueRef> Get(const EcmaVM *vm, Local<JSValueRef> key);
866 Local<JSValueRef> GetKey(const EcmaVM *vm, int entry);
867 Local<JSValueRef> GetValue(const EcmaVM *vm, int entry);
868 static Local<MapRef> New(const EcmaVM *vm);
869 void Set(const EcmaVM *vm, Local<JSValueRef> key, Local<JSValueRef> value);
876 Local<JSValueRef> GetValue(const EcmaVM *vm, int entry);
882 Local<JSValueRef> GetKind(const EcmaVM *vm);
888 Local<JSValueRef> GetKind(const EcmaVM *vm);
898 Local<JSValueRef> GetGeneratorState(const EcmaVM *vm);
899 Local<JSValueRef> GetGeneratorFunction(const EcmaVM *vm);
900 Local<JSValueRef> GetGeneratorReceiver(const EcmaVM *vm);
905 Local<JSValueRef> GetCompareFunction(const EcmaVM *vm);
910 Local<JSValueRef> GetFormatFunction(const EcmaVM *vm);
915 Local<JSValueRef> GetFormatFunction(const EcmaVM *vm);
920 static Local<JSValueRef> Parse(const EcmaVM *vm, Local<StringRef> string);
921 static Local<JSValueRef> Stringify(const EcmaVM *vm, Local<JSValueRef> json);
926 static Local<JSValueRef> Error(const EcmaVM *vm, Local<StringRef> message);
927 static Local<JSValueRef> RangeError(const EcmaVM *vm, Local<StringRef> message);
928 static Local<JSValueRef> ReferenceError(const EcmaVM *vm, Local<StringRef> message);
929 static Local<JSValueRef> SyntaxError(const EcmaVM *vm, Local<StringRef> message);
930 static Local<JSValueRef> TypeError(const EcmaVM *vm, Local<StringRef> message);
931 static Local<JSValueRef> AggregateError(const EcmaVM *vm, Local<StringRef> message);
932 static Local<JSValueRef> EvalError(const EcmaVM *vm, Local<StringRef> message);
933 static Local<JSValueRef> OOMError(const EcmaVM *vm, Local<StringRef> message);
1221 static void LoadAotFile(EcmaVM *vm, const std::string &hapPath);
1224 …static bool Execute(EcmaVM *vm, const std::string &fileName, const std::string &entry, bool needUp…
1225 static bool Execute(EcmaVM *vm, const uint8_t *data, int32_t size, const std::string &entry,
1228 …static bool ExecuteModuleBuffer(EcmaVM *vm, const uint8_t *data, int32_t size, const std::string &…
1230 …static bool ExecuteModuleFromBuffer(EcmaVM *vm, const void *data, int32_t size, const std::string …
1231 …static Local<ObjectRef> GetExportObject(EcmaVM *vm, const std::string &file, const std::string &ke…
1232 …static Local<ObjectRef> GetExportObjectFromBuffer(EcmaVM *vm, const std::string &file, const std::…
1235 static Local<ObjectRef> GetGlobalObject(const EcmaVM *vm);
1236 static void ExecutePendingJob(const EcmaVM *vm);
1240 static void TriggerGC(const EcmaVM *vm, TRIGGER_GC_TYPE gcType = TRIGGER_GC_TYPE::SEMI_GC);
1242 static void ThrowException(const EcmaVM *vm, Local<JSValueRef> error);
1243 static Local<ObjectRef> GetAndClearUncaughtException(const EcmaVM *vm);
1244 static Local<ObjectRef> GetUncaughtException(const EcmaVM *vm);
1245 static bool HasPendingException(const EcmaVM *vm);
1246 static void EnableUserUncaughtErrorHandler(EcmaVM *vm);
1248 …static bool StartDebugger(const char *libraryPath, EcmaVM *vm, bool isDebugMode, int32_t instanceI…
1251 static bool StartDebugger(EcmaVM *vm, bool isDebugMode, int32_t instanceId = 0,
1254 static bool StopDebugger(EcmaVM *vm);
1255 static bool IsMixedDebugEnabled(const EcmaVM *vm);
1256 static void NotifyNativeCalling(const EcmaVM *vm, const void *nativeAddress);
1258 … static void* SerializeValue(const EcmaVM *vm, Local<JSValueRef> data, Local<JSValueRef> transfer);
1259 static Local<JSValueRef> DeserializeValue(const EcmaVM *vm, void *recoder, void *hint);
1261 static void SetHostPromiseRejectionTracker(EcmaVM *vm, void *cb, void* data);
1262 static void SetHostResolveBufferTracker(EcmaVM *vm,
1264 static void SetNativePtrGetter(EcmaVM *vm, void* cb);
1265 static void SetHostEnqueueJob(const EcmaVM* vm, Local<JSValueRef> cb);
1273 static void PreFork(EcmaVM *vm);
1274 static void PostFork(EcmaVM *vm, const RuntimeOption &option);
1278 …static bool LoadPatch(EcmaVM *vm, const std::string &patchFileName, const std::string &baseFileNam…
1279 …static bool LoadPatch(EcmaVM *vm, const std::string &patchFileName, const void *patchBuffer, size_…
1281 static bool UnloadPatch(EcmaVM *vm, const std::string &patchFileName);
1283 …static bool IsQuickFixCausedException(EcmaVM *vm, Local<ObjectRef> exception, const std::string &p…
1285 static void RegisterQuickFixQueryFunc(EcmaVM *vm, QuickFixQueryCallBack callBack);
1286 static bool IsBundle(EcmaVM *vm);
1287 static void SetBundle(EcmaVM *vm, bool value);
1288 static void SetAssetPath(EcmaVM *vm, const std::string &assetPath);
1289 static std::string GetAssetPath(EcmaVM *vm);
1290 static void SetBundleName(EcmaVM *vm, std::string bundleName);
1291 static std::string GetBundleName(EcmaVM *vm);
1292 static void SetModuleName(EcmaVM *vm, std::string moduleName);
1293 static std::string GetModuleName(EcmaVM *vm);
1294 static void SetLoop(EcmaVM *vm, void *loop);
1295 static bool InitForConcurrentFunction(EcmaVM *vm, Local<JSValueRef> func);
1296 static bool InitForConcurrentThread(EcmaVM *vm, ConcurrentCallback cb, void *data);
1304 static uintptr_t GetHandleAddr(const EcmaVM *vm, uintptr_t localAddress);
1305 static uintptr_t GetGlobalHandleAddr(const EcmaVM *vm, uintptr_t localAddress);
1306 static uintptr_t SetWeak(const EcmaVM *vm, uintptr_t localAddress);
1307 static uintptr_t SetWeakCallback(const EcmaVM *vm, uintptr_t localAddress, void *ref,
1309 static uintptr_t ClearWeak(const EcmaVM *vm, uintptr_t localAddress);
1310 static bool IsWeak(const EcmaVM *vm, uintptr_t localAddress);
1311 static void DisposeGlobalHandleAddr(const EcmaVM *vm, uintptr_t addr);
1392 Global<T>::Global(const EcmaVM *vm, const Local<S> ¤t) : vm_(vm) in Global() argument
1401 Global<T>::Global(const EcmaVM *vm, const Global<S> ¤t) : vm_(vm) in Global() argument
1409 CopyableGlobal<T>::CopyableGlobal(const EcmaVM *vm, const Local<T> ¤t) : vm_(vm) in CopyableGlobal() argument
1418 CopyableGlobal<T>::CopyableGlobal(const EcmaVM *vm, const Local<S> ¤t) : vm_(vm) in CopyableGlobal() argument
1531 Local<T>::Local(const EcmaVM *vm, const CopyableGlobal<T> ¤t) in Local() argument
1533 address_ = JSNApi::GetHandleAddr(vm, reinterpret_cast<uintptr_t>(*current)); in Local()
1537 Local<T>::Local(const EcmaVM *vm, const Global<T> ¤t) in Local() argument
1539 address_ = JSNApi::GetHandleAddr(vm, reinterpret_cast<uintptr_t>(*current)); in Local()