Home
last modified time | relevance | path

Searched full:const (Results 1 – 25 of 5741) sorted by relevance

12345678910>>...230

/arkcompiler/ets_frontend/es2panda/test/version_control/API12beta3/bytecode_feature/import_target/
Dimport_target.ts17 const defaultImportValue = 'a0';
19 export const a1 = 'a1';
20 export const a2 = 'a2';
21 export const a3 = 'a3';
22 export const a4 = 'a4';
23 export const a5 = 'a5';
24 export const a6 = 'a6';
25 export const a7 = 'a7';
26 export const a8 = 'a8';
27 export const a9 = 'a9';
[all …]
/arkcompiler/ets_frontend/es2panda/test/version_control/API12beta1_and_beta2/bytecode_feature/import_target/
Dimport_target.ts17 export const a1 = 'a1';
18 export const a2 = 'a2';
19 export const a3 = 'a3';
20 export const a4 = 'a4';
21 export const a5 = 'a5';
22 export const a6 = 'a6';
23 export const a7 = 'a7';
24 export const a8 = 'a8';
25 export const a9 = 'a9';
26 export const a10 = 'a10';
[all …]
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins.h48 …void Initialize(const JSHandle<GlobalEnv> &env, JSThread *thread, bool lazyInit = false, bool isRe…
50 void InitializeSharedBitVector(const JSHandle<GlobalEnv> &env,
51 const JSHandle<JSObject> &sObjPrototype,
52 const JSHandle<JSFunction> &sFuncPrototype) const;
59 …JSHandle<JSFunction> NewBuiltinConstructor(const JSHandle<GlobalEnv> &env, const JSHandle<JSObject…
63 … JSHandle<JSHClass> hclass = JSHandle<JSHClass>()) const;
65 JSHandle<JSFunction> NewBuiltinCjsCtor(const JSHandle<GlobalEnv> &env,
66const JSHandle<JSObject> &prototype, EcmaEntrypoint ctorFunc,
67 std::string_view name, int length) const;
68 …void RegisterBuiltinToGlobalEnv(const JSHandle<GlobalEnv> &env, kungfu::BuiltinsStubCSigns::ID bui…
[all …]
/arkcompiler/runtime_core/static_core/runtime/include/
Dlanguage_context.h48 std::vector<const uint8_t *> arrayElementsForVerification;
63 virtual panda_file::SourceLang GetLanguage() const = 0;
65 virtual const uint8_t *GetStringClassDescriptor() const in GetStringClassDescriptor()
70 virtual LangTypeT GetLanguageType() const = 0;
72 virtual const uint8_t *GetObjectClassDescriptor() const = 0;
74 virtual const uint8_t *GetClassClassDescriptor() const = 0;
76 virtual const uint8_t *GetClassArrayClassDescriptor() const = 0;
78 virtual const uint8_t *GetStringArrayClassDescriptor() const = 0;
80 virtual const uint8_t *GetCtorName() const in GetCtorName()
85 virtual const uint8_t *GetCctorName() const in GetCctorName()
[all …]
/arkcompiler/ets_runtime/ecmascript/
Djs_tagged_value.h73 static const JSTaggedType NULL_POINTER = VALUE_HOLE;
74 static const JSTaggedType INVALID_VALUE_LIMIT = 0x40000ULL;
126 …ARK_INLINE explicit JSTaggedValue(const TaggedObject *v) : value_(static_cast<JSTaggedType>(ToUint… in JSTaggedValue()
154 inline JSTaggedValue CreateAndGetWeakRef() const in CreateAndGetWeakRef()
161 inline JSTaggedValue GetWeakRawValue() const in GetWeakRawValue()
169 ARK_INLINE bool IsWeak() const in IsWeak()
174 ARK_INLINE bool IsDouble() const in IsDouble()
179 ARK_INLINE bool IsInt() const in IsInt()
184 ARK_INLINE bool IsSpecial() const in IsSpecial()
189 ARK_INLINE bool IsObject() const in IsObject()
[all …]
Dtagged_list.h29 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 …]
Djs_object.h70 explicit PropertyDescriptor(const JSThread *thread) : thread_(thread) {} in PropertyDescriptor()
72 …PropertyDescriptor(const JSThread *thread, JSHandle<JSTaggedValue> v) : thread_(thread), value_(v)… in PropertyDescriptor()
74 PropertyDescriptor(const JSThread *thread, JSHandle<JSTaggedValue> v, bool w, bool e, bool c) in PropertyDescriptor()
86 PropertyDescriptor(const JSThread *thread, bool w, bool e, bool c) in PropertyDescriptor()
91 inline JSHandle<JSTaggedValue> GetValue() const in GetValue()
99 inline JSHandle<JSTaggedValue> GetKey() const in GetKey()
122 inline SharedFieldType GetSharedFieldType() const in GetSharedFieldType()
127 inline bool IsWritable() const in IsWritable()
138 inline bool IsEnumerable() const in IsEnumerable()
149 inline bool IsConfigurable() const in IsConfigurable()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/aarch64/
Daarch64_obj_emitter.h41 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()
88 void EmitIntrinsicInsn(const Insn &insn, const std::vector<uint32_t> &label2Offset,
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 …]
/arkcompiler/ets_frontend/ets2panda/compiler/core/
DJSCompilerUnreachable.cpp21 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 …]
DETSCompilerUnrechable.cpp20 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 …]
Dpandagen.h58 [[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/
Dnamemangler.h54 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/main/
Dbinary_wrong_types.ets20 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 …]
Dinvalid_identifier.ets20 const asVar: string = '';
22 const internal: string = "internal";
24 const static: string = "static";
26 const as: string = "as";
28 const enum: string = "enum";
30 const launch: string = "launch";
32 const switch: string = "switch";
34 const async: string = "async";
36 const let: string = "let";
38 const super: string = "super";
[all …]
/arkcompiler/runtime_core/static_core/runtime/core/
Dcore_language_context.h35 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/ets_runtime/ecmascript/compiler/
Dgate_accessor.h34 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/ets_frontend/es2panda/compiler/core/
Dpandagen.h75 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/runtime_core/assembler/extensions/
Decmascript_meta.h25 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/toolchain/tooling/dynamic/base/
Dpt_json.h47 static std::unique_ptr<PtJson> Parse(const std::string &data);
50 std::string Stringify() const;
53 bool Add(const char *key, bool value) const;
54 bool Add(const char *key, int32_t value) const;
55 bool Add(const char *key, int64_t value) const;
56 bool Add(const char *key, uint32_t value) const;
57 bool Add(const char *key, double value) const;
58 bool Add(const char *key, const char *value) const;
59 bool Add(const char *key, const std::unique_ptr<PtJson> &value) const;
62 bool Push(bool value) const;
[all …]
/arkcompiler/runtime_core/disassembler/
Ddisassembler.h59 …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::optional<std::string> GetSerializedRecord(const std::string &record_name) const;
[all …]
/arkcompiler/runtime_core/abc2program/
Dprogram_dump.h29 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 DumpLanguage(std::ostream &os, const panda::panda_file::SourceLang lang) const;
35 void DumpProgramLanguage(std::ostream &os) const;
36 void DumpLiteralArrayTable(std::ostream &os) const;
37 void DumpRecordTable(std::ostream &os) const;
38 void DumpRecord(std::ostream &os, const pandasm::Record &record) const;
39 void DumpRecordLanguage(std::ostream &os, const pandasm::Record &record) const;
40 bool DumpRecordMetaData(std::ostream &os, const pandasm::Record &record) const;
[all …]
/arkcompiler/runtime_core/static_core/abc2program/
Dprogram_dump.h27 PandasmProgramDumper(const panda_file::File &file, const AbcStringTable &stringTable) in PandasmProgramDumper()
32 void Dump(std::ostream &os, const pandasm::Program &program) const;
35 bool HasNoAbcInput() const;
36 void DumpAbcFilePath(std::ostream &os) const;
37 void DumpProgramLanguage(std::ostream &os, const pandasm::Program &program) const;
38 void DumpLiteralArrayTable(std::ostream &os, const pandasm::Program &program) const;
39 void DumpLiteralArrayTableWithKey(std::ostream &os, const pandasm::Program &program) const;
40 void DumpLiteralArrayTableWithoutKey(std::ostream &os, const pandasm::Program &program) const;
41 …void DumpLiteralArrayWithKey(std::ostream &os, const std::string &key, const pandasm::LiteralArray…
42 const pandasm::Program &program) const;
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/assembler/aarch64/
Dassembler_aarch64.h29 Register W() const in W()
34 Register X() const in X()
39 RegisterType GetType() const in GetType()
44 inline bool IsSp() const in IsSp()
49 inline bool IsW() const in IsW()
54 inline RegisterId GetId() const in GetId()
59 inline bool IsValid() const in IsValid()
64 inline bool operator !=(const Register &other)
69 inline bool operator ==(const Register &other)
83 inline VectorRegisterId GetId() const in GetId()
[all …]
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/
DenumLowering.h27 static constexpr std::string_view const STRING_REFERENCE_TYPE {"String"};
28 static constexpr std::string_view const IDENTIFIER_I {"i"};
29 static constexpr std::string_view const PARAM_NAME {"name"};
30 static constexpr std::string_view const PARAM_VALUE {"value"};
31 static constexpr std::string_view const PARAM_ORDINAL {"ordinal"};
32 static constexpr std::string_view const STRING_VALUES_ARRAY_NAME {"#StringValuesArray"};
33 static constexpr std::string_view const ITEMS_ARRAY_NAME {"#ItemsArray"};
34 static constexpr std::string_view const NAMES_ARRAY_NAME {"#NamesArray"};
35 static constexpr std::string_view const VALUES_ARRAY_NAME {"#ValuesArray"};
36 static constexpr std::string_view const ORDINAL_NAME {"#ordinal"};
[all …]
/arkcompiler/ets_frontend/ets2panda/checker/ets/
DassignAnalyzer.h40 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 …]

12345678910>>...230