• Home
  • Raw
  • Download

Lines Matching full:const

77     className(const className &) = delete; \
78 className &operator=(const className &) = delete
91 inline Local(const Local<S> &current) : address_(reinterpret_cast<uintptr_t>(*current)) in Local()
96 Local(const EcmaVM *vm, const Global<T> &current);
98 Local(const EcmaVM *vm, const CopyableGlobal<T> &current);
102 inline T *operator*() const
107 inline T *operator->() const
112 inline bool IsEmpty() const in IsEmpty()
117 inline bool IsNull() const in IsNull()
124 inline T *GetAddress() const in GetAddress()
153 inline CopyableGlobal(const CopyableGlobal &that) in CopyableGlobal()
158 inline CopyableGlobal &operator=(const CopyableGlobal &that)
176 CopyableGlobal(const EcmaVM *vm, const Local<S> &current);
178 CopyableGlobal(const EcmaVM *vm, const Local<T> &current);
181 CopyableGlobal(const CopyableGlobal<S> &that) in CopyableGlobal()
191 Local<T> ToLocal() const in ToLocal()
204 inline T *operator*() const
209 inline T *operator->() const
214 inline bool IsEmpty() const in IsEmpty()
223 bool IsWeak() const;
225 const EcmaVM *GetEcmaVM() const in GetEcmaVM()
231 inline T *GetAddress() const in GetAddress()
235 inline void Copy(const CopyableGlobal &that);
237 inline void Copy(const CopyableGlobal<S> &that);
241 const EcmaVM *vm_ {nullptr};
249 inline Global(const Global &that) in Global()
254 inline Global &operator=(const Global &that)
272 Global(const EcmaVM *vm, const Local<S> &current);
274 Global(const EcmaVM *vm, const Global<S> &current);
278 Local<T> ToLocal() const in ToLocal()
286 Local<T> ToLocal(const EcmaVM *vm) const in ToLocal()
299 inline T *operator*() const
304 inline T *operator->() const
309 inline bool IsEmpty() const in IsEmpty()
320 bool IsWeak() const;
323 inline T *GetAddress() const in GetAddress()
327 inline void Update(const Global &that);
329 const EcmaVM *vm_ {nullptr};
335 explicit LocalScope(const EcmaVM *vm);
339 inline LocalScope(const EcmaVM *vm, JSTaggedType value);
350 explicit EscapeLocalScope(const EcmaVM *vm);
372 explicit JSExecutionScope(const EcmaVM *vm);
384 static Local<PrimitiveRef> Undefined(const EcmaVM *vm);
385 static Local<PrimitiveRef> Null(const EcmaVM *vm);
386 static Local<PrimitiveRef> True(const EcmaVM *vm);
387 static Local<PrimitiveRef> False(const EcmaVM *vm);
390 int64_t IntegerValue(const EcmaVM *vm);
391 uint32_t Uint32Value(const EcmaVM *vm);
392 int32_t Int32Value(const EcmaVM *vm);
394 Local<NumberRef> ToNumber(const EcmaVM *vm);
395 Local<BooleanRef> ToBoolean(const EcmaVM *vm);
396 Local<StringRef> ToString(const EcmaVM *vm);
397 Local<ObjectRef> ToObject(const EcmaVM *vm);
398 Local<NativePointerRef> ToNativePointer(const EcmaVM *vm);
413 bool IsArray(const EcmaVM *vm);
471 bool IsStrictEquals(const EcmaVM *vm, Local<JSValueRef> value);
472 Local<StringRef> Typeof(const EcmaVM *vm);
473 bool InstanceOf(const EcmaVM *vm, Local<JSValueRef> value);
486 Local<JSValueRef> GetValue(const EcmaVM *vm);
491 static Local<IntegerRef> New(const EcmaVM *vm, int input);
492 static Local<IntegerRef> NewFromUnsigned(const EcmaVM *vm, unsigned int input);
498 static Local<NumberRef> New(const EcmaVM *vm, double input);
499 static Local<NumberRef> New(const EcmaVM *vm, int32_t input);
500 static Local<NumberRef> New(const EcmaVM *vm, uint32_t input);
501 static Local<NumberRef> New(const EcmaVM *vm, int64_t input);
508 static Local<BigIntRef> New(const EcmaVM *vm, uint64_t input);
509 static Local<BigIntRef> New(const EcmaVM *vm, int64_t input);
510 …static Local<JSValueRef> CreateBigWords(const EcmaVM *vm, bool sign, uint32_t size, const uint64_t…
511 void BigIntToInt64(const EcmaVM *vm, int64_t *cValue, bool *lossless);
512 void BigIntToUint64(const EcmaVM *vm, uint64_t *cValue, bool *lossless);
519 static Local<BooleanRef> New(const EcmaVM *vm, bool input);
530 static Local<StringRef> NewFromUtf8(const EcmaVM *vm, const char *utf8, int length = -1);
535 static Local<StringRef> GetNapiWrapperString(const EcmaVM *vm);
540 static Local<SymbolRef> New(const EcmaVM *vm, Local<StringRef> description);
541 Local<StringRef> GetDescription(const EcmaVM *vm);
547 …static Local<NativePointerRef> New(const EcmaVM *vm, void *nativePointer, size_t nativeBindingsize…
548 …static Local<NativePointerRef> New(const EcmaVM *vm, void *nativePointer, NativePointerCallback ca…
572 bool IsWritable() const in IsWritable()
581 bool IsEnumerable() const in IsEnumerable()
590 bool IsConfigurable() const in IsConfigurable()
599 bool HasWritable() const in HasWritable()
603 bool HasConfigurable() const in HasConfigurable()
607 bool HasEnumerable() const in HasEnumerable()
611 Local<JSValueRef> GetValue(const EcmaVM *vm) const in GetValue()
622 inline bool HasValue() const in HasValue()
626 Local<JSValueRef> GetGetter(const EcmaVM *vm) const in GetGetter()
637 bool HasGetter() const in HasGetter()
641 Local<JSValueRef> GetSetter(const EcmaVM *vm) const in GetSetter()
652 bool HasSetter() const in HasSetter()
676 static Local<ObjectRef> New(const EcmaVM *vm);
677 static Local<ObjectRef> New(const EcmaVM *vm, void *attach, void *detach);
678 bool Set(const EcmaVM *vm, void *attach, void *detach);
679 bool Set(const EcmaVM *vm, Local<JSValueRef> key, Local<JSValueRef> value);
680 bool Set(const EcmaVM *vm, uint32_t key, Local<JSValueRef> value);
681 bool SetAccessorProperty(const EcmaVM *vm, Local<JSValueRef> key, Local<FunctionRef> getter,
683 Local<JSValueRef> Get(const EcmaVM *vm, Local<JSValueRef> key);
684 Local<JSValueRef> Get(const EcmaVM *vm, int32_t key);
686 bool GetOwnProperty(const EcmaVM *vm, Local<JSValueRef> key, PropertyAttribute &property);
687 Local<ArrayRef> GetOwnPropertyNames(const EcmaVM *vm);
688 Local<ArrayRef> GetOwnEnumerablePropertyNames(const EcmaVM *vm);
689 Local<JSValueRef> GetPrototype(const EcmaVM *vm);
691 bool DefineProperty(const EcmaVM *vm, Local<JSValueRef> key, PropertyAttribute attribute);
693 bool Has(const EcmaVM *vm, Local<JSValueRef> key);
694 bool Has(const EcmaVM *vm, uint32_t key);
696 bool Delete(const EcmaVM *vm, Local<JSValueRef> key);
697 bool Delete(const EcmaVM *vm, uint32_t key);
715 …Local<JSValueRef> Call(const EcmaVM *vm, Local<JSValueRef> thisObj, const Local<JSValueRef> argv[],
717 Local<JSValueRef> Constructor(const EcmaVM *vm, const Local<JSValueRef> argv[], int32_t length);
719 Local<JSValueRef> GetFunctionPrototype(const EcmaVM *vm);
722 bool Inherit(const EcmaVM *vm, Local<FunctionRef> parent);
723 void SetName(const EcmaVM *vm, Local<StringRef> name);
724 Local<StringRef> GetName(const EcmaVM *vm);
725 Local<StringRef> GetSourceCode(const EcmaVM *vm, int lineNumber);
726 bool IsNative(const EcmaVM *vm);
731 static Local<ArrayRef> New(const EcmaVM *vm, uint32_t length = 0);
732 int32_t Length(const EcmaVM *vm);
733 …static bool SetValueAt(const EcmaVM *vm, Local<JSValueRef> obj, uint32_t index, Local<JSValueRef> …
734 static Local<JSValueRef> GetValueAt(const EcmaVM *vm, Local<JSValueRef> obj, uint32_t index);
739 Local<PromiseRef> Catch(const EcmaVM *vm, Local<FunctionRef> handler);
740 Local<PromiseRef> Then(const EcmaVM *vm, Local<FunctionRef> handler);
741 Local<PromiseRef> Finally(const EcmaVM *vm, Local<FunctionRef> handler);
742 …Local<PromiseRef> Then(const EcmaVM *vm, Local<FunctionRef> onFulfilled, Local<FunctionRef> onReje…
747 static Local<PromiseCapabilityRef> New(const EcmaVM *vm);
748 bool Resolve(const EcmaVM *vm, Local<JSValueRef> value);
749 bool Reject(const EcmaVM *vm, Local<JSValueRef> reason);
750 Local<PromiseRef> GetPromise(const EcmaVM *vm);
755 static Local<ArrayBufferRef> New(const EcmaVM *vm, int32_t length);
756 …static Local<ArrayBufferRef> New(const EcmaVM *vm, void *buffer, int32_t length, const Deleter &de…
759 int32_t ByteLength(const EcmaVM *vm);
765 …static Local<DataViewRef> New(const EcmaVM *vm, Local<ArrayBufferRef> arrayBuffer, uint32_t byteOf…
769 Local<ArrayBufferRef> GetArrayBuffer(const EcmaVM *vm);
774 uint32_t ByteLength(const EcmaVM *vm);
775 uint32_t ByteOffset(const EcmaVM *vm);
776 uint32_t ArrayLength(const EcmaVM *vm);
777 Local<ArrayBufferRef> GetArrayBuffer(const EcmaVM *vm);
782 …static Local<Int8ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffset,…
787 …static Local<Uint8ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffset…
792 …static Local<Uint8ClampedArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byt…
798 …static Local<Int16ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffset…
803 …static Local<Uint16ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffse…
809 …static Local<Int32ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffset…
814 …static Local<Uint32ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffse…
820 …static Local<Float32ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffs…
826 …static Local<Float64ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffs…
832 …static Local<BigInt64ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOff…
838 …static Local<BigUint64ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOf…
844 Local<StringRef> GetOriginalSource(const EcmaVM *vm);
846 Local<JSValueRef> IsGlobal(const EcmaVM *vm);
847 Local<JSValueRef> IsIgnoreCase(const EcmaVM *vm);
848 Local<JSValueRef> IsMultiline(const EcmaVM *vm);
849 Local<JSValueRef> IsDotAll(const EcmaVM *vm);
850 Local<JSValueRef> IsUtf16(const EcmaVM *vm);
851 Local<JSValueRef> IsStick(const EcmaVM *vm);
856 static Local<DateRef> New(const EcmaVM *vm, double time);
857 Local<StringRef> ToString(const EcmaVM *vm);
865 Local<JSValueRef> Get(const EcmaVM *vm, Local<JSValueRef> key);
866 Local<JSValueRef> GetKey(const EcmaVM *vm, int entry);
867 Local<JSValueRef> GetValue(const EcmaVM *vm, int entry);
868 static Local<MapRef> New(const EcmaVM *vm);
869 void Set(const EcmaVM *vm, Local<JSValueRef> key, Local<JSValueRef> value);
876 Local<JSValueRef> GetValue(const EcmaVM *vm, int entry);
882 Local<JSValueRef> GetKind(const EcmaVM *vm);
888 Local<JSValueRef> GetKind(const EcmaVM *vm);
898 Local<JSValueRef> GetGeneratorState(const EcmaVM *vm);
899 Local<JSValueRef> GetGeneratorFunction(const EcmaVM *vm);
900 Local<JSValueRef> GetGeneratorReceiver(const EcmaVM *vm);
905 Local<JSValueRef> GetCompareFunction(const EcmaVM *vm);
910 Local<JSValueRef> GetFormatFunction(const EcmaVM *vm);
915 Local<JSValueRef> GetFormatFunction(const EcmaVM *vm);
920 static Local<JSValueRef> Parse(const EcmaVM *vm, Local<StringRef> string);
921 static Local<JSValueRef> Stringify(const EcmaVM *vm, Local<JSValueRef> json);
926 static Local<JSValueRef> Error(const EcmaVM *vm, Local<StringRef> message);
927 static Local<JSValueRef> RangeError(const EcmaVM *vm, Local<StringRef> message);
928 static Local<JSValueRef> ReferenceError(const EcmaVM *vm, Local<StringRef> message);
929 static Local<JSValueRef> SyntaxError(const EcmaVM *vm, Local<StringRef> message);
930 static Local<JSValueRef> TypeError(const EcmaVM *vm, Local<StringRef> message);
931 static Local<JSValueRef> AggregateError(const EcmaVM *vm, Local<StringRef> message);
932 static Local<JSValueRef> EvalError(const EcmaVM *vm, Local<StringRef> message);
933 static Local<JSValueRef> OOMError(const EcmaVM *vm, Local<StringRef> message);
936 using LOG_PRINT = int (*)(int id, int level, const char *tag, const char *fmt, const char *message);
969 void SetDebuggerLibraryPath(const std::string &path) in SetDebuggerLibraryPath()
1005 void SetAsmOpcodeDisableRange(const std::string &value) in SetAsmOpcodeDisableRange()
1015 bool GetIsWorker() const in GetIsWorker()
1020 void SetBundleName(const std::string &value) in SetBundleName()
1030 void SetAnDir(const std::string &value) in SetAnDir()
1041 void SetProfileDir(const std::string &value) in SetProfileDir()
1047 std::string GetGcType() const in GetGcType()
1066 std::string GetLogLevel() const in GetLogLevel()
1089 uint32_t GetGcPoolSize() const in GetGcPoolSize()
1094 LOG_PRINT GetLogBufPrint() const in GetLogBufPrint()
1099 std::string GetDebuggerLibraryPath() const in GetDebuggerLibraryPath()
1104 bool GetEnableArkTools() const in GetEnableArkTools()
1109 bool GetEnableCpuprofiler() const in GetEnableCpuprofiler()
1114 int GetArkProperties() const in GetArkProperties()
1119 std::string GetArkBundleName() const in GetArkBundleName()
1124 size_t GetGcThreadNum() const in GetGcThreadNum()
1129 size_t GetLongPauseTime() const in GetLongPauseTime()
1134 bool GetEnableAsmInterpreter() const in GetEnableAsmInterpreter()
1139 std::string GetAsmOpcodeDisableRange() const in GetAsmOpcodeDisableRange()
1144 std::string GetBundleName() const in GetBundleName()
1149 bool GetEnableAOT() const in GetEnableAOT()
1154 std::string GetAnDir() const in GetAnDir()
1159 bool GetEnableProfile() const in GetEnableProfile()
1164 std::string GetProfileDir() const in GetProfileDir()
1197 Local<JSValueRef> GetPromise() const;
1198 Local<JSValueRef> GetReason() const;
1199 PromiseRejectInfo::PROMISE_REJECTION_EVENT GetOperation() const;
1200 void* GetData() const;
1216 static EcmaVM *CreateJSVM(const RuntimeOption &option);
1221 static void LoadAotFile(EcmaVM *vm, const std::string &hapPath);
1224 …static bool Execute(EcmaVM *vm, const std::string &fileName, const std::string &entry, bool needUp…
1225 static bool Execute(EcmaVM *vm, const uint8_t *data, int32_t size, const std::string &entry,
1226 const std::string &filename = "", bool needUpdate = false);
1228 …static bool ExecuteModuleBuffer(EcmaVM *vm, const uint8_t *data, int32_t size, const std::string &…
1230 …static bool ExecuteModuleFromBuffer(EcmaVM *vm, const void *data, int32_t size, const std::string …
1231 …static Local<ObjectRef> GetExportObject(EcmaVM *vm, const std::string &file, const std::string &ke…
1232 …static Local<ObjectRef> GetExportObjectFromBuffer(EcmaVM *vm, const std::string &file, const std::…
1235 static Local<ObjectRef> GetGlobalObject(const EcmaVM *vm);
1236 static void ExecutePendingJob(const EcmaVM *vm);
1240 static void TriggerGC(const EcmaVM *vm, TRIGGER_GC_TYPE gcType = TRIGGER_GC_TYPE::SEMI_GC);
1242 static void ThrowException(const EcmaVM *vm, Local<JSValueRef> error);
1243 static Local<ObjectRef> GetAndClearUncaughtException(const EcmaVM *vm);
1244 static Local<ObjectRef> GetUncaughtException(const EcmaVM *vm);
1245 static bool HasPendingException(const EcmaVM *vm);
1248 …static bool StartDebugger(const char *libraryPath, EcmaVM *vm, bool isDebugMode, int32_t instanceI…
1249 const DebuggerPostTask &debuggerPostTask = {});
1252 const DebuggerPostTask &debuggerPostTask = {});
1255 static bool IsMixedDebugEnabled(const EcmaVM *vm);
1256 static void NotifyNativeCalling(const EcmaVM *vm, const void *nativeAddress);
1258 … static void* SerializeValue(const EcmaVM *vm, Local<JSValueRef> data, Local<JSValueRef> transfer);
1259 static Local<JSValueRef> DeserializeValue(const EcmaVM *vm, void *recoder, void *hint);
1265 static void SetHostEnqueueJob(const EcmaVM* vm, Local<JSValueRef> cb);
1266 static void InitializeIcuData(const ecmascript::JSRuntimeOptions &options);
1268 static void InitializePGOProfiler(const ecmascript::JSRuntimeOptions &options);
1272 static EcmaVM* CreateEcmaVM(const ecmascript::JSRuntimeOptions &options);
1274 static void PostFork(EcmaVM *vm, const RuntimeOption &option);
1278 …static bool LoadPatch(EcmaVM *vm, const std::string &patchFileName, const std::string &baseFileNam…
1279 …static bool LoadPatch(EcmaVM *vm, const std::string &patchFileName, const void *patchBuffer, size_…
1280 const std::string &baseFileName);
1281 static bool UnloadPatch(EcmaVM *vm, const std::string &patchFileName);
1283 …static bool IsQuickFixCausedException(EcmaVM *vm, Local<ObjectRef> exception, const std::string &p…
1288 static void SetAssetPath(EcmaVM *vm, const std::string &assetPath);
1301 static bool CreateRuntime(const RuntimeOption &option);
1304 static uintptr_t GetHandleAddr(const EcmaVM *vm, uintptr_t localAddress);
1305 static uintptr_t GetGlobalHandleAddr(const EcmaVM *vm, uintptr_t localAddress);
1306 static uintptr_t SetWeak(const EcmaVM *vm, uintptr_t localAddress);
1307 static uintptr_t SetWeakCallback(const EcmaVM *vm, uintptr_t localAddress, void *ref,
1309 static uintptr_t ClearWeak(const EcmaVM *vm, uintptr_t localAddress);
1310 static bool IsWeak(const EcmaVM *vm, uintptr_t localAddress);
1311 static void DisposeGlobalHandleAddr(const EcmaVM *vm, uintptr_t addr);
1329 inline JSThread *GetThread() const in GetThread()
1334 EcmaVM *GetVM() const;
1336 inline uint32_t GetArgsNumber() const in GetArgsNumber()
1341 inline void* GetData() const in GetData()
1346 inline Local<JSValueRef> GetFunctionRef() const in GetFunctionRef()
1351 inline Local<JSValueRef> GetNewTargetRef() const in GetNewTargetRef()
1356 inline Local<JSValueRef> GetThisRef() const in GetThisRef()
1361 inline Local<JSValueRef> GetCallArgRef(uint32_t idx) const in GetCallArgRef()
1369 Local<JSValueRef> GetArgRef(uint32_t idx) const in GetArgRef()
1374 uintptr_t GetArgAddress(uint32_t idx) const in GetArgAddress()
1392 Global<T>::Global(const EcmaVM *vm, const Local<S> &current) : vm_(vm) in Global()
1401 Global<T>::Global(const EcmaVM *vm, const Global<S> &current) : vm_(vm) in Global()
1409 CopyableGlobal<T>::CopyableGlobal(const EcmaVM *vm, const Local<T> &current) : vm_(vm) in CopyableGlobal()
1418 CopyableGlobal<T>::CopyableGlobal(const EcmaVM *vm, const Local<S> &current) : vm_(vm) in CopyableGlobal()
1426 void CopyableGlobal<T>::Copy(const CopyableGlobal &that) in Copy()
1438 void CopyableGlobal<T>::Copy(const CopyableGlobal<S> &that) in Copy()
1480 bool CopyableGlobal<T>::IsWeak() const in IsWeak()
1486 void Global<T>::Update(const Global &that) in Update()
1524 bool Global<T>::IsWeak() const in IsWeak()
1531 Local<T>::Local(const EcmaVM *vm, const CopyableGlobal<T> &current) in Local()
1537 Local<T>::Local(const EcmaVM *vm, const Global<T> &current) in Local()