| /arkcompiler/ets_runtime/ecmascript/ic/ |
| D | profile_type_info.h | 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 36 static inline bool IsNamedGlobalIC(ICKind kind) in IsNamedGlobalIC() argument 38 return (kind == ICKind::NamedGlobalLoadIC) || (kind == ICKind::NamedGlobalStoreIC) || in IsNamedGlobalIC() 39 (kind == ICKind::NamedGlobalTryLoadIC) || (kind == ICKind::NamedGlobalTryStoreIC); in IsNamedGlobalIC() 42 static inline bool IsValueGlobalIC(ICKind kind) in IsValueGlobalIC() argument 44 return (kind == ICKind::GlobalLoadIC) || (kind == ICKind::GlobalStoreIC); in IsValueGlobalIC() 47 static inline bool IsValueNormalIC(ICKind kind) in IsValueNormalIC() argument 49 return (kind == ICKind::LoadIC) || (kind == ICKind::StoreIC); in IsValueNormalIC() 52 static inline bool IsValueIC(ICKind kind) in IsValueIC() argument 54 return IsValueNormalIC(kind) || IsValueGlobalIC(kind); in IsValueIC() [all …]
|
| D | ic_runtime.h | 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 32 …CRuntime(JSThread *thread, JSHandle<ProfileTypeInfo> profileTypeInfo, uint32_t slotId, ICKind kind) in ICRuntime() argument 33 : thread_(thread), icAccessor_(thread, profileTypeInfo, slotId, kind) in ICRuntime() 67 …CRuntime(JSThread *thread, JSHandle<ProfileTypeInfo> profileTypeInfo, uint32_t slotId, ICKind kind) in LoadICRuntime() argument 68 : ICRuntime(thread, profileTypeInfo, slotId, kind) in LoadICRuntime() 79 …CRuntime(JSThread *thread, JSHandle<ProfileTypeInfo> profileTypeInfo, uint32_t slotId, ICKind kind) in StoreICRuntime() argument 80 : ICRuntime(thread, profileTypeInfo, slotId, kind) in StoreICRuntime()
|
| D | ic_runtime.cpp | 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 133 auto kind = ICKindToString(GetICKind()); in TraceIC() local 137 LOG_ECMA(ERROR) << kind << " miss key is: " << EcmaStringAccessor(keyStrHandle).ToCString() in TraceIC() 141 LOG_ECMA(ERROR) << kind << " miss " << ", state is " in TraceIC() 155 ICKind kind = GetICKind(); in LoadMiss() local 157 if (kind == ICKind::NamedGlobalLoadIC || kind == ICKind::NamedGlobalTryLoadIC) { in LoadMiss() 170 if (!op.IsFound() && kind == ICKind::NamedGlobalTryLoadIC) { in LoadMiss() 199 ICKind kind = GetICKind(); in StoreMiss() local 201 if (kind == ICKind::NamedGlobalStoreIC || kind == ICKind::NamedGlobalTryStoreIC) { in StoreMiss() 217 if (kind == ICKind::NamedGlobalStoreIC) { in StoreMiss() [all …]
|
| /arkcompiler/runtime_core/compiler/optimizer/ir/ |
| D | locations.h | 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 44 enum class Kind : uint8_t { enum 53 Location() : Location(Kind::INVALID) {} in Location() 54 …explicit Location(Kind type, uintptr_t value = 0) : bit_fields_(KindField::Encode(type) | ValueFie… 87 return GetKind() == Kind::INVALID; in IsInvalid() 92 return GetKind() == Kind::IMMEDIATE; in IsConstant() 97 return GetKind() == Kind::REGISTER; in IsRegister() 102 return GetKind() == Kind::FP_REGISTER; in IsFpRegister() 107 return GetKind() == Kind::STACK; in IsStack() 112 return GetKind() == Kind::STACK_ARGUMENT; in IsStackArgument() [all …]
|
| D | locations.cpp | 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 33 case Kind::REGISTER: in Dump() 34 case Kind::FP_REGISTER: in Dump() 43 case Kind::STACK: in Dump() 44 case Kind::STACK_PARAMETER: in Dump() 45 case Kind::STACK_ARGUMENT: in Dump()
|
| /arkcompiler/runtime_core/verification/type/ |
| D | type_systems.cpp | 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 37 explicit FullTypeSystem(TypeSystemKind kind, ThreadNum threadnum) in FullTypeSystem() argument 42 type_system_ {bot_sort_, top_sort_, threadnum, kind} 85 for (auto kind : {TypeSystemKind::PANDA, TypeSystemKind::JAVA}) { 86 type_systems[kind].reserve(numThreads); 88 type_systems[kind].emplace_back(kind, threadNum); 98 FullTypeSystem &GetFullTypeSystem(TypeSystemKind kind, ThreadNum threadNum) in GetFullTypeSystem() 100 return type_systems[kind][threadNum]; in GetFullTypeSystem() 138 SortIdx TypeSystems::GetSort(TypeSystemKind kind, ThreadNum threadnum, const PandaString &name) in GetSort() argument 141 return impl->GetFullTypeSystem(kind, threadnum).GetSort(name); in GetSort() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | js_function.h | 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 81 FunctionKind kind = FunctionKind::NORMAL_FUNCTION); 158 FunctionKind kind = GetFunctionKind(); in IsBase() local 159 return kind <= FunctionKind::CLASS_CONSTRUCTOR; in IsBase() 164 FunctionKind kind = GetFunctionKind(); in IsDerivedConstructor() local 165 return kind == FunctionKind::DERIVED_CONSTRUCTOR; in IsDerivedConstructor() 168 inline static bool IsArrowFunction(FunctionKind kind) in IsArrowFunction() argument 170 … return (kind >= FunctionKind::ARROW_FUNCTION) && (kind <= FunctionKind::ASYNC_ARROW_FUNCTION); in IsArrowFunction() 173 inline static bool IsClassConstructor(FunctionKind kind) in IsClassConstructor() argument 175 … return (kind == FunctionKind::CLASS_CONSTRUCTOR) || (kind == FunctionKind::DERIVED_CONSTRUCTOR); in IsClassConstructor() [all …]
|
| /arkcompiler/runtime_core/irtoc/lang/ |
| D | function.rb | 12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 attr_reader :kind, :depth accessor in CfBlock 26 module Kind module in CfBlock 32 def initialize(kind, depth) argument 33 @kind = kind 41 if @kind == Kind::While 49 …pc_map ||= { If: Kind::IfThen, IfImm: Kind::IfThen, Else: Kind::IfElse, While: Kind::While, AddOve… 141 … raise "Wrong place of `WhilePhi` instruction" unless @cf_stack[-1].kind == CfBlock::Kind::While 354 return block if block.depth == else_depth && block.kind == CfBlock::Kind::IfThen 381 … !last_block.nil? && @current_depth == last_block.depth && last_block.kind == CfBlock::Kind::IfElse [all …]
|
| /arkcompiler/runtime_core/verification/config/whitelist/ |
| D | whitelist.cpp | 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 24 bool InWhitelist(WhitelistKind kind, uint64_t id) in InWhitelist() argument 27 return whitelist.isNotEmpty && whitelist.Id[static_cast<size_t>(kind)]->count(id) > 0; in InWhitelist() 30 void AddWhitelistMethodConfig(WhitelistKind kind, const PandaString &name) in AddWhitelistMethodConfig() argument 33 whitelist.Names[static_cast<size_t>(kind)].push_back(name); in AddWhitelistMethodConfig() 43 for (auto kind : kindsToAdd) { in InsertIntoWhitelist() local 44 auto k = static_cast<size_t>(kind); in InsertIntoWhitelist()
|
| /arkcompiler/ets_frontend/es2panda/ir/statements/ |
| D | variableDeclaration.cpp | 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 35 const char *kind = nullptr; in Dump() local 39 kind = "const"; in Dump() 43 kind = "let"; in Dump() 47 kind = "var"; in Dump() 57 {"kind", kind}, in Dump()
|
| /arkcompiler/ets_frontend/ts2panda/src/ |
| D | syntaxCheckHelper.ts | 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 34 return node.kind === ts.SyntaxKind.NewExpression || node.kind === ts.SyntaxKind.CallExpression; 77 export function isLeftHandSideExpressionKind(kind: ts.SyntaxKind) { 78 switch (kind) { 114 return isLeftHandSideExpressionKind(ts.skipPartiallyEmittedExpressions(node).kind); 135 switch (node.kind) { 154 switch (node.kind) { 187 switch (node.kind) { 209 while ((parent) && (parent.kind != ts.SyntaxKind.Block)) { 221 switch (node.kind) { [all …]
|
| D | assemblyDumper.ts | 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 91 if (node.kind === IRNodeKind.VREG || node.kind === IRNodeKind.IMM) { 94 if (node.kind === IRNodeKind.LABEL) { 109 let kind = format[j][0]; 112 if (kind == OperandKind.Imm) { 115 } else if (kind == OperandKind.Id) { 117 } else if (kind == OperandKind.StringId) { 121 } else if (kind == OperandKind.DstVReg 122 || kind == OperandKind.SrcDstVReg 123 || kind == OperandKind.SrcVReg) { [all …]
|
| /arkcompiler/ets_frontend/es2panda/ir/base/ |
| D | methodDefinition.cpp | 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 49 const char *kind = nullptr; in Dump() local 53 kind = "constructor"; in Dump() 57 kind = "method"; in Dump() 61 kind = "get"; in Dump() 65 kind = "set"; in Dump() 75 {"kind", kind}, in Dump()
|
| D | metaProperty.cpp | 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 28 const char *kind = nullptr; in Dump() local 32 kind = "new.Target"; in Dump() 36 kind = "import.Meta"; in Dump() 44 dumper->Add({{"type", "MetaProperty"}, {"kind", kind}}); in Dump()
|
| D | property.h | 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 48 …explicit Property(PropertyKind kind, Expression *key, Expression *value, bool isMethod, bool isCom… in Property() argument 50 kind_(kind), in Property() 79 PropertyKind Kind() const in Kind() function 104 static bool IsAccessorKind(PropertyKind kind) in IsAccessorKind() argument 106 return kind == PropertyKind::GET || kind == PropertyKind::SET; in IsAccessorKind()
|
| D | property.cpp | 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 98 const char *kind = nullptr; in Dump() local 102 kind = "init"; in Dump() 106 kind = "proto"; in Dump() 110 kind = "get"; in Dump() 114 kind = "set"; in Dump() 128 {"kind", kind}}); in Dump()
|
| /arkcompiler/runtime_core/runtime/include/ |
| D | stack_walker.h | 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 209 template <FrameKind kind> 213 static_assert(BoundaryFrame<kind>::FP_OFFSET == 0); in GetPrevFromBoundary() 218 template <FrameKind kind> 221 auto frame_method = reinterpret_cast<uintptr_t>(GetMethodFromBoundary<kind>(ptr)); in GetBoundaryFrameMethod() 225 template <FrameKind kind> 228 if constexpr (kind == FrameKind::INTERPRETER) { // NOLINT in IsBoundaryFrame() 229 return GetBoundaryFrameMethod<kind>(ptr) == COMPILED_CODE_TO_INTERPRETER; in IsBoundaryFrame() 231 return GetBoundaryFrameMethod<kind>(ptr) == INTERPRETER_TO_COMPILED_CODE; in IsBoundaryFrame() 319 template <FrameKind kind> [all …]
|
| /arkcompiler/ets_runtime/ecmascript/jspandafile/ |
| D | js_pandafile.cpp | 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 297 FunctionKind kind; in GetFunctionKind() local 301 kind = FunctionKind::BASE_CONSTRUCTOR; in GetFunctionKind() 304 kind = FunctionKind::ARROW_FUNCTION; in GetFunctionKind() 307 kind = FunctionKind::GENERATOR_FUNCTION; in GetFunctionKind() 310 kind = FunctionKind::ASYNC_FUNCTION; in GetFunctionKind() 313 kind = FunctionKind::ASYNC_GENERATOR_FUNCTION; in GetFunctionKind() 316 kind = FunctionKind::ASYNC_ARROW_FUNCTION; in GetFunctionKind() 319 kind = FunctionKind::CONCURRENT_FUNCTION; in GetFunctionKind() 324 return kind; in GetFunctionKind() [all …]
|
| D | literal_data_extractor.cpp | 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 52 FunctionKind kind; in ExtractObjectDatas() local 55 &methodId, &kind, &constpool, &entryPoint] in ExtractObjectDatas() 85 kind = FunctionKind::NORMAL_FUNCTION; in ExtractObjectDatas() 90 kind = FunctionKind::GENERATOR_FUNCTION; in ExtractObjectDatas() 97 methodLiteral->SetFunctionKind(kind); in ExtractObjectDatas() 108 DefineMethodInLiteral(thread, jsPandaFile, method, kind, length, entryPoint); in ExtractObjectDatas() 170 FunctionKind kind; in EnumerateLiteralVals() local 172 …index, [literals, &pos, vm, factory, thread, jsPandaFile, &methodId, &kind, &constpool, &entryPoin… in EnumerateLiteralVals() 198 kind = FunctionKind::NORMAL_FUNCTION; in EnumerateLiteralVals() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/stackmap/ |
| D | ark_stackmap_builder.cpp | 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 96 … writer.WriteBuffer(reinterpret_cast<const uint8_t *>(&(deopt.kind)), sizeof(deopt.kind)); in SaveArkDeopt() 140 LocationTy::Kind kind; in ParseArkDeopt() local 148 … binBufparser.ParseBuffer(reinterpret_cast<uint8_t *>(&kind), sizeof(kind), ptr + deoptOffset); in ParseArkDeopt() 149 deoptOffset += sizeof(kind); in ParseArkDeopt() 150 deopt.kind = kind; in ParseArkDeopt() 151 switch (kind) { in ParseArkDeopt() 152 case LocationTy::Kind::CONSTANT: { in ParseArkDeopt() 160 case LocationTy::Kind::CONSTANTNDEX: { in ParseArkDeopt() 168 case LocationTy::Kind::INDIRECT: { in ParseArkDeopt() [all …]
|
| D | llvm_stackmap_parser.cpp | 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 26 std::string LocationTy::TypeToString(Kind loc) const in TypeToString() 29 case Kind::REGISTER: in TypeToString() 31 case Kind::DIRECT: in TypeToString() 33 case Kind::INDIRECT: in TypeToString() 35 case Kind::CONSTANT: in TypeToString() 37 case Kind::CONSTANTNDEX: in TypeToString() 70 ASSERT(loc.location == LocationTy::Kind::CONSTANT); in CalcCallSite() 73 if (loc.location == LocationTy::Kind::INDIRECT) { in CalcCallSite() 89 } else if (loc.location == LocationTy::Kind::CONSTANT) { in CalcCallSite() [all …]
|
| /arkcompiler/runtime_core/verification/config/handlers/ |
| D | config_handler_whitelist.cpp | 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 64 WhitelistKind kind; in RegisterConfigHandlerWhitelist() local 66 kind = WhitelistKind::CLASS; in RegisterConfigHandlerWhitelist() 68 kind = WhitelistKind::METHOD; in RegisterConfigHandlerWhitelist() 70 kind = WhitelistKind::METHOD_CALL; in RegisterConfigHandlerWhitelist() 84 if (kind == WhitelistKind::CLASS) { in RegisterConfigHandlerWhitelist() 89 AddWhitelistMethodConfig(kind, c); in RegisterConfigHandlerWhitelist()
|
| /arkcompiler/ets_frontend/es2panda/test/parser/ts/ |
| D | test-ts-key-remapping-via-as.ts | 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 20 type NameA = {name: "A", kind: string} 21 type NameB = {name: "B", kind: string} 22 type NameC = {name: "C", kind: string}
|
| /arkcompiler/ets_frontend/ts2panda/src/base/ |
| D | iterator.ts | 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 34 private kind: IteratorType = IteratorType.Normal; property in Iterator 38 … pandaGen: PandaGen, node: ts.Node, kind ? : IteratorType, funcBuilder ? : FunctionBuilder) { 44 if (kind) { 45 this.kind = kind; 58 …this.kind == IteratorType.Normal ? pandaGen.getIterator(this.node) : pandaGen.getAsyncIterator(thi… 102 if (this.kind == IteratorType.Normal) { 137 // if (this.kind == IteratorType.Async) {
|
| /arkcompiler/ets_runtime/ecmascript/compiler/ |
| D | gate_meta_data.h | 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 289 enum class Kind : uint8_t { enum 350 Kind GetKind() const in GetKind() 355 void AssertKind([[maybe_unused]] Kind kind) const in AssertKind() argument 357 ASSERT(GetKind() == kind); in AssertKind() 362 … return GetKind() == Kind::IMMUTABLE_ONE_PARAMETER || GetKind() == Kind::MUTABLE_ONE_PARAMETER || in IsOneParameterKind() 363 GetKind() == Kind::TYPED_BINARY_OP; in IsOneParameterKind() 368 return GetKind() == Kind::MUTABLE_STRING; in IsStringType() 405 void SetKind(Kind kind) in SetKind() argument 407 kind_ = kind; in SetKind() [all …]
|