Lines Matching full:vm
115 using TimerTaskCallback = void* (*)(EcmaVM *vm, void *data, TimerCallbackFunc func, uint64_t timeou…
260 Local(const EcmaVM *vm, const Global<T> ¤t);
262 Local(const EcmaVM *vm, const CopyableGlobal<T> ¤t);
346 CopyableGlobal(const EcmaVM *vm, const Local<S> ¤t);
348 CopyableGlobal(const EcmaVM *vm, const Local<T> ¤t);
444 Global(const EcmaVM *vm, const Local<S> ¤t);
446 Global(const EcmaVM *vm, const Global<S> ¤t);
458 Local<T> ToLocal(const EcmaVM *vm) const in ToLocal() argument
460 return Local<T>(vm, *this); in ToLocal()
512 static Local<PrimitiveRef> Undefined(const EcmaVM *vm);
513 static Local<PrimitiveRef> Null(const EcmaVM *vm);
514 static Local<PrimitiveRef> Hole(const EcmaVM *vm);
515 static Local<PrimitiveRef> True(const EcmaVM *vm);
516 static Local<PrimitiveRef> False(const EcmaVM *vm);
518 bool BooleaValue(const EcmaVM *vm);
519 int64_t IntegerValue(const EcmaVM *vm);
520 uint32_t Uint32Value(const EcmaVM *vm);
521 int32_t Int32Value(const EcmaVM *vm);
528 Local<NumberRef> ToNumber(const EcmaVM *vm);
529 Local<BooleanRef> ToBoolean(const EcmaVM *vm);
530 Local<BigIntRef> ToBigInt(const EcmaVM *vm);
531 Local<StringRef> ToString(const EcmaVM *vm);
532 Local<ObjectRef> ToObject(const EcmaVM *vm);
533 Local<ObjectRef> ToEcmaObject(const EcmaVM *vm);
534 Local<NativePointerRef> ToNativePointer(const EcmaVM *vm);
542 bool IsBigInt(const EcmaVM *vm);
546 bool IsString(const EcmaVM *vm);
547 bool IsSymbol(const EcmaVM *vm);
548 bool IsObject(const EcmaVM *vm);
549 bool IsNativeBindingObject(const EcmaVM *vm);
550 bool IsArray(const EcmaVM *vm);
551 bool IsJSArray(const EcmaVM *vm);
552 bool IsConstructor(const EcmaVM *vm);
553 bool IsFunction(const EcmaVM *vm);
555 bool IsJSFunction(const EcmaVM *vm);
556 bool IsProxy(const EcmaVM *vm);
557 bool IsPromise(const EcmaVM *vm);
558 bool IsDataView(const EcmaVM *vm);
559 bool IsTypedArray(const EcmaVM *vm);
560 bool IsNativePointer(const EcmaVM *vm);
561 bool IsDate(const EcmaVM *vm);
562 bool IsError(const EcmaVM *vm);
563 bool IsMap(const EcmaVM *vm);
564 bool IsSet(const EcmaVM *vm);
565 bool IsWeakRef(const EcmaVM *vm);
566 bool IsWeakMap(const EcmaVM *vm);
567 bool IsWeakSet(const EcmaVM *vm);
568 bool IsRegExp(const EcmaVM *vm);
569 bool IsArrayIterator(const EcmaVM *vm);
570 bool IsStringIterator(const EcmaVM *vm);
571 bool IsSetIterator(const EcmaVM *vm);
572 bool IsMapIterator(const EcmaVM *vm);
573 bool IsArrayBuffer(const EcmaVM *vm);
574 bool IsBuffer(const EcmaVM *vm);
575 bool IsUint8Array(const EcmaVM *vm);
576 bool IsInt8Array(const EcmaVM *vm);
577 bool IsUint8ClampedArray(const EcmaVM *vm);
578 bool IsInt16Array(const EcmaVM *vm);
579 bool IsUint16Array(const EcmaVM *vm);
580 bool IsInt32Array(const EcmaVM *vm);
581 bool IsUint32Array(const EcmaVM *vm);
582 bool IsFloat32Array(const EcmaVM *vm);
583 bool IsFloat64Array(const EcmaVM *vm);
584 bool IsBigInt64Array(const EcmaVM *vm);
585 bool IsBigUint64Array(const EcmaVM *vm);
586 bool IsJSPrimitiveRef(const EcmaVM *vm);
587 bool IsJSPrimitiveNumber(const EcmaVM *vm);
588 bool IsJSPrimitiveInt(const EcmaVM *vm);
589 bool IsJSPrimitiveBoolean(const EcmaVM *vm);
590 bool IsJSPrimitiveString(const EcmaVM *vm);
592 bool IsJSSharedInt8Array(const EcmaVM *vm);
593 bool IsJSSharedUint8Array(const EcmaVM *vm);
594 bool IsJSSharedUint8ClampedArray(const EcmaVM *vm);
595 bool IsJSSharedInt16Array(const EcmaVM *vm);
596 bool IsJSSharedUint16Array(const EcmaVM *vm);
597 bool IsJSSharedInt32Array(const EcmaVM *vm);
598 bool IsJSSharedUint32Array(const EcmaVM *vm);
599 bool IsJSSharedFloat32Array(const EcmaVM *vm);
600 bool IsJSSharedFloat64Array(const EcmaVM *vm);
601 bool IsJSSharedBigInt64Array(const EcmaVM *vm);
602 bool IsJSSharedBigUint64Array(const EcmaVM *vm);
604 bool IsGeneratorObject(const EcmaVM *vm);
605 bool IsJSPrimitiveSymbol(const EcmaVM *vm);
607 bool IsArgumentsObject(const EcmaVM *vm);
608 bool IsGeneratorFunction(const EcmaVM *vm);
609 bool IsAsyncFunction(const EcmaVM *vm);
610 bool IsConcurrentFunction(const EcmaVM *vm);
611 bool IsJSLocale(const EcmaVM *vm);
612 bool IsJSDateTimeFormat(const EcmaVM *vm);
613 bool IsJSRelativeTimeFormat(const EcmaVM *vm);
614 bool IsJSIntl(const EcmaVM *vm);
615 bool IsJSNumberFormat(const EcmaVM *vm);
616 bool IsJSCollator(const EcmaVM *vm);
617 bool IsJSPluralRules(const EcmaVM *vm);
618 bool IsJSListFormat(const EcmaVM *vm);
619 bool IsAsyncGeneratorFunction(const EcmaVM *vm);
620 bool IsAsyncGeneratorObject(const EcmaVM *vm);
622 bool IsModuleNamespaceObject(const EcmaVM *vm);
623 bool IsNativeModuleFailureInfoObject(const EcmaVM *vm);
624 bool IsSharedArrayBuffer(const EcmaVM *vm);
625 bool IsSendableArrayBuffer(const EcmaVM *vm);
627 bool IsStrictEquals(const EcmaVM *vm, Local<JSValueRef> value);
628 Local<StringRef> Typeof(const EcmaVM *vm);
629 bool InstanceOf(const EcmaVM *vm, Local<JSValueRef> value);
631 bool IsArrayList(const EcmaVM *vm);
632 bool IsDeque(const EcmaVM *vm);
633 bool IsHashMap(const EcmaVM *vm);
634 bool IsHashSet(const EcmaVM *vm);
635 bool IsLightWeightMap(const EcmaVM *vm);
636 bool IsLightWeightSet(const EcmaVM *vm);
637 bool IsLinkedList(const EcmaVM *vm);
638 bool IsLinkedListIterator(const EcmaVM *vm);
639 bool IsList(const EcmaVM *vm);
640 bool IsPlainArray(const EcmaVM *vm);
641 bool IsQueue(const EcmaVM *vm);
642 bool IsStack(const EcmaVM *vm);
643 bool IsTreeMap(const EcmaVM *vm);
644 bool IsTreeSet(const EcmaVM *vm);
645 bool IsVector(const EcmaVM *vm);
646 bool IsBitVector(const EcmaVM *vm);
647 bool IsSendableObject(const EcmaVM *vm);
648 bool IsJSShared(const EcmaVM *vm);
649 bool IsSharedArray(const EcmaVM *vm);
650 bool IsSharedTypedArray(const EcmaVM *vm);
651 bool IsSharedSet(const EcmaVM *vm);
652 bool IsSharedMap(const EcmaVM *vm);
653 bool IsSharedMapIterator(const EcmaVM *vm);
655 void *GetNativePointerValue(const EcmaVM *vm, bool &isNativePointer);
656 bool IsDetachedArraybuffer(const EcmaVM *vm, bool &isArrayBuffer);
657 void DetachedArraybuffer(const EcmaVM *vm, bool &isArrayBuffer);
658 void GetDataViewInfo(const EcmaVM *vm,
664 void TryGetArrayLength(const EcmaVM *vm, bool *isPendingException,
674 void *GetNativePointerValueImpl(const EcmaVM *vm, bool &isNativePointer);
735 Local<JSValueRef> GetValue(const EcmaVM *vm) const in GetValue() argument
738 return JSValueRef::Undefined(vm); in GetValue()
750 Local<JSValueRef> GetGetter(const EcmaVM *vm) const in GetGetter() argument
753 return JSValueRef::Undefined(vm); in GetGetter()
765 Local<JSValueRef> GetSetter(const EcmaVM *vm) const in GetSetter() argument
768 return JSValueRef::Undefined(vm); in GetSetter()
795 …static Local<NativePointerRef> New(const EcmaVM *vm, void *nativePointer, size_t nativeBindingsize…
796 …static Local<NativePointerRef> New(const EcmaVM *vm, void *nativePointer, NativePointerCallback ca…
798 static Local<NativePointerRef> NewConcurrent(const EcmaVM *vm, void *nativePointer,
801 static Local<NativePointerRef> NewSendable(const EcmaVM *vm,
826 static Local<ObjectRef> New(const EcmaVM *vm);
827 static uintptr_t NewObject(const EcmaVM *vm);
828 static Local<ObjectRef> NewS(const EcmaVM *vm);
829 …static Local<ObjectRef> NewWithProperties(const EcmaVM *vm, size_t propertyCount, const Local<JSVa…
831 static Local<ObjectRef> NewSWithProperties(const EcmaVM *vm, SendablePropertiesInfo &info);
832 …static Local<ObjectRef> NewWithNamedProperties(const EcmaVM *vm, size_t propertyCount, const char …
834 …static Local<ObjectRef> CreateNativeModuleFailureInfo(const EcmaVM *vm, const std::string &failure…
835 …static Local<ObjectRef> CreateAccessorData(const EcmaVM *vm, Local<FunctionRef> getter, Local<Func…
836 static Local<ObjectRef> CreateSendableAccessorData(const EcmaVM *vm,
839 bool ConvertToNativeBindingObject(const EcmaVM *vm, Local<NativePointerRef> value);
840 Local<NativePointerRef> GetNativeBindingPointer(const EcmaVM *vm);
841 bool Set(const EcmaVM *vm, Local<JSValueRef> key, Local<JSValueRef> value);
842 bool Set(const EcmaVM *vm, const char *utf8, Local<JSValueRef> value);
843 bool Set(const EcmaVM *vm, uint32_t key, Local<JSValueRef> value);
844 bool SetAccessorProperty(const EcmaVM *vm, Local<JSValueRef> key, Local<FunctionRef> getter,
846 Local<JSValueRef> Get(const EcmaVM *vm, Local<JSValueRef> key);
847 Local<JSValueRef> Get(const EcmaVM *vm, const char *utf8);
848 Local<JSValueRef> Get(const EcmaVM *vm, int32_t key);
850 bool GetOwnProperty(const EcmaVM *vm, Local<JSValueRef> key, PropertyAttribute &property);
851 Local<ArrayRef> GetOwnPropertyNames(const EcmaVM *vm);
852 Local<ArrayRef> GetAllPropertyNames(const EcmaVM *vm, uint32_t filter);
853 Local<ArrayRef> GetOwnEnumerablePropertyNames(const EcmaVM *vm);
854 Local<JSValueRef> GetPrototype(const EcmaVM *vm);
855 bool SetPrototype(const EcmaVM *vm, Local<ObjectRef> prototype);
857 bool DefineProperty(const EcmaVM *vm, Local<JSValueRef> key, PropertyAttribute attribute);
859 bool Has(const EcmaVM *vm, Local<JSValueRef> key);
860 bool Has(const EcmaVM *vm, uint32_t key);
862 bool HasOwnProperty(const EcmaVM *vm, Local<JSValueRef> key);
864 bool Delete(const EcmaVM *vm, Local<JSValueRef> key);
865 bool Delete(const EcmaVM *vm, uint32_t key);
867 Local<JSValueRef> Freeze(const EcmaVM *vm);
868 Local<JSValueRef> Seal(const EcmaVM *vm);
870 void SetNativePointerFieldCount(const EcmaVM *vm, int32_t count);
871 int32_t GetNativePointerFieldCount(const EcmaVM *vm);
872 void *GetNativePointerField(const EcmaVM *vm, int32_t index);
873 void SetNativePointerField(const EcmaVM *vm,
878 void SetConcurrentNativePointerField(const EcmaVM *vm,
894 …static Local<FunctionRef> New(EcmaVM *vm, FunctionCallback nativeFunc, NativePointerCallback delet…
896 static Local<FunctionRef> NewConcurrent(EcmaVM *vm,
902 …static Local<FunctionRef> New(EcmaVM *vm, InternalFunctionCallback nativeFunc, NativePointerCallba…
904 static Local<FunctionRef> NewConcurrent(EcmaVM *vm,
910 static Local<FunctionRef> NewSendable(EcmaVM *vm,
916 …static Local<FunctionRef> NewClassFunction(EcmaVM *vm, FunctionCallback nativeFunc, NativePointerC…
918 static Local<FunctionRef> NewConcurrentClassFunction(EcmaVM *vm,
924 static Local<FunctionRef> NewClassFunction(EcmaVM *vm,
930 static Local<FunctionRef> NewSendableClassFunction(const EcmaVM *vm,
939 JSValueRef* CallForNapi(const EcmaVM *vm, JSValueRef *thisObj, JSValueRef *const argv[],
941 …Local<JSValueRef> Call(const EcmaVM *vm, Local<JSValueRef> thisObj, const Local<JSValueRef> argv[],
943 Local<JSValueRef> Constructor(const EcmaVM *vm, const Local<JSValueRef> argv[], int32_t length);
944 JSValueRef* ConstructorOptimize(const EcmaVM *vm, JSValueRef* argv[], int32_t length);
946 Local<JSValueRef> GetFunctionPrototype(const EcmaVM *vm);
947 bool Inherit(const EcmaVM *vm, Local<FunctionRef> parent);
948 void SetName(const EcmaVM *vm, Local<StringRef> name);
949 Local<StringRef> GetName(const EcmaVM *vm);
950 Local<StringRef> GetSourceCode(const EcmaVM *vm, int lineNumber);
951 bool IsNative(const EcmaVM *vm);
952 …void SetData(const EcmaVM *vm, void *data, NativePointerCallback deleter = nullptr, bool callNapi …
953 void* GetData(const EcmaVM *vm);
958 Local<JSValueRef> GetValue(const EcmaVM *vm);
963 … static Local<SymbolRef> New(const EcmaVM *vm, Local<StringRef> description = Local<StringRef>());
964 Local<StringRef> GetDescription(const EcmaVM *vm);
969 static Local<BooleanRef> New(const EcmaVM *vm, bool input);
980 …static Local<StringRef> NewFromUtf8WithoutStringTable(const EcmaVM *vm, const char *utf8, int leng…
981 static Local<StringRef> NewFromUtf8(const EcmaVM *vm, const char *utf8, int length = -1);
982 …static Local<StringRef> NewFromUtf16WithoutStringTable(const EcmaVM *vm, const char16_t *utf16, in…
983 static Local<StringRef> NewFromUtf16(const EcmaVM *vm, const char16_t *utf16, int length = -1);
984 std::string ToString(const EcmaVM *vm);
985 std::string DebuggerToString(const EcmaVM *vm);
986 uint32_t Length(const EcmaVM *vm);
987 size_t Utf8Length(const EcmaVM *vm, bool isGetBufferSize = false);
988 uint32_t WriteUtf8(const EcmaVM *vm, char *buffer, uint32_t length, bool isWriteBuffer = false);
989 uint32_t WriteUtf16(const EcmaVM *vm, char16_t *buffer, uint32_t length);
990 uint32_t WriteLatin1(const EcmaVM *vm, char *buffer, uint32_t length);
991 static Local<StringRef> GetNapiWrapperString(const EcmaVM *vm);
992 Local<TypedArrayRef> EncodeIntoUint8Array(const EcmaVM *vm);
1052 static Local<BigIntRef> New(const EcmaVM *vm, uint64_t input);
1053 static Local<BigIntRef> New(const EcmaVM *vm, int64_t input);
1054 …static Local<JSValueRef> CreateBigWords(const EcmaVM *vm, bool sign, uint32_t size, const uint64_t…
1055 void BigIntToInt64(const EcmaVM *vm, int64_t *value, bool *lossless);
1056 void BigIntToUint64(const EcmaVM *vm, uint64_t *value, bool *lossless);
1057 void GetWordsArray(const EcmaVM *vm, bool* signBit, size_t wordCount, uint64_t* words);
1058 uint32_t GetWordsArraySize(const EcmaVM *vm);
1064 explicit LocalScope(const EcmaVM *vm);
1068 inline LocalScope(const EcmaVM *vm, JSTaggedType value);
1082 explicit EscapeLocalScope(const EcmaVM *vm);
1104 static Local<IntegerRef> New(const EcmaVM *vm, int input);
1105 static Local<IntegerRef> NewFromUnsigned(const EcmaVM *vm, unsigned int input);
1111 static Local<ArrayBufferRef> New(const EcmaVM *vm, int32_t length);
1112 static Local<ArrayBufferRef> New(const EcmaVM *vm, void *buffer, int32_t length,
1115 int32_t ByteLength(const EcmaVM *vm);
1116 void *GetBuffer(const EcmaVM *vm);
1118 void Detach(const EcmaVM *vm);
1119 bool IsDetach(const EcmaVM *vm);
1124 static Local<SendableArrayBufferRef> New(const EcmaVM *vm, int32_t length);
1125 static Local<SendableArrayBufferRef> New(const EcmaVM *vm, void *buffer, int32_t length,
1128 int32_t ByteLength(const EcmaVM *vm);
1129 void *GetBuffer(const EcmaVM *vm);
1131 void Detach(const EcmaVM *vm);
1132 bool IsDetach(const EcmaVM *vm);
1137 static Local<DateRef> New(const EcmaVM *vm, double time);
1138 Local<StringRef> ToString(const EcmaVM *vm);
1139 double GetTime(const EcmaVM *vm);
1144 uint32_t ByteLength(const EcmaVM *vm);
1145 uint32_t ByteOffset(const EcmaVM *vm);
1146 uint32_t ArrayLength(const EcmaVM *vm);
1147 Local<ArrayBufferRef> GetArrayBuffer(const EcmaVM *vm);
1152 uint32_t ByteLength(const EcmaVM *vm);
1153 uint32_t ByteOffset(const EcmaVM *vm);
1154 uint32_t ArrayLength(const EcmaVM *vm);
1155 Local<SendableArrayBufferRef> GetArrayBuffer(const EcmaVM *vm);
1160 static Local<ArrayRef> New(const EcmaVM *vm, uint32_t length = 0);
1161 uint32_t Length(const EcmaVM *vm);
1162 …static bool SetValueAt(const EcmaVM *vm, Local<JSValueRef> obj, uint32_t index, Local<JSValueRef> …
1163 static Local<JSValueRef> GetValueAt(const EcmaVM *vm, Local<JSValueRef> obj, uint32_t index);
1168 static Local<SendableArrayRef> New(const EcmaVM *vm, uint32_t length = 0);
1169 uint32_t Length(const EcmaVM *vm);
1170 static Local<JSValueRef> GetValueAt(const EcmaVM *vm, Local<JSValueRef> obj, uint32_t index);
1171 …static bool SetProperty(const EcmaVM *vm, Local<JSValueRef> obj, uint32_t index, Local<JSValueRef>…
1176 …static Local<Int8ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffset,…
1181 static Local<SharedInt8ArrayRef> New(const EcmaVM *vm, Local<SendableArrayBufferRef> buffer,
1187 …static Local<Uint8ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffset…
1192 static Local<SharedUint8ArrayRef> New(const EcmaVM *vm, Local<SendableArrayBufferRef> buffer,
1198 …static Local<Uint8ClampedArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byt…
1204 …static Local<Int16ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffset…
1209 static Local<SharedInt16ArrayRef> New(const EcmaVM *vm, Local<SendableArrayBufferRef> buffer,
1215 …static Local<Uint16ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffse…
1221 static Local<SharedUint16ArrayRef> New(const EcmaVM *vm, Local<SendableArrayBufferRef> buffer,
1227 …static Local<Int32ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffset…
1232 static Local<SharedInt32ArrayRef> New(const EcmaVM *vm, Local<SendableArrayBufferRef> buffer,
1238 static Local<SharedFloat32ArrayRef> New(const EcmaVM *vm, Local<SendableArrayBufferRef> buffer,
1244 …static Local<SharedUint8ClampedArrayRef> New(const EcmaVM *vm, Local<SendableArrayBufferRef> buffe…
1250 …static Local<Uint32ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffse…
1256 static Local<SharedUint32ArrayRef> New(const EcmaVM *vm, Local<SendableArrayBufferRef> buffer,
1262 …static Local<Float32ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffs…
1268 …static Local<Float64ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffs…
1274 static Local<SharedFloat64ArrayRef> New(const EcmaVM *vm, Local<SendableArrayBufferRef> buffer,
1280 …static Local<BigInt64ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOff…
1286 static Local<SharedBigInt64ArrayRef> New(const EcmaVM *vm, Local<SendableArrayBufferRef> buffer,
1292 …static Local<BigUint64ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOf…
1298 … static Local<SharedBigUint64ArrayRef> New(const EcmaVM *vm, Local<SendableArrayBufferRef> buffer,
1304 static Local<JSValueRef> Error(const EcmaVM *vm, Local<StringRef> message);
1305 static Local<JSValueRef> RangeError(const EcmaVM *vm, Local<StringRef> message);
1306 static Local<JSValueRef> ReferenceError(const EcmaVM *vm, Local<StringRef> message);
1307 static Local<JSValueRef> SyntaxError(const EcmaVM *vm, Local<StringRef> message);
1308 static Local<JSValueRef> TypeError(const EcmaVM *vm, Local<StringRef> message);
1309 static Local<JSValueRef> AggregateError(const EcmaVM *vm, Local<StringRef> message);
1310 static Local<JSValueRef> EvalError(const EcmaVM *vm, Local<StringRef> message);
1311 static Local<JSValueRef> OOMError(const EcmaVM *vm, Local<StringRef> message);
1312 static Local<JSValueRef> TerminationError(const EcmaVM *vm, Local<StringRef> message);
1317 FunctionCallScope(EcmaVM *vm);
1326 explicit JSExecutionScope(const EcmaVM *vm);
1338 explicit JsiNativeScope(const EcmaVM *vm);
1350 explicit JsiFastNativeScope(const EcmaVM *vm);
1439 int32_t GetSize(const EcmaVM *vm);
1440 int32_t GetTotalElements(const EcmaVM *vm);
1441 Local<JSValueRef> Get(const EcmaVM *vm, Local<JSValueRef> key);
1442 Local<JSValueRef> Get(const EcmaVM *vm, const char *utf8);
1443 Local<JSValueRef> GetKey(const EcmaVM *vm, int entry);
1444 Local<JSValueRef> GetValue(const EcmaVM *vm, int entry);
1445 static Local<MapRef> New(const EcmaVM *vm);
1446 void Set(const EcmaVM *vm, Local<JSValueRef> key, Local<JSValueRef> value);
1447 void Set(const EcmaVM *vm, const char *utf8, Local<JSValueRef> value);
1448 bool Has(const EcmaVM *vm, Local<JSValueRef> key);
1449 bool Has(const EcmaVM *vm, const char *utf8);
1450 void Delete(const EcmaVM *vm, Local<JSValueRef> key);
1451 void Clear(const EcmaVM *vm);
1452 Local<MapIteratorRef> GetEntries(const EcmaVM *vm);
1453 Local<MapIteratorRef> GetKeys(const EcmaVM *vm);
1454 Local<MapIteratorRef> GetValues(const EcmaVM *vm);
1459 static Local<SendableMapRef> New(const EcmaVM *vm);
1460 uint32_t GetSize(const EcmaVM *vm);
1461 uint32_t GetTotalElements(const EcmaVM *vm);
1462 Local<JSValueRef> Get(const EcmaVM *vm, Local<JSValueRef> key);
1463 Local<JSValueRef> Get(const EcmaVM *vm, const char *utf8);
1464 Local<JSValueRef> GetKey(const EcmaVM *vm, int entry);
1465 Local<JSValueRef> GetValue(const EcmaVM *vm, int entry);
1466 void Set(const EcmaVM *vm, Local<JSValueRef> key, Local<JSValueRef> value);
1467 void Set(const EcmaVM *vm, const char *utf8, Local<JSValueRef> value);
1468 bool Has(const EcmaVM *vm, Local<JSValueRef> key);
1469 bool Has(const EcmaVM *vm, const char *utf8);
1470 void Delete(const EcmaVM *vm, Local<JSValueRef> key);
1471 void Clear(const EcmaVM *vm);
1472 Local<SendableMapIteratorRef> GetEntries(const EcmaVM *vm);
1473 Local<SendableMapIteratorRef> GetKeys(const EcmaVM *vm);
1474 Local<SendableMapIteratorRef> GetValues(const EcmaVM *vm);
1479 static Local<SendableSetRef> New(const EcmaVM *vm);
1480 uint32_t GetSize(const EcmaVM *vm);
1481 uint32_t GetTotalElements(const EcmaVM *vm);
1482 Local<JSValueRef> GetValue(const EcmaVM *vm, int entry);
1483 void Add(const EcmaVM *vm, Local<JSValueRef> value);
1488 static Local<BufferRef> New(const EcmaVM *vm, int32_t length);
1489 …static Local<BufferRef> New(const EcmaVM *vm, void *buffer, int32_t length, const NativePointerCal…
1492 int32_t ByteLength(const EcmaVM *vm);
1493 void *GetBuffer(const EcmaVM *vm);
1499 Local<PromiseRef> Catch(const EcmaVM *vm, Local<FunctionRef> handler);
1500 Local<PromiseRef> Then(const EcmaVM *vm, Local<FunctionRef> handler);
1501 Local<PromiseRef> Finally(const EcmaVM *vm, Local<FunctionRef> handler);
1502 …Local<PromiseRef> Then(const EcmaVM *vm, Local<FunctionRef> onFulfilled, Local<FunctionRef> onReje…
1504 Local<JSValueRef> GetPromiseState(const EcmaVM *vm);
1505 Local<JSValueRef> GetPromiseResult(const EcmaVM *vm);
1510 static Local<PromiseCapabilityRef> New(const EcmaVM *vm);
1511 bool Resolve(const EcmaVM *vm, uintptr_t value);
1512 bool Resolve(const EcmaVM *vm, Local<JSValueRef> value);
1513 bool Reject(const EcmaVM *vm, uintptr_t reason);
1514 bool Reject(const EcmaVM *vm, Local<JSValueRef> reason);
1515 Local<PromiseRef> GetPromise(const EcmaVM *vm);
1520 static Local<NumberRef> New(const EcmaVM *vm, double input);
1521 static Local<NumberRef> New(const EcmaVM *vm, int32_t input);
1522 static Local<NumberRef> New(const EcmaVM *vm, uint32_t input);
1523 static Local<NumberRef> New(const EcmaVM *vm, int64_t input);
1530 …static Local<DataViewRef> New(const EcmaVM *vm, Local<ArrayBufferRef> arrayBuffer, uint32_t byteOf…
1534 Local<ArrayBufferRef> GetArrayBuffer(const EcmaVM *vm);
1540 Local<JSValueRef> GetKind(const EcmaVM *vm);
1541 static Local<MapIteratorRef> New(const EcmaVM *vm, Local<MapRef> map);
1542 ecmascript::EcmaRuntimeCallInfo* GetEcmaRuntimeCallInfo(const EcmaVM *vm);
1543 …static Local<ArrayRef> Next(const EcmaVM *vm, ecmascript::EcmaRuntimeCallInfo* ecmaRuntimeCallInfo…
1544 Local<JSValueRef> Next(const EcmaVM *vm);
1549 Local<JSValueRef> Next(const EcmaVM *vm);
1619 …static void LoadAotFileInternal(EcmaVM *vm, const std::string &moduleName, std::string &aotFileNam…
1620 static void LoadAotFile(EcmaVM *vm, const std::string &moduleName);
1622 static void LoadAotFile(EcmaVM *vm, [[maybe_unused]] const std::string &bundleName,
1627 static EcmaContext *CreateJSContext(EcmaVM *vm);
1628 static void SwitchCurrentContext(EcmaVM *vm, EcmaContext *context);
1629 static void DestroyJSContext(EcmaVM *vm, EcmaContext *context);
1632 static bool ExecuteInContext(EcmaVM *vm, const std::string &fileName, const std::string &entry,
1635 static bool ExecuteForAbsolutePath(const EcmaVM *vm, const std::string &fileName,
1638 static bool Execute(const EcmaVM *vm, const std::string &fileName,
1641 static bool Execute(EcmaVM *vm, const uint8_t *data, int32_t size, const std::string &entry,
1643 static int ExecuteWithSingletonPatternFlag(EcmaVM *vm, const std::string &bundleName,
1645 static bool IsExecuteModuleInAbcFile(EcmaVM *vm, const std::string &bundleName,
1648 …static bool ExecuteModuleBuffer(EcmaVM *vm, const uint8_t *data, int32_t size, const std::string &…
1650 …static bool ExecuteModuleFromBuffer(EcmaVM *vm, const void *data, int32_t size, const std::string …
1651 …static Local<ObjectRef> GetExportObject(EcmaVM *vm, const std::string &file, const std::string &ke…
1652 …static Local<ObjectRef> GetExportObjectFromBuffer(EcmaVM *vm, const std::string &file, const std::…
1653 …static Local<ObjectRef> GetExportObjectFromOhmUrl(EcmaVM *vm, const std::string &ohmUrl, const std…
1654 static Local<ObjectRef> ExecuteNativeModule(EcmaVM *vm, const std::string &key);
1655 static Local<ObjectRef> GetModuleNameSpaceFromFile(EcmaVM *vm, const std::string &file);
1656 static Local<ObjectRef> GetModuleNameSpaceWithModuleInfo(EcmaVM *vm, const std::string &file,
1666 static bool ExecuteSecure(EcmaVM *vm, uint8_t *data, int32_t size, const std::string &entry,
1674 …static bool ExecuteModuleBufferSecure(EcmaVM *vm, uint8_t *data, int32_t size, const std::string &…
1677 …static bool ExecuteSecureWithOhmUrl(EcmaVM *vm, uint8_t *data, int32_t size, const std::string &sr…
1681 static Local<ObjectRef> GetGlobalObject(const EcmaVM *vm);
1682 static void ExecutePendingJob(const EcmaVM *vm);
1686 static void TriggerGC(const EcmaVM *vm, TRIGGER_GC_TYPE gcType = TRIGGER_GC_TYPE::SEMI_GC);
1687 static void TriggerGC(const EcmaVM *vm, ecmascript::GCReason reason,
1689 static void HintGC(const EcmaVM *vm, MemoryReduceDegree degree, ecmascript::GCReason reason);
1690 static void TriggerIdleGC(const EcmaVM *vm, TRIGGER_IDLE_GC_TYPE gcType);
1694 static void ThrowException(const EcmaVM *vm, Local<JSValueRef> error);
1695 static void PrintExceptionInfo(const EcmaVM *vm);
1696 static void SetOnErrorCallback(EcmaVM *vm, OnErrorCallback cb, void* data);
1697 static Local<ObjectRef> GetAndClearUncaughtException(const EcmaVM *vm);
1698 static Local<ObjectRef> GetUncaughtException(const EcmaVM *vm);
1699 static bool IsExecutingPendingJob(const EcmaVM *vm);
1700 static bool HasPendingException(const EcmaVM *vm);
1701 static bool HasPendingJob(const EcmaVM *vm);
1702 static void EnableUserUncaughtErrorHandler(EcmaVM *vm);
1704 …static bool StartDebuggerCheckParameters(EcmaVM *vm, const DebugOption &option, int32_t instanceId,
1706 static bool StartDebugger(EcmaVM *vm, const DebugOption &option, int32_t instanceId = 0,
1709 …static bool StartDebuggerForOldProcess(EcmaVM *vm, const DebugOption &option, int32_t instanceId =…
1714 …static bool NotifyDebugMode(int tid, EcmaVM *vm, const DebugOption &option, int32_t instanceId = 0,
1717 …int tid, EcmaVM *vm, const DebugOption &option, const DebuggerPostTask &debuggerPostTask, bool deb…
1718 static bool StopDebugger(EcmaVM *vm);
1719 static bool IsMixedDebugEnabled(const EcmaVM *vm);
1720 static bool IsDebugModeEnabled(const EcmaVM *vm);
1721 static void NotifyNativeCalling(const EcmaVM *vm, const void *nativeAddress);
1722 static void NotifyNativeReturn(const EcmaVM *vm, const void *nativeAddress);
1723 static void NotifyLoadModule(const EcmaVM *vm);
1724 static void NotifyUIIdle(const EcmaVM *vm, int idleTime);
1725 static bool NotifyLooperIdleStart(const EcmaVM *vm, int64_t timestamp, int idleTime);
1726 static void NotifyLooperIdleEnd(const EcmaVM *vm, int64_t timestamp);
1727 static bool IsJSMainThreadOfEcmaVM(const EcmaVM *vm);
1728 static void SetDeviceDisconnectCallback(EcmaVM *vm, DeviceDisconnectCallback cb);
1730 … static void* SerializeValue(const EcmaVM *vm, Local<JSValueRef> data, Local<JSValueRef> transfer,
1734 static Local<JSValueRef> DeserializeValue(const EcmaVM *vm, void *recoder, void *hint);
1736 static void SetHostPromiseRejectionTracker(EcmaVM *vm, void *cb, void* data);
1737 static void SetTimerTaskCallback(EcmaVM *vm, TimerTaskCallback callback);
1738 static void SetCancelTimerCallback(EcmaVM *vm, CancelTimerCallback callback);
1739 static void NotifyEnvInitialized(EcmaVM *vm);
1740 static void SetHostResolveBufferTracker(EcmaVM *vm,
1742 …static void SetUnloadNativeModuleCallback(EcmaVM *vm, const std::function<bool(const std::string &…
1743 static void SetNativePtrGetter(EcmaVM *vm, void* cb);
1744 static void SetSourceMapCallback(EcmaVM *vm, SourceMapCallback cb);
1745 static void SetSourceMapTranslateCallback(EcmaVM *vm, SourceMapTranslateCallback cb);
1746 static void SetHostEnqueueJob(const EcmaVM* vm, Local<JSValueRef> cb,
1749 static void PreFork(EcmaVM *vm);
1750 static void PostFork(EcmaVM *vm, const RuntimeOption &option);
1753 static void GetStackBeforeCallNapiSuccess(EcmaVM *vm, bool &getStackBeforeCallNapiSuccess);
1754 static void GetStackAfterCallNapi(EcmaVM *vm);
1755 …static PatchErrorCode LoadPatch(EcmaVM *vm, const std::string &patchFileName, const std::string &b…
1756 static PatchErrorCode LoadPatch(EcmaVM *vm,
1759 static PatchErrorCode UnloadPatch(EcmaVM *vm, const std::string &patchFileName);
1761 …static bool IsQuickFixCausedException(EcmaVM *vm, Local<ObjectRef> exception, const std::string &p…
1763 static void RegisterQuickFixQueryFunc(EcmaVM *vm, std::function<bool(std::string baseFileName,
1767 static bool IsBundle(EcmaVM *vm);
1768 static void SetBundle(EcmaVM *vm, bool value);
1769 static bool IsNormalizedOhmUrlPack(EcmaVM *vm);
1771 static void SetAssetPath(EcmaVM *vm, const std::string &assetPath);
1772 static void SetMockModuleList(EcmaVM *vm, const std::map<std::string, std::string> &list);
1773 static void SetPkgNameList(EcmaVM *vm, const std::map<std::string, std::string> &list);
1774 static void UpdatePkgNameList(EcmaVM *vm, const std::map<std::string, std::string> &list);
1775 static std::string GetPkgName(EcmaVM *vm, const std::string &moduleName);
1776 static void SetPkgAliasList(EcmaVM *vm, const std::map<std::string, std::string> &list);
1777 static void UpdatePkgAliasList(EcmaVM *vm, const std::map<std::string, std::string> &list);
1778 static void SetHmsModuleList(EcmaVM *vm, const std::vector<panda::HmsMap> &list);
1779 …static void SetModuleInfo(EcmaVM *vm, const std::string &assetPath, const std::string &entryPoint);
1780 static void SetpkgContextInfoList(EcmaVM *vm, const std::map<std::string,
1782 static void UpdatePkgContextInfoList(EcmaVM *vm,
1784 static void SetExecuteBufferMode(const EcmaVM *vm);
1786 static void SetStopPreLoadSoCallback(EcmaVM *vm, const StopPreLoadSoCallback &callback);
1787 static void SetLoop(EcmaVM *vm, void *loop);
1788 static void SetWeakFinalizeTaskCallback(EcmaVM *vm, const WeakFinalizeTaskCallback &callback);
1789 static void SetAsyncCleanTaskCallback(EcmaVM *vm, const NativePointerTaskCallback &callback);
1790 static void SetTriggerGCTaskCallback(EcmaVM *vm, const TriggerGCTaskCallback& callback);
1791 static void SetStartIdleMonitorCallback(EcmaVM *vm, const StartIdleMonitorCallback& callback);
1792 static std::string GetAssetPath(EcmaVM *vm);
1793 static bool InitForConcurrentThread(EcmaVM *vm, ConcurrentCallback cb, void *data);
1794 static bool InitForConcurrentFunction(EcmaVM *vm, Local<JSValueRef> func, void *taskInfo);
1795 static void* GetCurrentTaskInfo(const EcmaVM *vm);
1796 static void ClearCurrentTaskInfo(const EcmaVM *vm);
1797 static void SetBundleName(EcmaVM *vm, const std::string &bundleName);
1798 static std::string GetBundleName(EcmaVM *vm);
1799 static void SetModuleName(EcmaVM *vm, const std::string &moduleName);
1800 static std::string GetModuleName(EcmaVM *vm);
1801 …static std::pair<std::string, std::string> GetCurrentModuleInfo(EcmaVM *vm, bool needRecordName = …
1803 static void AllowCrossThreadExecution(EcmaVM *vm);
1804 static bool CheckAndSetAllowCrossThreadExecution(EcmaVM *vm);
1805 static void SynchronizVMInfo(EcmaVM *vm, const EcmaVM *hostVM);
1806 static bool IsProfiling(EcmaVM *vm);
1807 static void SetProfilerState(const EcmaVM *vm, bool value);
1808 …static void SetRequestAotCallback(EcmaVM *vm, const std::function<int32_t(const std::string &bundl…
1811 static void SetSearchHapPathTracker(EcmaVM *vm, std::function<bool(const std::string moduleName,
1813 static void *GetEnv(EcmaVM *vm);
1814 static void SetEnv(EcmaVM *vm, void *env);
1819 static Local<JSValueRef> NapiHasProperty(const EcmaVM *vm, uintptr_t nativeObj, uintptr_t key);
1820 … static Local<JSValueRef> NapiHasOwnProperty(const EcmaVM *vm, uintptr_t nativeObj, uintptr_t key);
1821 static Local<JSValueRef> NapiGetProperty(const EcmaVM *vm, uintptr_t nativeObj, uintptr_t key);
1822 … static Local<JSValueRef> NapiDeleteProperty(const EcmaVM *vm, uintptr_t nativeObj, uintptr_t key);
1823 …static Local<JSValueRef> NapiGetNamedProperty(const EcmaVM *vm, uintptr_t nativeObj, const char* u…
1825 static Local<JSValueRef> CreateLocal(const EcmaVM *vm, JSValueRef src);
1829 static int GetStartRealTime(const EcmaVM *vm);
1830 static void NotifyTaskBegin(const EcmaVM *vm);
1831 static void NotifyTaskFinished(const EcmaVM *vm);
1832 static bool IsMultiThreadCheckEnabled(const EcmaVM *vm);
1835 //set VM apiVersion
1836 static void SetVMAPIVersion(EcmaVM *vm, const int32_t apiVersion);
1839 static void UpdateStackInfo(EcmaVM *vm, void *currentStackInfo, uint32_t opKind);
1846 static uintptr_t GetHandleAddr(const EcmaVM *vm, uintptr_t localAddress);
1847 static uintptr_t GetGlobalHandleAddr(const EcmaVM *vm, uintptr_t localAddress);
1848 static uintptr_t SetWeak(const EcmaVM *vm, uintptr_t localAddress);
1849 static uintptr_t SetWeakCallback(const EcmaVM *vm, uintptr_t localAddress, void *ref,
1852 static uintptr_t ClearWeak(const EcmaVM *vm, uintptr_t localAddress);
1853 static bool IsWeak(const EcmaVM *vm, uintptr_t localAddress);
1854 static void DisposeGlobalHandleAddr(const EcmaVM *vm, uintptr_t addr);
1855 static bool IsSerializationTimeoutCheckEnabled(const EcmaVM *vm);
1856 …static void GenerateTimeoutTraceIfNeeded(const EcmaVM *vm, std::chrono::system_clock::time_point &…
1870 Local<JSValueRef> GetHandler(const EcmaVM *vm);
1871 Local<JSValueRef> GetTarget(const EcmaVM *vm);
1877 int32_t GetSize(const EcmaVM *vm);
1878 int32_t GetTotalElements(const EcmaVM *vm);
1879 Local<JSValueRef> GetKey(const EcmaVM *vm, int entry);
1880 Local<JSValueRef> GetValue(const EcmaVM *vm, int entry);
1881 static Local<WeakMapRef> New(const EcmaVM *vm);
1882 void Set(const EcmaVM *vm, const Local<JSValueRef> &key, const Local<JSValueRef> &value);
1883 bool Has(const EcmaVM *vm, Local<JSValueRef> key);
1888 int32_t GetSize(const EcmaVM *vm);
1889 int32_t GetTotalElements(const EcmaVM *vm);
1890 Local<JSValueRef> GetValue(const EcmaVM *vm, int entry);
1891 static Local<SetRef> New(const EcmaVM *vm);
1892 void Add(const EcmaVM *vm, Local<JSValueRef> value);
1897 int32_t GetSize(const EcmaVM *vm);
1898 int32_t GetTotalElements(const EcmaVM *vm);
1899 Local<JSValueRef> GetValue(const EcmaVM *vm, int entry);
1900 static Local<WeakSetRef> New(const EcmaVM *vm);
1901 void Add(const EcmaVM *vm, Local<JSValueRef> value);
1907 Local<JSValueRef> GetKind(const EcmaVM *vm);
1908 static Local<SetIteratorRef> New(const EcmaVM *vm, Local<SetRef> set);
1909 ecmascript::EcmaRuntimeCallInfo *GetEcmaRuntimeCallInfo(const EcmaVM *vm);
1910 …static Local<ArrayRef> Next(const EcmaVM *vm, ecmascript::EcmaRuntimeCallInfo *ecmaRuntimeCallInfo…
1918 static bool RegisterStringCacheTable(const EcmaVM *vm, uint32_t size);
1919 static bool SetCachedString(const EcmaVM *vm, const char *name, uint32_t propertyIndex);
1920 static bool HasCachedString(const EcmaVM *vm, uint32_t propertyIndex);
1921 static Local<StringRef> GetCachedString(const EcmaVM *vm, uint32_t propertyIndex);