Home
last modified time | relevance | path

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

12345678910>>...217

/arkcompiler/ets_frontend/es2panda/test/version_control/API12beta3/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_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…
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…
64 … JSHandle<JSHClass> hclass = JSHandle<JSHClass>()) const;
66 JSHandle<JSFunction> NewBuiltinCjsCtor(const JSHandle<GlobalEnv> &env,
67const JSHandle<JSObject> &prototype, EcmaEntrypoint ctorFunc,
68 std::string_view name, int length) const;
69 …sterBuiltinToGlobal(kungfu::BuiltinsStubCSigns::ID builtinId, JSHandle<JSFunction> function) const;
[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.h71 static const JSTaggedType NULL_POINTER = VALUE_HOLE;
72 static const JSTaggedType INVALID_VALUE_LIMIT = 0x40000ULL;
124 …ARK_INLINE explicit JSTaggedValue(const TaggedObject *v) : value_(static_cast<JSTaggedType>(ToUint… in JSTaggedValue()
152 inline JSTaggedValue CreateAndGetWeakRef() const in CreateAndGetWeakRef()
159 inline JSTaggedValue GetWeakRawValue() const in GetWeakRawValue()
167 ARK_INLINE bool IsWeak() const in IsWeak()
172 ARK_INLINE bool IsDouble() const in IsDouble()
177 ARK_INLINE bool IsInt() const in IsInt()
182 ARK_INLINE bool IsSpecial() const in IsSpecial()
187 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.h67 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_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_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, ObjFuncEmitInfo &objFuncEmitInfo) override;
89 void EmitSpinIntrinsicInsn(const Insn &insn, ObjFuncEmitInfo &objFuncEmitInfo) override;
91 uint32 GetBinaryCodeForInsn(const Insn &insn, const std::vector<uint32> &label2Offset,
92 ObjFuncEmitInfo &objFuncEmitInfo) const;
93 uint32 GetOpndMachineValue(const Operand &opnd) const;
[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.sts20 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/
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/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/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/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/toolchain/tooling/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/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.h27 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/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/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 …]
/arkcompiler/ets_runtime/test/perform/string/
Dstring.js17const 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_runtime/ecmascript/compiler/codegen/maple/mpl2mpl/include/
Dconstantfold.h46 T CalIntValueFromFloatValue(T value, const MIRType &resultType) const;
47 …MIRConst *FoldFloorMIRConst(const MIRConst &cst, PrimType fromType, PrimType toType, bool isFloor …
48 MIRConst *FoldRoundMIRConst(const MIRConst &cst, PrimType fromType, PrimType toType) const;
49 MIRConst *FoldTypeCvtMIRConst(const MIRConst &cst, PrimType fromType, PrimType toType) const;
50 …t *FoldSignExtendMIRConst(Opcode opcode, PrimType resultType, uint8 size, const IntVal &val) const;
51 …static MIRConst *FoldIntConstBinaryMIRConst(Opcode opcode, PrimType resultType, const MIRIntConst …
52 const MIRIntConst &intConst1);
54 const MIRConst &const0, const MIRConst &const1) const;
56 …static MIRIntConst *FoldIntConstUnaryMIRConst(Opcode opcode, PrimType resultType, const MIRIntCons…
58 std::pair<BaseNode*, std::optional<IntVal>> FoldBase(BaseNode *node) const;
[all …]

12345678910>>...217