• Home
  • Raw
  • Download

Lines Matching full:vm

222     Local(const EcmaVM *vm, const Global<T> &current);
224 Local(const EcmaVM *vm, const CopyableGlobal<T> &current);
308 CopyableGlobal(const EcmaVM *vm, const Local<S> &current);
310 CopyableGlobal(const EcmaVM *vm, const Local<T> &current);
406 Global(const EcmaVM *vm, const Local<S> &current);
408 Global(const EcmaVM *vm, const Global<S> &current);
420 Local<T> ToLocal(const EcmaVM *vm) const in ToLocal() argument
422 return Local<T>(vm, *this); in ToLocal()
474 static Local<PrimitiveRef> Undefined(const EcmaVM *vm);
475 static Local<PrimitiveRef> Null(const EcmaVM *vm);
476 static Local<PrimitiveRef> Hole(const EcmaVM *vm);
477 static Local<PrimitiveRef> True(const EcmaVM *vm);
478 static Local<PrimitiveRef> False(const EcmaVM *vm);
480 bool BooleaValue(const EcmaVM *vm);
481 int64_t IntegerValue(const EcmaVM *vm);
482 uint32_t Uint32Value(const EcmaVM *vm);
483 int32_t Int32Value(const EcmaVM *vm);
490 Local<NumberRef> ToNumber(const EcmaVM *vm);
491 Local<BooleanRef> ToBoolean(const EcmaVM *vm);
492 Local<BigIntRef> ToBigInt(const EcmaVM *vm);
493 Local<StringRef> ToString(const EcmaVM *vm);
494 Local<ObjectRef> ToObject(const EcmaVM *vm);
495 Local<ObjectRef> ToEcmaObject(const EcmaVM *vm);
496 Local<NativePointerRef> ToNativePointer(const EcmaVM *vm);
504 bool IsBigInt(const EcmaVM *vm);
508 bool IsString(const EcmaVM *vm);
509 bool IsSymbol(const EcmaVM *vm);
510 bool IsObject(const EcmaVM *vm);
511 bool IsArray(const EcmaVM *vm);
512 bool IsJSArray(const EcmaVM *vm);
513 bool IsConstructor(const EcmaVM *vm);
514 bool IsFunction(const EcmaVM *vm);
516 bool IsJSFunction(const EcmaVM *vm);
517 bool IsProxy(const EcmaVM *vm);
518 bool IsPromise(const EcmaVM *vm);
519 bool IsDataView(const EcmaVM *vm);
520 bool IsTypedArray(const EcmaVM *vm);
521 bool IsNativePointer(const EcmaVM *vm);
522 bool IsDate(const EcmaVM *vm);
523 bool IsError(const EcmaVM *vm);
524 bool IsMap(const EcmaVM *vm);
525 bool IsSet(const EcmaVM *vm);
526 bool IsWeakRef(const EcmaVM *vm);
527 bool IsWeakMap(const EcmaVM *vm);
528 bool IsWeakSet(const EcmaVM *vm);
529 bool IsRegExp(const EcmaVM *vm);
530 bool IsArrayIterator(const EcmaVM *vm);
531 bool IsStringIterator(const EcmaVM *vm);
532 bool IsSetIterator(const EcmaVM *vm);
533 bool IsMapIterator(const EcmaVM *vm);
534 bool IsArrayBuffer(const EcmaVM *vm);
535 bool IsBuffer(const EcmaVM *vm);
536 bool IsUint8Array(const EcmaVM *vm);
537 bool IsInt8Array(const EcmaVM *vm);
538 bool IsUint8ClampedArray(const EcmaVM *vm);
539 bool IsInt16Array(const EcmaVM *vm);
540 bool IsUint16Array(const EcmaVM *vm);
541 bool IsInt32Array(const EcmaVM *vm);
542 bool IsUint32Array(const EcmaVM *vm);
543 bool IsFloat32Array(const EcmaVM *vm);
544 bool IsFloat64Array(const EcmaVM *vm);
545 bool IsBigInt64Array(const EcmaVM *vm);
546 bool IsBigUint64Array(const EcmaVM *vm);
547 bool IsJSPrimitiveRef(const EcmaVM *vm);
548 bool IsJSPrimitiveNumber(const EcmaVM *vm);
549 bool IsJSPrimitiveInt(const EcmaVM *vm);
550 bool IsJSPrimitiveBoolean(const EcmaVM *vm);
551 bool IsJSPrimitiveString(const EcmaVM *vm);
553 bool IsJSSharedInt8Array(const EcmaVM *vm);
554 bool IsJSSharedUint8Array(const EcmaVM *vm);
555 bool IsJSSharedUint8ClampedArray(const EcmaVM *vm);
556 bool IsJSSharedInt16Array(const EcmaVM *vm);
557 bool IsJSSharedUint16Array(const EcmaVM *vm);
558 bool IsJSSharedInt32Array(const EcmaVM *vm);
559 bool IsJSSharedUint32Array(const EcmaVM *vm);
560 bool IsJSSharedFloat32Array(const EcmaVM *vm);
562 bool IsGeneratorObject(const EcmaVM *vm);
563 bool IsJSPrimitiveSymbol(const EcmaVM *vm);
565 bool IsArgumentsObject(const EcmaVM *vm);
566 bool IsGeneratorFunction(const EcmaVM *vm);
567 bool IsAsyncFunction(const EcmaVM *vm);
568 bool IsConcurrentFunction(const EcmaVM *vm);
569 bool IsJSLocale(const EcmaVM *vm);
570 bool IsJSDateTimeFormat(const EcmaVM *vm);
571 bool IsJSRelativeTimeFormat(const EcmaVM *vm);
572 bool IsJSIntl(const EcmaVM *vm);
573 bool IsJSNumberFormat(const EcmaVM *vm);
574 bool IsJSCollator(const EcmaVM *vm);
575 bool IsJSPluralRules(const EcmaVM *vm);
576 bool IsJSListFormat(const EcmaVM *vm);
577 bool IsAsyncGeneratorFunction(const EcmaVM *vm);
578 bool IsAsyncGeneratorObject(const EcmaVM *vm);
580 bool IsModuleNamespaceObject(const EcmaVM *vm);
581 bool IsNativeModuleFailureInfoObject(const EcmaVM *vm);
582 bool IsSharedArrayBuffer(const EcmaVM *vm);
583 bool IsSendableArrayBuffer(const EcmaVM *vm);
585 bool IsStrictEquals(const EcmaVM *vm, Local<JSValueRef> value);
586 Local<StringRef> Typeof(const EcmaVM *vm);
587 bool InstanceOf(const EcmaVM *vm, Local<JSValueRef> value);
589 bool IsArrayList(const EcmaVM *vm);
590 bool IsDeque(const EcmaVM *vm);
591 bool IsHashMap(const EcmaVM *vm);
592 bool IsHashSet(const EcmaVM *vm);
593 bool IsLightWeightMap(const EcmaVM *vm);
594 bool IsLightWeightSet(const EcmaVM *vm);
595 bool IsLinkedList(const EcmaVM *vm);
596 bool IsLinkedListIterator(const EcmaVM *vm);
597 bool IsList(const EcmaVM *vm);
598 bool IsPlainArray(const EcmaVM *vm);
599 bool IsQueue(const EcmaVM *vm);
600 bool IsStack(const EcmaVM *vm);
601 bool IsTreeMap(const EcmaVM *vm);
602 bool IsTreeSet(const EcmaVM *vm);
603 bool IsVector(const EcmaVM *vm);
604 bool IsBitVector(const EcmaVM *vm);
605 bool IsSendableObject(const EcmaVM *vm);
606 bool IsJSShared(const EcmaVM *vm);
607 bool IsSharedArray(const EcmaVM *vm);
608 bool IsSharedTypedArray(const EcmaVM *vm);
609 bool IsSharedSet(const EcmaVM *vm);
610 bool IsSharedMap(const EcmaVM *vm);
611 bool IsSharedMapIterator(const EcmaVM *vm);
613 void *GetNativePointerValue(const EcmaVM *vm, bool &isNativePointer);
614 bool IsDetachedArraybuffer(const EcmaVM *vm, bool &isArrayBuffer);
615 void DetachedArraybuffer(const EcmaVM *vm, bool &isArrayBuffer);
616 void GetDataViewInfo(const EcmaVM *vm,
630 void *GetNativePointerValueImpl(const EcmaVM *vm, bool &isNativePointer);
691 Local<JSValueRef> GetValue(const EcmaVM *vm) const in GetValue() argument
694 return JSValueRef::Undefined(vm); in GetValue()
706 Local<JSValueRef> GetGetter(const EcmaVM *vm) const in GetGetter() argument
709 return JSValueRef::Undefined(vm); in GetGetter()
721 Local<JSValueRef> GetSetter(const EcmaVM *vm) const in GetSetter() argument
724 return JSValueRef::Undefined(vm); in GetSetter()
751 …static Local<NativePointerRef> New(const EcmaVM *vm, void *nativePointer, size_t nativeBindingsize…
752 …static Local<NativePointerRef> New(const EcmaVM *vm, void *nativePointer, NativePointerCallback ca…
754 static Local<NativePointerRef> NewConcurrent(const EcmaVM *vm, void *nativePointer,
757 static Local<NativePointerRef> NewSendable(const EcmaVM *vm,
782 static Local<ObjectRef> New(const EcmaVM *vm);
783 static uintptr_t NewObject(const EcmaVM *vm);
784 static Local<ObjectRef> NewS(const EcmaVM *vm);
785 …static Local<ObjectRef> NewWithProperties(const EcmaVM *vm, size_t propertyCount, const Local<JSVa…
787 static Local<ObjectRef> NewSWithProperties(const EcmaVM *vm, SendablePropertiesInfo &info);
788 …static Local<ObjectRef> NewWithNamedProperties(const EcmaVM *vm, size_t propertyCount, const char …
790 …static Local<ObjectRef> CreateNativeModuleFailureInfo(const EcmaVM *vm, const std::string &failure…
791 …static Local<ObjectRef> CreateAccessorData(const EcmaVM *vm, Local<FunctionRef> getter, Local<Func…
792 static Local<ObjectRef> CreateSendableAccessorData(const EcmaVM *vm,
795 bool ConvertToNativeBindingObject(const EcmaVM *vm, Local<NativePointerRef> value);
796 bool Set(const EcmaVM *vm, Local<JSValueRef> key, Local<JSValueRef> value);
797 bool Set(const EcmaVM *vm, const char *utf8, Local<JSValueRef> value);
798 bool Set(const EcmaVM *vm, uint32_t key, Local<JSValueRef> value);
799 bool SetAccessorProperty(const EcmaVM *vm, Local<JSValueRef> key, Local<FunctionRef> getter,
801 Local<JSValueRef> Get(const EcmaVM *vm, Local<JSValueRef> key);
802 Local<JSValueRef> Get(const EcmaVM *vm, const char *utf8);
803 Local<JSValueRef> Get(const EcmaVM *vm, int32_t key);
805 bool GetOwnProperty(const EcmaVM *vm, Local<JSValueRef> key, PropertyAttribute &property);
806 Local<ArrayRef> GetOwnPropertyNames(const EcmaVM *vm);
807 Local<ArrayRef> GetAllPropertyNames(const EcmaVM *vm, uint32_t filter);
808 Local<ArrayRef> GetOwnEnumerablePropertyNames(const EcmaVM *vm);
809 Local<JSValueRef> GetPrototype(const EcmaVM *vm);
810 bool SetPrototype(const EcmaVM *vm, Local<ObjectRef> prototype);
812 bool DefineProperty(const EcmaVM *vm, Local<JSValueRef> key, PropertyAttribute attribute);
814 bool Has(const EcmaVM *vm, Local<JSValueRef> key);
815 bool Has(const EcmaVM *vm, uint32_t key);
817 bool HasOwnProperty(const EcmaVM *vm, Local<JSValueRef> key);
819 bool Delete(const EcmaVM *vm, Local<JSValueRef> key);
820 bool Delete(const EcmaVM *vm, uint32_t key);
822 Local<JSValueRef> Freeze(const EcmaVM *vm);
823 Local<JSValueRef> Seal(const EcmaVM *vm);
825 void SetNativePointerFieldCount(const EcmaVM *vm, int32_t count);
826 int32_t GetNativePointerFieldCount(const EcmaVM *vm);
827 void *GetNativePointerField(const EcmaVM *vm, int32_t index);
828 void SetNativePointerField(const EcmaVM *vm,
833 void SetConcurrentNativePointerField(const EcmaVM *vm,
849 …static Local<FunctionRef> New(EcmaVM *vm, FunctionCallback nativeFunc, NativePointerCallback delet…
851 static Local<FunctionRef> NewConcurrent(EcmaVM *vm,
857 …static Local<FunctionRef> New(EcmaVM *vm, InternalFunctionCallback nativeFunc, NativePointerCallba…
859 static Local<FunctionRef> NewConcurrent(EcmaVM *vm,
865 static Local<FunctionRef> NewSendable(EcmaVM *vm,
871 …static Local<FunctionRef> NewClassFunction(EcmaVM *vm, FunctionCallback nativeFunc, NativePointerC…
873 static Local<FunctionRef> NewConcurrentClassFunction(EcmaVM *vm,
879 static Local<FunctionRef> NewClassFunction(EcmaVM *vm,
885 static Local<FunctionRef> NewSendableClassFunction(const EcmaVM *vm,
894 JSValueRef* CallForNapi(const EcmaVM *vm, JSValueRef *thisObj, JSValueRef *const argv[],
896 …Local<JSValueRef> Call(const EcmaVM *vm, Local<JSValueRef> thisObj, const Local<JSValueRef> argv[],
898 Local<JSValueRef> Constructor(const EcmaVM *vm, const Local<JSValueRef> argv[], int32_t length);
899 JSValueRef* ConstructorOptimize(const EcmaVM *vm, JSValueRef* argv[], int32_t length);
901 Local<JSValueRef> GetFunctionPrototype(const EcmaVM *vm);
902 bool Inherit(const EcmaVM *vm, Local<FunctionRef> parent);
903 void SetName(const EcmaVM *vm, Local<StringRef> name);
904 Local<StringRef> GetName(const EcmaVM *vm);
905 Local<StringRef> GetSourceCode(const EcmaVM *vm, int lineNumber);
906 bool IsNative(const EcmaVM *vm);
907 …void SetData(const EcmaVM *vm, void *data, NativePointerCallback deleter = nullptr, bool callNapi …
908 void* GetData(const EcmaVM *vm);
913 Local<JSValueRef> GetValue(const EcmaVM *vm);
918 … static Local<SymbolRef> New(const EcmaVM *vm, Local<StringRef> description = Local<StringRef>());
919 Local<StringRef> GetDescription(const EcmaVM *vm);
924 static Local<BooleanRef> New(const EcmaVM *vm, bool input);
935 …static Local<StringRef> NewFromUtf8WithoutStringTable(const EcmaVM *vm, const char *utf8, int leng…
936 static Local<StringRef> NewFromUtf8(const EcmaVM *vm, const char *utf8, int length = -1);
937 …static Local<StringRef> NewFromUtf16WithoutStringTable(const EcmaVM *vm, const char16_t *utf16, in…
938 static Local<StringRef> NewFromUtf16(const EcmaVM *vm, const char16_t *utf16, int length = -1);
939 std::string ToString(const EcmaVM *vm);
940 std::string DebuggerToString(const EcmaVM *vm);
941 uint32_t Length(const EcmaVM *vm);
942 int32_t Utf8Length(const EcmaVM *vm, bool isGetBufferSize = false);
943 int WriteUtf8(const EcmaVM *vm, char *buffer, int length, bool isWriteBuffer = false);
944 int WriteUtf16(const EcmaVM *vm, char16_t *buffer, int length);
945 int WriteLatin1(const EcmaVM *vm, char *buffer, int length);
946 static Local<StringRef> GetNapiWrapperString(const EcmaVM *vm);
1006 static Local<BigIntRef> New(const EcmaVM *vm, uint64_t input);
1007 static Local<BigIntRef> New(const EcmaVM *vm, int64_t input);
1008 …static Local<JSValueRef> CreateBigWords(const EcmaVM *vm, bool sign, uint32_t size, const uint64_t…
1009 void BigIntToInt64(const EcmaVM *vm, int64_t *value, bool *lossless);
1010 void BigIntToUint64(const EcmaVM *vm, uint64_t *value, bool *lossless);
1011 void GetWordsArray(const EcmaVM *vm, bool* signBit, size_t wordCount, uint64_t* words);
1012 uint32_t GetWordsArraySize(const EcmaVM *vm);
1018 explicit LocalScope(const EcmaVM *vm);
1022 inline LocalScope(const EcmaVM *vm, JSTaggedType value);
1036 explicit EscapeLocalScope(const EcmaVM *vm);
1058 static Local<IntegerRef> New(const EcmaVM *vm, int input);
1059 static Local<IntegerRef> NewFromUnsigned(const EcmaVM *vm, unsigned int input);
1065 static Local<ArrayBufferRef> New(const EcmaVM *vm, int32_t length);
1066 static Local<ArrayBufferRef> New(const EcmaVM *vm, void *buffer, int32_t length,
1069 int32_t ByteLength(const EcmaVM *vm);
1070 void *GetBuffer(const EcmaVM *vm);
1072 void Detach(const EcmaVM *vm);
1073 bool IsDetach(const EcmaVM *vm);
1078 static Local<SendableArrayBufferRef> New(const EcmaVM *vm, int32_t length);
1079 static Local<SendableArrayBufferRef> New(const EcmaVM *vm, void *buffer, int32_t length,
1082 int32_t ByteLength(const EcmaVM *vm);
1083 void *GetBuffer(const EcmaVM *vm);
1085 void Detach(const EcmaVM *vm);
1086 bool IsDetach(const EcmaVM *vm);
1091 static Local<DateRef> New(const EcmaVM *vm, double time);
1092 Local<StringRef> ToString(const EcmaVM *vm);
1093 double GetTime(const EcmaVM *vm);
1098 uint32_t ByteLength(const EcmaVM *vm);
1099 uint32_t ByteOffset(const EcmaVM *vm);
1100 uint32_t ArrayLength(const EcmaVM *vm);
1101 Local<ArrayBufferRef> GetArrayBuffer(const EcmaVM *vm);
1106 uint32_t ByteLength(const EcmaVM *vm);
1107 uint32_t ByteOffset(const EcmaVM *vm);
1108 uint32_t ArrayLength(const EcmaVM *vm);
1109 Local<SendableArrayBufferRef> GetArrayBuffer(const EcmaVM *vm);
1114 static Local<ArrayRef> New(const EcmaVM *vm, uint32_t length = 0);
1115 uint32_t Length(const EcmaVM *vm);
1116 …static bool SetValueAt(const EcmaVM *vm, Local<JSValueRef> obj, uint32_t index, Local<JSValueRef> …
1117 static Local<JSValueRef> GetValueAt(const EcmaVM *vm, Local<JSValueRef> obj, uint32_t index);
1122 static Local<SendableArrayRef> New(const EcmaVM *vm, uint32_t length = 0);
1123 uint32_t Length(const EcmaVM *vm);
1124 static Local<JSValueRef> GetValueAt(const EcmaVM *vm, Local<JSValueRef> obj, uint32_t index);
1125 …static bool SetProperty(const EcmaVM *vm, Local<JSValueRef> obj, uint32_t index, Local<JSValueRef>…
1130 …static Local<Int8ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffset,…
1135 static Local<SharedInt8ArrayRef> New(const EcmaVM *vm, Local<SendableArrayBufferRef> buffer,
1141 …static Local<Uint8ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffset…
1146 static Local<SharedUint8ArrayRef> New(const EcmaVM *vm, Local<SendableArrayBufferRef> buffer,
1152 …static Local<Uint8ClampedArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byt…
1158 …static Local<Int16ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffset…
1163 static Local<SharedInt16ArrayRef> New(const EcmaVM *vm, Local<SendableArrayBufferRef> buffer,
1169 …static Local<Uint16ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffse…
1175 static Local<SharedUint16ArrayRef> New(const EcmaVM *vm, Local<SendableArrayBufferRef> buffer,
1181 …static Local<Int32ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffset…
1186 static Local<SharedInt32ArrayRef> New(const EcmaVM *vm, Local<SendableArrayBufferRef> buffer,
1192 static Local<SharedFloat32ArrayRef> New(const EcmaVM *vm, Local<SendableArrayBufferRef> buffer,
1198 …static Local<SharedUint8ClampedArrayRef> New(const EcmaVM *vm, Local<SendableArrayBufferRef> buffe…
1204 …static Local<Uint32ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffse…
1210 static Local<SharedUint32ArrayRef> New(const EcmaVM *vm, Local<SendableArrayBufferRef> buffer,
1216 …static Local<Float32ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffs…
1222 …static Local<Float64ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffs…
1228 …static Local<BigInt64ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOff…
1234 …static Local<BigUint64ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOf…
1240 static Local<JSValueRef> Error(const EcmaVM *vm, Local<StringRef> message);
1241 static Local<JSValueRef> RangeError(const EcmaVM *vm, Local<StringRef> message);
1242 static Local<JSValueRef> ReferenceError(const EcmaVM *vm, Local<StringRef> message);
1243 static Local<JSValueRef> SyntaxError(const EcmaVM *vm, Local<StringRef> message);
1244 static Local<JSValueRef> TypeError(const EcmaVM *vm, Local<StringRef> message);
1245 static Local<JSValueRef> AggregateError(const EcmaVM *vm, Local<StringRef> message);
1246 static Local<JSValueRef> EvalError(const EcmaVM *vm, Local<StringRef> message);
1247 static Local<JSValueRef> OOMError(const EcmaVM *vm, Local<StringRef> message);
1248 static Local<JSValueRef> TerminationError(const EcmaVM *vm, Local<StringRef> message);
1253 FunctionCallScope(EcmaVM *vm);
1262 explicit JSExecutionScope(const EcmaVM *vm);
1274 explicit JsiNativeScope(const EcmaVM *vm);
1286 explicit JsiFastNativeScope(const EcmaVM *vm);
1375 int32_t GetSize(const EcmaVM *vm);
1376 int32_t GetTotalElements(const EcmaVM *vm);
1377 Local<JSValueRef> Get(const EcmaVM *vm, Local<JSValueRef> key);
1378 Local<JSValueRef> Get(const EcmaVM *vm, const char *utf8);
1379 Local<JSValueRef> GetKey(const EcmaVM *vm, int entry);
1380 Local<JSValueRef> GetValue(const EcmaVM *vm, int entry);
1381 static Local<MapRef> New(const EcmaVM *vm);
1382 void Set(const EcmaVM *vm, Local<JSValueRef> key, Local<JSValueRef> value);
1383 void Set(const EcmaVM *vm, const char *utf8, Local<JSValueRef> value);
1384 bool Has(const EcmaVM *vm, Local<JSValueRef> key);
1385 bool Has(const EcmaVM *vm, const char *utf8);
1386 void Delete(const EcmaVM *vm, Local<JSValueRef> key);
1387 void Clear(const EcmaVM *vm);
1388 Local<MapIteratorRef> GetEntries(const EcmaVM *vm);
1389 Local<MapIteratorRef> GetKeys(const EcmaVM *vm);
1390 Local<MapIteratorRef> GetValues(const EcmaVM *vm);
1395 static Local<SendableMapRef> New(const EcmaVM *vm);
1396 uint32_t GetSize(const EcmaVM *vm);
1397 uint32_t GetTotalElements(const EcmaVM *vm);
1398 Local<JSValueRef> Get(const EcmaVM *vm, Local<JSValueRef> key);
1399 Local<JSValueRef> Get(const EcmaVM *vm, const char *utf8);
1400 Local<JSValueRef> GetKey(const EcmaVM *vm, int entry);
1401 Local<JSValueRef> GetValue(const EcmaVM *vm, int entry);
1402 void Set(const EcmaVM *vm, Local<JSValueRef> key, Local<JSValueRef> value);
1403 void Set(const EcmaVM *vm, const char *utf8, Local<JSValueRef> value);
1404 bool Has(const EcmaVM *vm, Local<JSValueRef> key);
1405 bool Has(const EcmaVM *vm, const char *utf8);
1406 void Delete(const EcmaVM *vm, Local<JSValueRef> key);
1407 void Clear(const EcmaVM *vm);
1408 Local<SendableMapIteratorRef> GetEntries(const EcmaVM *vm);
1409 Local<SendableMapIteratorRef> GetKeys(const EcmaVM *vm);
1410 Local<SendableMapIteratorRef> GetValues(const EcmaVM *vm);
1415 static Local<SendableSetRef> New(const EcmaVM *vm);
1416 uint32_t GetSize(const EcmaVM *vm);
1417 uint32_t GetTotalElements(const EcmaVM *vm);
1418 Local<JSValueRef> GetValue(const EcmaVM *vm, int entry);
1419 void Add(const EcmaVM *vm, Local<JSValueRef> value);
1424 static Local<BufferRef> New(const EcmaVM *vm, int32_t length);
1425 …static Local<BufferRef> New(const EcmaVM *vm, void *buffer, int32_t length, const NativePointerCal…
1428 int32_t ByteLength(const EcmaVM *vm);
1429 void *GetBuffer(const EcmaVM *vm);
1435 Local<PromiseRef> Catch(const EcmaVM *vm, Local<FunctionRef> handler);
1436 Local<PromiseRef> Then(const EcmaVM *vm, Local<FunctionRef> handler);
1437 Local<PromiseRef> Finally(const EcmaVM *vm, Local<FunctionRef> handler);
1438 …Local<PromiseRef> Then(const EcmaVM *vm, Local<FunctionRef> onFulfilled, Local<FunctionRef> onReje…
1440 Local<JSValueRef> GetPromiseState(const EcmaVM *vm);
1441 Local<JSValueRef> GetPromiseResult(const EcmaVM *vm);
1446 static Local<PromiseCapabilityRef> New(const EcmaVM *vm);
1447 bool Resolve(const EcmaVM *vm, uintptr_t value);
1448 bool Resolve(const EcmaVM *vm, Local<JSValueRef> value);
1449 bool Reject(const EcmaVM *vm, uintptr_t reason);
1450 bool Reject(const EcmaVM *vm, Local<JSValueRef> reason);
1451 Local<PromiseRef> GetPromise(const EcmaVM *vm);
1456 static Local<NumberRef> New(const EcmaVM *vm, double input);
1457 static Local<NumberRef> New(const EcmaVM *vm, int32_t input);
1458 static Local<NumberRef> New(const EcmaVM *vm, uint32_t input);
1459 static Local<NumberRef> New(const EcmaVM *vm, int64_t input);
1466 …static Local<DataViewRef> New(const EcmaVM *vm, Local<ArrayBufferRef> arrayBuffer, uint32_t byteOf…
1470 Local<ArrayBufferRef> GetArrayBuffer(const EcmaVM *vm);
1476 Local<JSValueRef> GetKind(const EcmaVM *vm);
1477 static Local<MapIteratorRef> New(const EcmaVM *vm, Local<MapRef> map);
1478 ecmascript::EcmaRuntimeCallInfo* GetEcmaRuntimeCallInfo(const EcmaVM *vm);
1479 …static Local<ArrayRef> Next(const EcmaVM *vm, ecmascript::EcmaRuntimeCallInfo* ecmaRuntimeCallInfo…
1480 Local<JSValueRef> Next(const EcmaVM *vm);
1485 Local<JSValueRef> Next(const EcmaVM *vm);
1539 …static void LoadAotFileInternal(EcmaVM *vm, const std::string &moduleName, std::string &aotFileNam…
1540 static void LoadAotFile(EcmaVM *vm, const std::string &moduleName);
1542 static void LoadAotFile(EcmaVM *vm, [[maybe_unused]] const std::string &bundleName,
1547 static EcmaContext *CreateJSContext(EcmaVM *vm);
1548 static void SwitchCurrentContext(EcmaVM *vm, EcmaContext *context);
1549 static void DestroyJSContext(EcmaVM *vm, EcmaContext *context);
1552 static bool ExecuteInContext(EcmaVM *vm, const std::string &fileName, const std::string &entry,
1555 …static bool ExecuteForAbsolutePath(const EcmaVM *vm, const std::string &fileName, const std::strin…
1557 static bool Execute(const EcmaVM *vm, const std::string &fileName, const std::string &entry,
1559 static bool Execute(EcmaVM *vm, const uint8_t *data, int32_t size, const std::string &entry,
1561 static int ExecuteWithSingletonPatternFlag(EcmaVM *vm, const std::string &bundleName,
1563 static bool IsExecuteModuleInAbcFile(EcmaVM *vm, const std::string &bundleName,
1566 …static bool ExecuteModuleBuffer(EcmaVM *vm, const uint8_t *data, int32_t size, const std::string &…
1568 …static bool ExecuteModuleFromBuffer(EcmaVM *vm, const void *data, int32_t size, const std::string …
1569 …static Local<ObjectRef> GetExportObject(EcmaVM *vm, const std::string &file, const std::string &ke…
1570 …static Local<ObjectRef> GetExportObjectFromBuffer(EcmaVM *vm, const std::string &file, const std::…
1571 …static Local<ObjectRef> GetExportObjectFromOhmUrl(EcmaVM *vm, const std::string &ohmUrl, const std…
1572 static Local<ObjectRef> ExecuteNativeModule(EcmaVM *vm, const std::string &key);
1573 static Local<ObjectRef> GetModuleNameSpaceFromFile(EcmaVM *vm, const std::string &file,
1575 static Local<ObjectRef> GetModuleNameSpaceWithModuleInfo(EcmaVM *vm, const std::string &file,
1585 static bool ExecuteSecure(EcmaVM *vm, uint8_t *data, int32_t size, const std::string &entry,
1593 …static bool ExecuteModuleBufferSecure(EcmaVM *vm, uint8_t *data, int32_t size, const std::string &…
1596 …static bool ExecuteSecureWithOhmUrl(EcmaVM *vm, uint8_t *data, int32_t size, const std::string &sr…
1600 static Local<ObjectRef> GetGlobalObject(const EcmaVM *vm);
1601 static void ExecutePendingJob(const EcmaVM *vm);
1605 static void TriggerGC(const EcmaVM *vm, TRIGGER_GC_TYPE gcType = TRIGGER_GC_TYPE::SEMI_GC);
1606 static void TriggerGC(const EcmaVM *vm, ecmascript::GCReason reason,
1608 static void TriggerIdleGC(const EcmaVM *vm, TRIGGER_IDLE_GC_TYPE gcType);
1612 static void ThrowException(const EcmaVM *vm, Local<JSValueRef> error);
1613 static void PrintExceptionInfo(const EcmaVM *vm);
1614 static Local<ObjectRef> GetAndClearUncaughtException(const EcmaVM *vm);
1615 static Local<ObjectRef> GetUncaughtException(const EcmaVM *vm);
1616 static bool IsExecutingPendingJob(const EcmaVM *vm);
1617 static bool HasPendingException(const EcmaVM *vm);
1618 static bool HasPendingJob(const EcmaVM *vm);
1619 static void EnableUserUncaughtErrorHandler(EcmaVM *vm);
1621 …static bool StartDebuggerCheckParameters(EcmaVM *vm, const DebugOption &option, int32_t instanceId,
1623 static bool StartDebugger(EcmaVM *vm, const DebugOption &option, int32_t instanceId = 0,
1626 …static bool StartDebuggerForOldProcess(EcmaVM *vm, const DebugOption &option, int32_t instanceId =…
1631 …static bool NotifyDebugMode(int tid, EcmaVM *vm, const DebugOption &option, int32_t instanceId = 0,
1634 …int tid, EcmaVM *vm, const DebugOption &option, const DebuggerPostTask &debuggerPostTask, bool deb…
1635 static bool StopDebugger(EcmaVM *vm);
1636 static bool IsMixedDebugEnabled(const EcmaVM *vm);
1637 static bool IsDebugModeEnabled(const EcmaVM *vm);
1638 static void NotifyNativeCalling(const EcmaVM *vm, const void *nativeAddress);
1639 static void NotifyNativeReturn(const EcmaVM *vm, const void *nativeAddress);
1640 static void NotifyLoadModule(const EcmaVM *vm);
1641 static void NotifyUIIdle(const EcmaVM *vm, int idleTime);
1642 static void NotifyLooperIdleStart(const EcmaVM *vm, int64_t timestamp, int idleTime);
1643 static void NotifyLooperIdleEnd(const EcmaVM *vm, int64_t timestamp);
1644 static bool IsJSMainThreadOfEcmaVM(const EcmaVM *vm);
1645 static void SetDeviceDisconnectCallback(EcmaVM *vm, DeviceDisconnectCallback cb);
1647 … static void* SerializeValue(const EcmaVM *vm, Local<JSValueRef> data, Local<JSValueRef> transfer,
1651 static Local<JSValueRef> DeserializeValue(const EcmaVM *vm, void *recoder, void *hint);
1653 static void SetHostPromiseRejectionTracker(EcmaVM *vm, void *cb, void* data);
1654 static void SetHostResolveBufferTracker(EcmaVM *vm,
1656 …static void SetUnloadNativeModuleCallback(EcmaVM *vm, const std::function<bool(const std::string &…
1657 static void SetNativePtrGetter(EcmaVM *vm, void* cb);
1658 static void SetSourceMapCallback(EcmaVM *vm, SourceMapCallback cb);
1659 static void SetSourceMapTranslateCallback(EcmaVM *vm, SourceMapTranslateCallback cb);
1660 static void SetHostEnqueueJob(const EcmaVM* vm, Local<JSValueRef> cb,
1663 static void PreFork(EcmaVM *vm);
1664 static void PostFork(EcmaVM *vm, const RuntimeOption &option);
1667 static void GetStackBeforeCallNapiSuccess(EcmaVM *vm, bool &getStackBeforeCallNapiSuccess);
1668 static void GetStackAfterCallNapi(EcmaVM *vm);
1669 …static PatchErrorCode LoadPatch(EcmaVM *vm, const std::string &patchFileName, const std::string &b…
1670 static PatchErrorCode LoadPatch(EcmaVM *vm,
1673 static PatchErrorCode UnloadPatch(EcmaVM *vm, const std::string &patchFileName);
1675 …static bool IsQuickFixCausedException(EcmaVM *vm, Local<ObjectRef> exception, const std::string &p…
1677 static void RegisterQuickFixQueryFunc(EcmaVM *vm, std::function<bool(std::string baseFileName,
1681 static bool IsBundle(EcmaVM *vm);
1682 static void SetBundle(EcmaVM *vm, bool value);
1683 static bool IsNormalizedOhmUrlPack(EcmaVM *vm);
1685 static void SetAssetPath(EcmaVM *vm, const std::string &assetPath);
1686 static void SetMockModuleList(EcmaVM *vm, const std::map<std::string, std::string> &list);
1687 static void SetPkgNameList(EcmaVM *vm, const std::map<std::string, std::string> &list);
1688 static std::string GetPkgName(EcmaVM *vm, const std::string &moduleName);
1689 static void SetPkgAliasList(EcmaVM *vm, const std::map<std::string, std::string> &list);
1690 static void SetHmsModuleList(EcmaVM *vm, const std::vector<panda::HmsMap> &list);
1691 …static void SetModuleInfo(EcmaVM *vm, const std::string &assetPath, const std::string &entryPoint);
1692 static void SetpkgContextInfoList(EcmaVM *vm, const std::map<std::string,
1694 static void SetExecuteBufferMode(const EcmaVM *vm);
1695 static void SetLoop(EcmaVM *vm, void *loop);
1696 static void SetWeakFinalizeTaskCallback(EcmaVM *vm, const WeakFinalizeTaskCallback &callback);
1697 static void SetAsyncCleanTaskCallback(EcmaVM *vm, const NativePointerTaskCallback &callback);
1698 static void SetTriggerGCTaskCallback(EcmaVM *vm, const TriggerGCTaskCallback& callback);
1699 static void SetStartIdleMonitorCallback(EcmaVM *vm, const StartIdleMonitorCallback& callback);
1700 static std::string GetAssetPath(EcmaVM *vm);
1701 static bool InitForConcurrentThread(EcmaVM *vm, ConcurrentCallback cb, void *data);
1702 static bool InitForConcurrentFunction(EcmaVM *vm, Local<JSValueRef> func, void *taskInfo);
1703 static void* GetCurrentTaskInfo(const EcmaVM *vm);
1704 static void ClearCurrentTaskInfo(const EcmaVM *vm);
1705 static void SetBundleName(EcmaVM *vm, const std::string &bundleName);
1706 static std::string GetBundleName(EcmaVM *vm);
1707 static void SetModuleName(EcmaVM *vm, const std::string &moduleName);
1708 static std::string GetModuleName(EcmaVM *vm);
1709 …static std::pair<std::string, std::string> GetCurrentModuleInfo(EcmaVM *vm, bool needRecordName = …
1711 static void AllowCrossThreadExecution(EcmaVM *vm);
1712 static void SynchronizVMInfo(EcmaVM *vm, const EcmaVM *hostVM);
1713 static bool IsProfiling(EcmaVM *vm);
1714 static void SetProfilerState(const EcmaVM *vm, bool value);
1715 …static void SetRequestAotCallback(EcmaVM *vm, const std::function<int32_t(const std::string &bundl…
1718 static void SetSearchHapPathTracker(EcmaVM *vm, std::function<bool(const std::string moduleName,
1720 static void *GetEnv(EcmaVM *vm);
1721 static void SetEnv(EcmaVM *vm, void *env);
1726 static Local<JSValueRef> NapiHasProperty(const EcmaVM *vm, uintptr_t nativeObj, uintptr_t key);
1727 … static Local<JSValueRef> NapiHasOwnProperty(const EcmaVM *vm, uintptr_t nativeObj, uintptr_t key);
1728 static Local<JSValueRef> NapiGetProperty(const EcmaVM *vm, uintptr_t nativeObj, uintptr_t key);
1729 … static Local<JSValueRef> NapiDeleteProperty(const EcmaVM *vm, uintptr_t nativeObj, uintptr_t key);
1730 …static Local<JSValueRef> NapiGetNamedProperty(const EcmaVM *vm, uintptr_t nativeObj, const char* u…
1732 static Local<JSValueRef> CreateLocal(const EcmaVM *vm, JSValueRef src);
1736 static int GetStartRealTime(const EcmaVM *vm);
1737 static void NotifyTaskBegin(const EcmaVM *vm);
1738 static void NotifyTaskFinished(const EcmaVM *vm);
1739 static bool IsMultiThreadCheckEnabled(const EcmaVM *vm);
1748 static uintptr_t GetHandleAddr(const EcmaVM *vm, uintptr_t localAddress);
1749 static uintptr_t GetGlobalHandleAddr(const EcmaVM *vm, uintptr_t localAddress);
1750 static uintptr_t SetWeak(const EcmaVM *vm, uintptr_t localAddress);
1751 static uintptr_t SetWeakCallback(const EcmaVM *vm, uintptr_t localAddress, void *ref,
1754 static uintptr_t ClearWeak(const EcmaVM *vm, uintptr_t localAddress);
1755 static bool IsWeak(const EcmaVM *vm, uintptr_t localAddress);
1756 static void DisposeGlobalHandleAddr(const EcmaVM *vm, uintptr_t addr);
1757 static bool IsSerializationTimeoutCheckEnabled(const EcmaVM *vm);
1758 …static void GenerateTimeoutTraceIfNeeded(const EcmaVM *vm, std::chrono::system_clock::time_point &…
1772 Local<JSValueRef> GetHandler(const EcmaVM *vm);
1773 Local<JSValueRef> GetTarget(const EcmaVM *vm);
1779 int32_t GetSize(const EcmaVM *vm);
1780 int32_t GetTotalElements(const EcmaVM *vm);
1781 Local<JSValueRef> GetKey(const EcmaVM *vm, int entry);
1782 Local<JSValueRef> GetValue(const EcmaVM *vm, int entry);
1783 static Local<WeakMapRef> New(const EcmaVM *vm);
1784 void Set(const EcmaVM *vm, const Local<JSValueRef> &key, const Local<JSValueRef> &value);
1785 bool Has(const EcmaVM *vm, Local<JSValueRef> key);
1790 int32_t GetSize(const EcmaVM *vm);
1791 int32_t GetTotalElements(const EcmaVM *vm);
1792 Local<JSValueRef> GetValue(const EcmaVM *vm, int entry);
1793 static Local<SetRef> New(const EcmaVM *vm);
1794 void Add(const EcmaVM *vm, Local<JSValueRef> value);
1799 int32_t GetSize(const EcmaVM *vm);
1800 int32_t GetTotalElements(const EcmaVM *vm);
1801 Local<JSValueRef> GetValue(const EcmaVM *vm, int entry);
1802 static Local<WeakSetRef> New(const EcmaVM *vm);
1803 void Add(const EcmaVM *vm, Local<JSValueRef> value);
1809 Local<JSValueRef> GetKind(const EcmaVM *vm);
1810 static Local<SetIteratorRef> New(const EcmaVM *vm, Local<SetRef> set);
1811 ecmascript::EcmaRuntimeCallInfo *GetEcmaRuntimeCallInfo(const EcmaVM *vm);
1812 …static Local<ArrayRef> Next(const EcmaVM *vm, ecmascript::EcmaRuntimeCallInfo *ecmaRuntimeCallInfo…
1820 static bool RegisterStringCacheTable(const EcmaVM *vm, uint32_t size);
1821 static bool SetCachedString(const EcmaVM *vm, const char *name, uint32_t propertyIndex);
1822 static bool HasCachedString(const EcmaVM *vm, uint32_t propertyIndex);
1823 static Local<StringRef> GetCachedString(const EcmaVM *vm, uint32_t propertyIndex);