| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins.h | 48 …void Initialize(const JSHandle<GlobalEnv> &env, JSThread *thread, bool lazyInit = false, bool isRe… 51 void InitializeSharedBitVector(const JSHandle<GlobalEnv> &env, 52 const JSHandle<JSObject> &sObjPrototype, 53 const JSHandle<JSFunction> &sFuncPrototype) const; 60 …JSHandle<JSFunction> NewBuiltinConstructor(const JSHandle<GlobalEnv> &env, const JSHandle<JSObject… 63 kungfu::BuiltinsStubCSigns::INVALID) const; 65 JSHandle<JSFunction> NewBuiltinCjsCtor(const JSHandle<GlobalEnv> &env, 66 … const JSHandle<JSObject> &prototype, EcmaEntrypoint ctorFunc, 67 std::string_view name, int length) const; 69 …JSHandle<JSFunction> NewFunction(const JSHandle<GlobalEnv> &env, const JSHandle<JSTaggedValue> &ke… [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/include/ |
| D | language_context.h | 49 std::vector<const uint8_t *> arrayElementsForVerification; 64 virtual panda_file::SourceLang GetLanguage() const = 0; 66 virtual const uint8_t *GetStringClassDescriptor() const in GetStringClassDescriptor() 71 virtual LangTypeT GetLanguageType() const = 0; 73 virtual const uint8_t *GetObjectClassDescriptor() const = 0; 75 virtual const uint8_t *GetClassClassDescriptor() const = 0; 77 virtual const uint8_t *GetClassArrayClassDescriptor() const = 0; 79 virtual const uint8_t *GetStringArrayClassDescriptor() const = 0; 81 virtual const uint8_t *GetCtorName() const in GetCtorName() 86 virtual const uint8_t *GetCctorName() const in GetCctorName() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | js_tagged_value.h | 71 static const JSTaggedType NULL_POINTER = VALUE_HOLE; 72 static const JSTaggedType INVALID_VALUE_LIMIT = 0x40000ULL; 120 …ARK_INLINE explicit JSTaggedValue(const TaggedObject *v) : value_(static_cast<JSTaggedType>(ToUint… in JSTaggedValue() 148 inline JSTaggedValue CreateAndGetWeakRef() const in CreateAndGetWeakRef() 155 inline JSTaggedValue GetWeakRawValue() const in GetWeakRawValue() 163 ARK_INLINE bool IsWeak() const in IsWeak() 168 ARK_INLINE bool IsDouble() const in IsDouble() 173 ARK_INLINE bool IsInt() const in IsInt() 178 ARK_INLINE bool IsSpecial() const in IsSpecial() 183 ARK_INLINE bool IsObject() const in IsObject() [all …]
|
| D | tagged_list.h | 29 static const int NUMBER_OF_NODE_INDEX = 0; 30 static const int NUMBER_OF_DELETED_NODES_INDEX = 1; 31 static const int HEAD_TABLE_INDEX = 2; 32 static const int TAIL_TABLE_INDEX = 3; 33 static const int ELEMENTS_START_INDEX = 4; 34 static const int DEFAULT_ARRAY_LENGHT = 10; 35 static const int NEXT_PTR_OFFSET = 1; 36 static const int PREV_PTR_OFFSET = 2; 38 … static JSHandle<Derived> Create(const JSThread *thread, int numberOfNodes = DEFAULT_ARRAY_LENGHT); 39 …static JSHandle<Derived> GrowCapacity(const JSThread *thread, const JSHandle<Derived> &taggedList); [all …]
|
| D | js_object.h | 67 explicit PropertyDescriptor(const JSThread *thread) : thread_(thread) {} in PropertyDescriptor() 69 …PropertyDescriptor(const JSThread *thread, JSHandle<JSTaggedValue> v) : thread_(thread), value_(v)… in PropertyDescriptor() 71 PropertyDescriptor(const JSThread *thread, JSHandle<JSTaggedValue> v, bool w, bool e, bool c) in PropertyDescriptor() 83 PropertyDescriptor(const JSThread *thread, bool w, bool e, bool c) in PropertyDescriptor() 88 inline JSHandle<JSTaggedValue> GetValue() const in GetValue() 96 inline JSHandle<JSTaggedValue> GetKey() const in GetKey() 119 inline SharedFieldType GetSharedFieldType() const in GetSharedFieldType() 124 inline bool IsWritable() const in IsWritable() 135 inline bool IsEnumerable() const in IsEnumerable() 146 inline bool IsConfigurable() const in IsConfigurable() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/aarch64/ |
| D | aarch64_obj_emitter.h | 41 void HandleLocalBranchFixup(const std::vector<uint32> &label2Offset, 42 const std::vector<uint32> &symbol2Offset) override; 47 AArch64ObjEmitter(CG &cg, const std::string &objFileName) : ObjEmitter(cg, objFileName) {} in AArch64ObjEmitter() 50 void EncodeInstruction(const Insn &insn, const std::vector<uint32> &label2Offset, in EncodeInstruction() 65 uint32 GetInsnSize(const Insn &insn) const override in GetInsnSize() 89 void EmitIntrinsicInsn(const Insn &insn, ObjFuncEmitInfo &objFuncEmitInfo) override; 90 void EmitSpinIntrinsicInsn(const Insn &insn, ObjFuncEmitInfo &objFuncEmitInfo) override; 92 uint32 GetBinaryCodeForInsn(const Insn &insn, const std::vector<uint32> &label2Offset, 93 ObjFuncEmitInfo &objFuncEmitInfo) const; 94 uint32 GetOpndMachineValue(const Operand &opnd) const; [all …]
|
| D | aarch64_ebo.h | 27 …AArch64Ebo(CGFunc &func, MemPool &memPool, LiveAnalysis *live, bool before, const std::string &pha… in AArch64Ebo() 40 int32 GetOffsetVal(const MemOperand &mem) const override; 42 const RegOperand &GetRegOperand(const Operand &opnd) const override; 43 bool IsGlobalNeeded(Insn &insn) const override; 44 bool IsDecoupleStaticOp(Insn &insn) const override; 45 bool OperandEqSpecial(const Operand &op1, const Operand &op2) const override; 52 …bool CombineExtensionAndLoad(Insn *insn, const MapleVector<OpndInfo *> &origInfos, ExtOpTable idx,… 53 bool IsMovToSIMDVmov(Insn &insn, const Insn &replaceInsn) const override; 54 bool IsPseudoRet(Insn &insn) const override; 55 bool IsAdd(const Insn &insn) const override; [all …]
|
| /arkcompiler/ets_frontend/ets2panda/compiler/core/ |
| D | JSCompilerUnreachable.cpp | 21 void JSCompiler::Compile([[maybe_unused]] const ir::NamedType *node) const in Compile() argument 26 void JSCompiler::Compile([[maybe_unused]] const ir::PrefixAssertionExpression *expr) const in Compile() argument 31 void JSCompiler::Compile([[maybe_unused]] const ir::ClassProperty *st) const in Compile() argument 36 void JSCompiler::Compile([[maybe_unused]] const ir::ClassStaticBlock *st) const in Compile() argument 41 void JSCompiler::Compile([[maybe_unused]] const ir::Decorator *st) const in Compile() argument 46 void JSCompiler::Compile([[maybe_unused]] const ir::MethodDefinition *node) const in Compile() argument 51 void JSCompiler::Compile([[maybe_unused]] const ir::Property *expr) const in Compile() argument 56 void JSCompiler::Compile([[maybe_unused]] const ir::ScriptFunction *node) const in Compile() argument 61 void JSCompiler::Compile([[maybe_unused]] const ir::SpreadElement *expr) const in Compile() argument 66 void JSCompiler::Compile([[maybe_unused]] const ir::TemplateElement *expr) const in Compile() argument [all …]
|
| D | ETSCompilerUnrechable.cpp | 20 void ETSCompiler::Compile([[maybe_unused]] const ir::NamedType *node) const in Compile() argument 25 void ETSCompiler::Compile([[maybe_unused]] const ir::PrefixAssertionExpression *expr) const in Compile() argument 30 void ETSCompiler::Compile([[maybe_unused]] const ir::ClassDefinition *node) const in Compile() argument 35 void ETSCompiler::Compile([[maybe_unused]] const ir::ClassStaticBlock *st) const in Compile() argument 40 void ETSCompiler::Compile([[maybe_unused]] const ir::Decorator *st) const in Compile() argument 45 void ETSCompiler::Compile([[maybe_unused]] const ir::MetaProperty *expr) const in Compile() argument 50 void ETSCompiler::Compile([[maybe_unused]] const ir::MethodDefinition *node) const in Compile() argument 55 void ETSCompiler::Compile([[maybe_unused]] const ir::Property *expr) const in Compile() argument 60 void ETSCompiler::Compile([[maybe_unused]] const ir::ScriptFunction *node) const in Compile() argument 65 void ETSCompiler::Compile([[maybe_unused]] const ir::SpreadElement *expr) const in Compile() argument [all …]
|
| D | pandagen.h | 58 [[nodiscard]] FunctionBuilder *FuncBuilder() const noexcept; 59 [[nodiscard]] EnvScope *GetEnvScope() const noexcept; 61 void OptionalChainCheck(bool optional, VReg obj) const; 63 [[nodiscard]] VReg LexEnv() const noexcept; 65 bool FunctionHasFinalizer() const; 70 void StoreAccumulator(const ir::AstNode *node, VReg vreg); 71 void LoadAccumulator(const ir::AstNode *node, VReg reg); 73 [[nodiscard]] IRNode *AllocMov(const ir::AstNode *node, VReg vd, VReg vs) override; 74 [[nodiscard]] IRNode *AllocMov(const ir::AstNode *node, OutVReg vd, VReg vs) override; 75 void MoveVreg(const ir::AstNode *node, VReg vd, VReg vs); [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/include/ |
| D | namemangler.h | 54 static constexpr const char kMuidPrefixStr[] = "__muid_"; 55 static constexpr const char kMuidRoPrefixStr[] = "__muid_ro"; 56 static constexpr const char kMuidFuncDefTabPrefixStr[] = "__muid_func_def_tab"; 57 static constexpr const char kMuidFuncDefOrigTabPrefixStr[] = "__muid_ro_func_def_orig_tab"; 58 static constexpr const char kMuidFuncInfTabPrefixStr[] = "__muid_ro_func_inf_tab"; 59 static constexpr const char kMuidFuncMuidIdxTabPrefixStr[] = "__muid_ro_func_muid_idx_tab"; 60 static constexpr const char kMuidDataDefTabPrefixStr[] = "__muid_data_def_tab"; 61 static constexpr const char kMuidDataDefOrigTabPrefixStr[] = "__muid_ro_data_def_orig_tab"; 62 static constexpr const char kMuidFuncUndefTabPrefixStr[] = "__muid_func_undef_tab"; 63 static constexpr const char kMuidDataUndefTabPrefixStr[] = "__muid_data_undef_tab"; [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/ |
| D | binary_wrong_types.sts | 20 const b0 = true; 22 const c0 = b0 && true; 23 const c1 = true && '3'; 24 const c2 = gets() && false; 25 const c3 = 5 && 6; 27 const d0 = false || b0; 28 const d1 = ~'3' || true; 29 const d2 = false || gets(); 30 const d3 = 4 || 5; 39 const varAny: any = null; [all …]
|
| /arkcompiler/ets_frontend/es2panda/compiler/core/ |
| D | pandagen.h | 75 ArenaVector<const binder::Scope *> variableDebugInfo; 76 const ir::Statement *firstStmt {}; 100 inline ArenaAllocator *Allocator() const in Allocator() 105 inline CompilerContext *Context() const in Context() 110 const ArenaSet<util::StringView> &Strings() const in Strings() 115 const ArenaVector<CatchTable *> &CatchList() const in CatchList() 120 binder::FunctionScope *TopScope() const in TopScope() 125 binder::Scope *Scope() const in Scope() 130 const ir::AstNode *RootNode() const in RootNode() 140 const ArenaList<IRNode *> &Insns() const in Insns() [all …]
|
| /arkcompiler/toolchain/tooling/base/ |
| D | pt_json.h | 46 static std::unique_ptr<PtJson> Parse(const std::string &data); 49 std::string Stringify() const; 52 bool Add(const char *key, bool value) const; 53 bool Add(const char *key, int32_t value) const; 54 bool Add(const char *key, int64_t value) const; 55 bool Add(const char *key, uint32_t value) const; 56 bool Add(const char *key, double value) const; 57 bool Add(const char *key, const char *value) const; 58 bool Add(const char *key, const std::unique_ptr<PtJson> &value) const; 61 bool Push(bool value) const; [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/ |
| D | gate_accessor.h | 34 GateRef State() const in State() 39 GateRef Depend() const in Depend() 69 GateRef GetGate() const in GetGate() 74 size_t GetIndex() const in GetIndex() 95 ConstUseIterator(const Circuit* circuit, const Out* out) : circuit_(circuit), out_(out) in ConstUseIterator() 99 GateRef operator*() const 107 const ConstUseIterator operator++() 117 const ConstUseIterator operator++(int) 124 size_t GetIndex() const in GetIndex() 130 OpCode GetOpCode() const in GetOpCode() [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/core/ |
| D | core_language_context.h | 35 panda_file::SourceLang GetLanguage() const override in GetLanguage() 40 LangTypeT GetLanguageType() const override in GetLanguageType() 45 const uint8_t *GetObjectClassDescriptor() const override in GetObjectClassDescriptor() 50 const uint8_t *GetClassClassDescriptor() const override in GetClassClassDescriptor() 55 const uint8_t *GetClassArrayClassDescriptor() const override in GetClassArrayClassDescriptor() 60 const uint8_t *GetStringArrayClassDescriptor() const override in GetStringArrayClassDescriptor() 65 const uint8_t *GetNullPointerExceptionClassDescriptor() const override in GetNullPointerExceptionClassDescriptor() 70 const uint8_t *GetStackOverflowErrorClassDescriptor() const override in GetStackOverflowErrorClassDescriptor() 75 const uint8_t *GetArrayIndexOutOfBoundsExceptionClassDescriptor() const override in GetArrayIndexOutOfBoundsExceptionClassDescriptor() 80 const uint8_t *GetIndexOutOfBoundsExceptionClassDescriptor() const override in GetIndexOutOfBoundsExceptionClassDescriptor() [all …]
|
| /arkcompiler/runtime_core/assembler/extensions/ |
| D | ecmascript_meta.h | 25 std::string GetBase() const override in GetBase() 35 std::vector<std::string> GetInterfaces() const override in GetInterfaces() 40 bool IsAnnotation() const override in IsAnnotation() 45 bool IsRuntimeAnnotation() const override in IsRuntimeAnnotation() 51 …bool IsAnnotationRecordAttribute([[maybe_unused]] const std::string_view &attribute) const override in IsAnnotationRecordAttribute() 56 bool IsAnnotationIdAttribute([[maybe_unused]] const std::string_view &attribute) const override in IsAnnotationIdAttribute() 61 …bool IsAnnotationElementNameAttribute([[maybe_unused]] const std::string_view &attribute) const ov… in IsAnnotationElementNameAttribute() 66 …bool IsAnnotationElementTypeAttribute([[maybe_unused]] const std::string_view &attribute) const ov… in IsAnnotationElementTypeAttribute() 72 [[maybe_unused]] const std::string_view &attribute) const override in IsAnnotationElementArrayComponentTypeAttribute() 77 …bool IsAnnotationElementValueAttribute([[maybe_unused]] const std::string_view &attribute) const o… in IsAnnotationElementValueAttribute() [all …]
|
| /arkcompiler/runtime_core/disassembler/ |
| D | disassembler.h | 59 …void Disassemble(const std::string &filename_in, const bool quiet = false, const bool skip_strings… 61 …oid Serialize(std::ostream &os, bool add_separators = false, bool print_information = false) const; 63 static inline bool IsPandasmFriendly(const char c); 64 static inline bool IsSystemType(const std::string &type_name); 66 void GetRecord(pandasm::Record *record, const panda_file::File::EntityId &record_id); 67 void AddMethodToTables(const panda_file::File::EntityId &method_id); 68 void GetMethod(pandasm::Function *method, const panda_file::File::EntityId &method_id); 69 void GetLiteralArray(pandasm::LiteralArray *lit_array, size_t index) const; 70 …optional<std::vector<std::string>> GetAnnotationByMethodName(const std::string &method_name) const; 71 std::vector<std::string> GetStrings() const; [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/assembler/aarch64/ |
| D | assembler_aarch64.h | 27 Register W() const in W() 32 Register X() const in X() 37 RegisterType GetType() const in GetType() 42 inline bool IsSp() const in IsSp() 47 inline bool IsW() const in IsW() 52 inline RegisterId GetId() const in GetId() 57 inline bool IsValid() const in IsValid() 62 inline bool operator !=(const Register &other) 67 inline bool operator ==(const Register &other) 81 inline VectorRegisterId GetId() const in GetId() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/napi/include/ |
| D | jsnapi_expo.h | 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() [all …]
|
| /arkcompiler/ets_frontend/ets2panda/checker/ets/ |
| D | assignAnalyzer.h | 40 void Incl(const int id); 41 void InclRange(const int start, const int limit); 42 void ExcludeFrom(const int start); 43 void Excl(const int id); 44 bool IsMember(const int id) const; 45 Set &AndSet(const Set &xs); 46 Set &OrSet(const Set &xs); 47 Set &DiffSet(const Set &xs); 48 int Next(const int id); 51 void InternalAndSet(const Set &xs); [all …]
|
| /arkcompiler/runtime_core/abc2program/ |
| D | program_dump.h | 29 void Dump(std::ostream &os, const pandasm::Program &program); 30 void SetAbcFilePath(const std::string &abc_file_path); 33 void DumpAbcFilePath(std::ostream &os) const; 34 void DumpProgramLanguage(std::ostream &os) const; 35 void DumpLiteralArrayTable(std::ostream &os) const; 36 void DumpRecordTable(std::ostream &os) const; 37 void DumpRecord(std::ostream &os, const pandasm::Record &record) const; 38 bool DumpRecordMetaData(std::ostream &os, const pandasm::Record &record) const; 39 void DumpFieldList(std::ostream &os, const pandasm::Record &record) const; 40 void DumpField(std::ostream &os, const pandasm::Field &field) const; [all …]
|
| /arkcompiler/ets_runtime/test/perform/string/ |
| D | string.js | 17 … const str = "The quick brown fox jumps over the lazy dog. If the dog reacted, was it really lazy?" 18 const time1 = Date.now() 22 const time2 = Date.now() 23 const time3 = time2 - time1; 29 const re = /apples/gi; 30 const str = 'Apples are round, and apples are juicy.'; 31 const time1 = Date.now() 35 const time2 = Date.now() 36 const time3 = time2 - time1; 44 const time1 = Date.now() [all …]
|
| /arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/ |
| D | enumLowering.h | 27 std::string_view Name() const override in Name() 32 …il::UString GetEnumClassName(checker::ETSChecker *checker, const ir::TSEnumDeclaration *const enum… 49 const ir::TSEnumDeclaration *enumDecl; 54 ir::ClassDefinition *CreateClass(ir::TSEnumDeclaration *const enumDecl); 55 ir::ClassProperty *CreateOrdinalField(ir::ClassDefinition *const enumClass); 56 void CreateCCtorForEnumClass(ir::ClassDefinition *const enumClass); 57 void CreateCtorForEnumClass(ir::ClassDefinition *const enumClass); 59 void CreateEnumIntClassFromEnumDeclaration(ir::TSEnumDeclaration *const enumDecl); 60 void CreateEnumStringClassFromEnumDeclaration(ir::TSEnumDeclaration *const enumDecl); 61 static void AppendParentNames(util::UString &qualifiedName, const ir::AstNode *const node); [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/ |
| D | ets_language_context.h | 58 panda_file::SourceLang GetLanguage() const override in GetLanguage() 63 LangTypeT GetLanguageType() const override in GetLanguageType() 68 const uint8_t *GetObjectClassDescriptor() const override in GetObjectClassDescriptor() 73 const uint8_t *GetClassClassDescriptor() const override in GetClassClassDescriptor() 78 const uint8_t *GetClassArrayClassDescriptor() const override in GetClassArrayClassDescriptor() 83 const uint8_t *GetStringArrayClassDescriptor() const override in GetStringArrayClassDescriptor() 88 const uint8_t *GetCtorName() const override in GetCtorName() 93 const uint8_t *GetCctorName() const override in GetCctorName() 98 const uint8_t *GetNullPointerExceptionClassDescriptor() const override in GetNullPointerExceptionClassDescriptor() 103 const uint8_t *GetStackOverflowErrorClassDescriptor() const override in GetStackOverflowErrorClassDescriptor() [all …]
|