• Home
  • Raw
  • Download

Lines Matching full:const

111 using SourceMapCallback = std::function<std::string(const std::string& rawStack)>;
117 className(const className &) = delete; \
118 className &operator=(const className &) = delete
145 AsyncNativeCallbacksPack(const AsyncNativeCallbacksPack &) = default;
146 AsyncNativeCallbacksPack &operator=(const AsyncNativeCallbacksPack &) = default;
155 bool TotallyEmpty() const in TotallyEmpty()
160 bool Empty() const in Empty()
170 size_t GetNumCallBacks() const in GetNumCallBacks()
187 size_t GetTotalBindingSize() const in GetTotalBindingSize()
198 void NotifyFinish() const in NotifyFinish()
217 inline Local(const Local<S> &current) : address_(reinterpret_cast<uintptr_t>(*current)) in Local()
222 Local(const EcmaVM *vm, const Global<T> &current);
224 Local(const EcmaVM *vm, const CopyableGlobal<T> &current);
228 inline T *operator*() const
233 inline T *operator->() const
238 inline bool IsEmpty() const in IsEmpty()
248 inline bool IsNull() const in IsNull()
256 inline T *GetAddress() const in GetAddress()
285 inline CopyableGlobal(const CopyableGlobal &that) in CopyableGlobal()
290 inline CopyableGlobal &operator=(const CopyableGlobal &that)
308 CopyableGlobal(const EcmaVM *vm, const Local<S> &current);
310 CopyableGlobal(const EcmaVM *vm, const Local<T> &current);
313 CopyableGlobal(const CopyableGlobal<S> &that) in CopyableGlobal()
323 Local<T> ToLocal() const in ToLocal()
336 inline T *operator*() const
341 inline T *operator->() const
346 inline bool IsEmpty() const in IsEmpty()
357 bool IsWeak() const;
359 const EcmaVM *GetEcmaVM() const in GetEcmaVM()
365 inline T *GetAddress() const in GetAddress()
369 inline void Copy(const CopyableGlobal &that);
371 inline void Copy(const CopyableGlobal<S> &that);
375 const EcmaVM *vm_ {nullptr};
383 inline Global(const Global &that) in Global()
388 inline Global &operator=(const Global &that)
406 Global(const EcmaVM *vm, const Local<S> &current);
408 Global(const EcmaVM *vm, const Global<S> &current);
412 Local<T> ToLocal() const in ToLocal()
420 Local<T> ToLocal(const EcmaVM *vm) const in ToLocal()
433 inline T *operator*() const
438 inline T *operator->() const
443 inline bool IsEmpty() const in IsEmpty()
455 bool IsWeak() const;
457 const EcmaVM *GetEcmaVM() const in GetEcmaVM()
463 inline T *GetAddress() const in GetAddress()
467 inline void Update(const Global &that);
469 const EcmaVM *vm_ {nullptr};
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);
652 bool IsWritable() const in IsWritable()
661 bool IsEnumerable() const in IsEnumerable()
670 bool IsConfigurable() const in IsConfigurable()
679 bool HasWritable() const in HasWritable()
683 bool HasConfigurable() const in HasConfigurable()
687 bool HasEnumerable() const in HasEnumerable()
691 Local<JSValueRef> GetValue(const EcmaVM *vm) const in GetValue()
702 inline bool HasValue() const in HasValue()
706 Local<JSValueRef> GetGetter(const EcmaVM *vm) const in GetGetter()
717 bool HasGetter() const in HasGetter()
721 Local<JSValueRef> GetSetter(const EcmaVM *vm) const in GetSetter()
732 bool HasSetter() const in HasSetter()
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…
786 const PropertyAttribute *attributes);
787 static Local<ObjectRef> NewSWithProperties(const EcmaVM *vm, SendablePropertiesInfo &info);
788 …static Local<ObjectRef> NewWithNamedProperties(const EcmaVM *vm, size_t propertyCount, const char …
789 const Local<JSValueRef> *values);
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,
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);
955 Local<JSValueRef> GetPromise() const;
956 Local<JSValueRef> GetReason() const;
957 PromiseRejectInfo::PROMISE_REJECTION_EVENT GetOperation() const;
958 void* GetData() const;
972 explicit TryCatch(const EcmaVM *ecmaVm) : ecmaVm_(ecmaVm) {}; in TryCatch()
979 bool HasCaught() const;
1000 const EcmaVM *ecmaVm_ {nullptr};
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,
1067 const NativePointerCallback &deleter, void *data);
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,
1080 const NativePointerCallback &deleter, void *data);
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);
1262 explicit JSExecutionScope(const EcmaVM *vm);
1274 explicit JsiNativeScope(const EcmaVM *vm);
1286 explicit JsiFastNativeScope(const EcmaVM *vm);
1315 inline JSThread *GetThread() const in GetThread()
1320 EcmaVM *GetVM() const;
1322 inline uint32_t GetArgsNumber() const in GetArgsNumber()
1330 inline Local<JSValueRef> GetFunctionRef() const in GetFunctionRef()
1335 inline Local<JSValueRef> GetNewTargetRef() const in GetNewTargetRef()
1340 inline Local<JSValueRef> GetThisRef() const in GetThisRef()
1345 inline Local<JSValueRef> GetCallArgRef(uint32_t idx) const in GetCallArgRef()
1353 Local<JSValueRef> GetArgRef(uint32_t idx) const in GetArgRef()
1358 uintptr_t GetArgAddress(uint32_t idx) const in GetArgAddress()
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);
1491 const char *libraryPath;
1533 static EcmaVM *CreateJSVM(const RuntimeOption &option);
1535 …static void RegisterUncatchableErrorHandler(EcmaVM *ecmaVm, const UncatchableErrorHandler &handler…
1538 …static void LoadAotFileInternal(EcmaVM *vm, const std::string &moduleName, std::string &aotFileNam…
1539 static void LoadAotFile(EcmaVM *vm, const std::string &moduleName);
1541 static void LoadAotFile(EcmaVM *vm, [[maybe_unused]] const std::string &bundleName,
1542 const std::string &moduleName,
1551 static bool ExecuteInContext(EcmaVM *vm, const std::string &fileName, const std::string &entry,
1554 …static bool ExecuteForAbsolutePath(const EcmaVM *vm, const std::string &fileName, const std::strin…
1556 static bool Execute(const EcmaVM *vm, const std::string &fileName, const std::string &entry,
1558 static bool Execute(EcmaVM *vm, const uint8_t *data, int32_t size, const std::string &entry,
1559 const std::string &filename = "", bool needUpdate = false);
1560 static int ExecuteWithSingletonPatternFlag(EcmaVM *vm, const std::string &bundleName,
1561 const std::string &moduleName, const std::string &ohmurl, bool isSingletonPattern);
1562 static bool IsExecuteModuleInAbcFile(EcmaVM *vm, const std::string &bundleName,
1563 const std::string &moduleName, const std::string &ohmurl);
1565 …static bool ExecuteModuleBuffer(EcmaVM *vm, const uint8_t *data, int32_t size, const std::string &…
1567 …static bool ExecuteModuleFromBuffer(EcmaVM *vm, const void *data, int32_t size, const std::string …
1568 …static Local<ObjectRef> GetExportObject(EcmaVM *vm, const std::string &file, const std::string &ke…
1569 …static Local<ObjectRef> GetExportObjectFromBuffer(EcmaVM *vm, const std::string &file, const std::…
1570 static Local<ObjectRef> ExecuteNativeModule(EcmaVM *vm, const std::string &key);
1571 static Local<ObjectRef> GetModuleNameSpaceFromFile(EcmaVM *vm, const std::string &file,
1572 const std::string &module_path);
1573 static Local<ObjectRef> GetModuleNameSpaceWithModuleInfo(EcmaVM *vm, const std::string &file,
1574 const std::string &module_path);
1583 static bool ExecuteSecure(EcmaVM *vm, uint8_t *data, int32_t size, const std::string &entry,
1584 const std::string &filename = "", bool needUpdate = false);
1591 …static bool ExecuteModuleBufferSecure(EcmaVM *vm, uint8_t *data, int32_t size, const std::string &…
1595 static Local<ObjectRef> GetGlobalObject(const EcmaVM *vm);
1596 static void ExecutePendingJob(const EcmaVM *vm);
1600 static void TriggerGC(const EcmaVM *vm, TRIGGER_GC_TYPE gcType = TRIGGER_GC_TYPE::SEMI_GC);
1601 static void TriggerGC(const EcmaVM *vm, ecmascript::GCReason reason,
1603 static void TriggerIdleGC(const EcmaVM *vm, TRIGGER_IDLE_GC_TYPE gcType);
1604 static void SetStartIdleMonitorCallback(const StartIdleMonitorCallback& callback);
1607 static void ThrowException(const EcmaVM *vm, Local<JSValueRef> error);
1608 static void PrintExceptionInfo(const EcmaVM *vm);
1609 static Local<ObjectRef> GetAndClearUncaughtException(const EcmaVM *vm);
1610 static Local<ObjectRef> GetUncaughtException(const EcmaVM *vm);
1611 static bool IsExecutingPendingJob(const EcmaVM *vm);
1612 static bool HasPendingException(const EcmaVM *vm);
1613 static bool HasPendingJob(const EcmaVM *vm);
1616 …static bool StartDebuggerCheckParameters(EcmaVM *vm, const DebugOption &option, int32_t instanceId,
1617 const DebuggerPostTask &debuggerPostTask);
1618 static bool StartDebugger(EcmaVM *vm, const DebugOption &option, int32_t instanceId = 0,
1619 const DebuggerPostTask &debuggerPostTask = {});
1621 …static bool StartDebuggerForOldProcess(EcmaVM *vm, const DebugOption &option, int32_t instanceId =…
1622 const DebuggerPostTask &debuggerPostTask = {});
1626 …static bool NotifyDebugMode(int tid, EcmaVM *vm, const DebugOption &option, int32_t instanceId = 0,
1627const DebuggerPostTask &debuggerPostTask = {}, bool debugApp = false);
1629 …int tid, EcmaVM *vm, const DebugOption &option, const DebuggerPostTask &debuggerPostTask, bool deb…
1631 static bool IsMixedDebugEnabled(const EcmaVM *vm);
1632 static bool IsDebugModeEnabled(const EcmaVM *vm);
1633 static void NotifyNativeCalling(const EcmaVM *vm, const void *nativeAddress);
1634 static void NotifyNativeReturn(const EcmaVM *vm, const void *nativeAddress);
1635 static void NotifyLoadModule(const EcmaVM *vm);
1636 static void NotifyUIIdle(const EcmaVM *vm, int idleTime);
1637 static void NotifyLooperIdleStart(const EcmaVM *vm, int64_t timestamp, int idleTime);
1638 static void NotifyLooperIdleEnd(const EcmaVM *vm, int64_t timestamp);
1639 static bool IsJSMainThreadOfEcmaVM(const EcmaVM *vm);
1642 … static void* SerializeValue(const EcmaVM *vm, Local<JSValueRef> data, Local<JSValueRef> transfer,
1646 static Local<JSValueRef> DeserializeValue(const EcmaVM *vm, void *recoder, void *hint);
1651 …static void SetUnloadNativeModuleCallback(EcmaVM *vm, const std::function<bool(const std::string &…
1655 static void SetHostEnqueueJob(const EcmaVM* vm, Local<JSValueRef> cb,
1657 static EcmaVM* CreateEcmaVM(const ecmascript::JSRuntimeOptions &options);
1659 static void PostFork(EcmaVM *vm, const RuntimeOption &option);
1664 …static PatchErrorCode LoadPatch(EcmaVM *vm, const std::string &patchFileName, const std::string &b…
1666const std::string &patchFileName, uint8_t *patchBuffer, size_t patchSize,
1667const std::string &baseFileName, uint8_t *baseBuffer, size_t baseSize);
1668 static PatchErrorCode UnloadPatch(EcmaVM *vm, const std::string &patchFileName);
1670 …static bool IsQuickFixCausedException(EcmaVM *vm, Local<ObjectRef> exception, const std::string &p…
1679 static void SetAssetPath(EcmaVM *vm, const std::string &assetPath);
1680 static void SetMockModuleList(EcmaVM *vm, const std::map<std::string, std::string> &list);
1681 static void SetPkgNameList(EcmaVM *vm, const std::map<std::string, std::string> &list);
1682 static std::string GetPkgName(EcmaVM *vm, const std::string &moduleName);
1683 static void SetPkgAliasList(EcmaVM *vm, const std::map<std::string, std::string> &list);
1684 static void SetHmsModuleList(EcmaVM *vm, const std::vector<panda::HmsMap> &list);
1685 …static void SetModuleInfo(EcmaVM *vm, const std::string &assetPath, const std::string &entryPoint);
1686 static void SetpkgContextInfoList(EcmaVM *vm, const std::map<std::string,
1688 static void SetExecuteBufferMode(const EcmaVM *vm);
1690 static void SetWeakFinalizeTaskCallback(EcmaVM *vm, const WeakFinalizeTaskCallback &callback);
1691 static void SetAsyncCleanTaskCallback(EcmaVM *vm, const NativePointerTaskCallback &callback);
1692 static void SetTriggerGCTaskCallback(EcmaVM *vm, const TriggerGCTaskCallback& callback);
1693 static void SetStartIdleMonitorCallback(EcmaVM *vm, const StartIdleMonitorCallback& callback);
1697 static void* GetCurrentTaskInfo(const EcmaVM *vm);
1698 static void ClearCurrentTaskInfo(const EcmaVM *vm);
1699 static void SetBundleName(EcmaVM *vm, const std::string &bundleName);
1701 static void SetModuleName(EcmaVM *vm, const std::string &moduleName);
1704 static std::string NormalizePath(const std::string &string);
1706 static void SynchronizVMInfo(EcmaVM *vm, const EcmaVM *hostVM);
1708 static void SetProfilerState(const EcmaVM *vm, bool value);
1709 …static void SetRequestAotCallback(EcmaVM *vm, const std::function<int32_t(const std::string &bundl…
1710 const std::string &moduleName,
1712 static void SetSearchHapPathTracker(EcmaVM *vm, std::function<bool(const std::string moduleName,
1720 static Local<JSValueRef> NapiHasProperty(const EcmaVM *vm, uintptr_t nativeObj, uintptr_t key);
1721 … static Local<JSValueRef> NapiHasOwnProperty(const EcmaVM *vm, uintptr_t nativeObj, uintptr_t key);
1722 static Local<JSValueRef> NapiGetProperty(const EcmaVM *vm, uintptr_t nativeObj, uintptr_t key);
1723 … static Local<JSValueRef> NapiDeleteProperty(const EcmaVM *vm, uintptr_t nativeObj, uintptr_t key);
1724 …static Local<JSValueRef> NapiGetNamedProperty(const EcmaVM *vm, uintptr_t nativeObj, const char* u…
1726 static Local<JSValueRef> CreateLocal(const EcmaVM *vm, JSValueRef src);
1729 static bool KeyIsNumber(const char* utf8);
1730 static int GetStartRealTime(const EcmaVM *vm);
1731 static void NotifyTaskBegin(const EcmaVM *vm);
1732 static void NotifyTaskFinished(const EcmaVM *vm);
1733 static bool IsMultiThreadCheckEnabled(const EcmaVM *vm);
1738 static bool CreateRuntime(const RuntimeOption &option);
1742 static uintptr_t GetHandleAddr(const EcmaVM *vm, uintptr_t localAddress);
1743 static uintptr_t GetGlobalHandleAddr(const EcmaVM *vm, uintptr_t localAddress);
1744 static uintptr_t SetWeak(const EcmaVM *vm, uintptr_t localAddress);
1745 static uintptr_t SetWeakCallback(const EcmaVM *vm, uintptr_t localAddress, void *ref,
1748 static uintptr_t ClearWeak(const EcmaVM *vm, uintptr_t localAddress);
1749 static bool IsWeak(const EcmaVM *vm, uintptr_t localAddress);
1750 static void DisposeGlobalHandleAddr(const EcmaVM *vm, uintptr_t addr);
1751 static bool IsSerializationTimeoutCheckEnabled(const EcmaVM *vm);
1752 …static void GenerateTimeoutTraceIfNeeded(const EcmaVM *vm, std::chrono::system_clock::time_point &…
1754 …static void UpdateAOTCompileStatus(ecmascript::JSRuntimeOptions &jsOption, const RuntimeOption &op…
1766 Local<JSValueRef> GetHandler(const EcmaVM *vm);
1767 Local<JSValueRef> GetTarget(const EcmaVM *vm);
1773 int32_t GetSize(const EcmaVM *vm);
1774 int32_t GetTotalElements(const EcmaVM *vm);
1775 Local<JSValueRef> GetKey(const EcmaVM *vm, int entry);
1776 Local<JSValueRef> GetValue(const EcmaVM *vm, int entry);
1777 static Local<WeakMapRef> New(const EcmaVM *vm);
1778 void Set(const EcmaVM *vm, const Local<JSValueRef> &key, const Local<JSValueRef> &value);
1779 bool Has(const EcmaVM *vm, Local<JSValueRef> key);
1784 int32_t GetSize(const EcmaVM *vm);
1785 int32_t GetTotalElements(const EcmaVM *vm);
1786 Local<JSValueRef> GetValue(const EcmaVM *vm, int entry);
1787 static Local<SetRef> New(const EcmaVM *vm);
1788 void Add(const EcmaVM *vm, Local<JSValueRef> value);
1793 int32_t GetSize(const EcmaVM *vm);
1794 int32_t GetTotalElements(const EcmaVM *vm);
1795 Local<JSValueRef> GetValue(const EcmaVM *vm, int entry);
1796 static Local<WeakSetRef> New(const EcmaVM *vm);
1797 void Add(const EcmaVM *vm, Local<JSValueRef> value);
1803 Local<JSValueRef> GetKind(const EcmaVM *vm);
1804 static Local<SetIteratorRef> New(const EcmaVM *vm, Local<SetRef> set);
1805 ecmascript::EcmaRuntimeCallInfo *GetEcmaRuntimeCallInfo(const EcmaVM *vm);
1806 …static Local<ArrayRef> Next(const EcmaVM *vm, ecmascript::EcmaRuntimeCallInfo *ecmaRuntimeCallInfo…
1814 static bool RegisterStringCacheTable(const EcmaVM *vm, uint32_t size);
1815 static bool SetCachedString(const EcmaVM *vm, const char *name, uint32_t propertyIndex);
1816 static bool HasCachedString(const EcmaVM *vm, uint32_t propertyIndex);
1817 static Local<StringRef> GetCachedString(const EcmaVM *vm, uint32_t propertyIndex);