Home
last modified time | relevance | path

Searched refs:Is (Results 1 – 25 of 41) sorted by relevance

12

/arkcompiler/ets_frontend/es2panda/ir/expressions/
Didentifier.cpp55 if (name_.Is("NaN")) { in Compile()
60 if (name_.Is("Infinity")) { in Compile()
65 if (name_.Is("globalThis")) { in Compile()
70 if (name_.Is("undefined")) { in Compile()
81 if (name_.Is("undefined")) { in Check()
/arkcompiler/runtime_core/libpandabase/serializer/
Dtuple_to_struct.h23 template <typename Struct, size_t... Is, typename Tuple>
24 Struct TupleToStructImpl([[maybe_unused]] std::index_sequence<Is...> is, Tuple &&tup) in TupleToStructImpl()
26 return {std::get<Is>(std::forward<Tuple>(tup))...}; in TupleToStructImpl()
/arkcompiler/ets_frontend/es2panda/ir/
DastNode.h126 bool Is##className() const \ in AST_NODE_REINTERPRET_MAPPING()
134 bool Is##baseClass() const \ in AST_NODE_REINTERPRET_MAPPING()
138 bool Is##reinterpretClass() const \ in AST_NODE_REINTERPRET_MAPPING()
158 ASSERT(Is##className()); \ in AST_NODE_REINTERPRET_MAPPING()
163 ASSERT(Is##className()); \ in AST_NODE_REINTERPRET_MAPPING()
172 ASSERT(Is##baseClass()); \ in AST_NODE_REINTERPRET_MAPPING()
177 ASSERT(Is##reinterpretClass()); \ in AST_NODE_REINTERPRET_MAPPING()
182 ASSERT(Is##baseClass()); \ in AST_NODE_REINTERPRET_MAPPING()
187 ASSERT(Is##reinterpretClass()); \ in AST_NODE_REINTERPRET_MAPPING()
/arkcompiler/runtime_core/libpandabase/os/
Dthread.h74 template <size_t... Is>
78 template <size_t N, size_t... Is>
79 struct GenArgSeq : GenArgSeq<N - 1, N - 1, Is...> {
82 template <size_t... Is>
83 struct GenArgSeq<1, Is...> : Seq<Is...> {
/arkcompiler/ets_frontend/es2panda/typescript/types/
Dtype.h54 bool Is##typeName() const \ in TYPE_MAPPING()
64 ASSERT(Is##typeName()); \ in TYPE_MAPPING()
69 ASSERT(Is##typeName()); \ in TYPE_MAPPING()
DobjectType.h61 bool Is##typeName() const \ in DEFINE_BITOPS()
71 ASSERT(Is##typeName()); \ in DEFINE_BITOPS()
76 ASSERT(Is##typeName()); \ in DEFINE_BITOPS()
DbigintLiteralType.cpp43 return value_.Is("0n") ? TypeFacts::ZERO_BIGINT_FACTS : TypeFacts::NON_ZERO_BIGINT_FACTS; in GetTypeFacts()
/arkcompiler/ets_frontend/es2panda/ir/base/
Dproperty.cpp65 currentIsProto = key_->AsIdentifier()->Name().Is("__proto__"); in ValidateExpression()
67 currentIsProto = key_->AsStringLiteral()->Str().Is("__proto__"); in ValidateExpression()
DscriptFunction.h59 if (firstParam->IsIdentifier() && firstParam->AsIdentifier()->Name().Is(THIS_PARAM)) { in ScriptFunction()
/arkcompiler/runtime_core/compiler/optimizer/optimizations/regalloc/
Dsplit_resolver.cpp173 if (inst->IsSpillFill() && !Is<SpillFillType::CONNECT_SPLIT_SIBLINGS>(inst)) { in CreateSpillFillForSplitMove()
189 if (Is<SpillFillType::CONNECT_SPLIT_SIBLINGS>(prev)) { in CreateSpillFillForSiblings()
192 ASSERT(Is<SpillFillType::INPUT_FILL>(prev)); in CreateSpillFillForSiblings()
Dsplit_resolver.h44 static bool Is(Inst *inst) in Is() function
/arkcompiler/ets_frontend/es2panda/util/
Dhelpers.cpp66 return (str.Is("NaN") || str.Is("undefined") || str.Is("Infinity")); in IsGlobalIdentifier()
381 return lit->Str().Is("prototype") || lit->Str().Is("constructor"); in IsSpecialPropertyKey()
708 if (strLit->Str().Is(SHOW_SOURCE)) { in SetFuncFlagsForDirectives()
713 if (strLit->Str().Is(USE_CONCURRENT)) { in SetFuncFlagsForDirectives()
Dustring.h72 bool Is(const char *str) const noexcept in Is() function
77 bool Is(const std::string_view &str) const noexcept in Is() function
/arkcompiler/ets_frontend/es2panda/binder/
Dvariable.h55 bool Is##className() const \ in VARIABLE_TYPES()
61 ASSERT(Is##className()); \ in VARIABLE_TYPES()
66 ASSERT(Is##className()); \ in VARIABLE_TYPES()
Ddeclaration.h61 bool Is##className() const \ in DECLARATION_KINDS()
67 ASSERT(Is##className()); \ in DECLARATION_KINDS()
72 ASSERT(Is##className()); \ in DECLARATION_KINDS()
Dscope.h167 bool Is##className() const \
173 ASSERT(Is##className()); \
178 ASSERT(Is##className()); \
Dbinder.cpp284 if (ident->Name().Is(FUNCTION_ARGUMENTS)) { in LookupIdentReference()
414 if (name.Is(FUNCTION_ARGUMENTS)) { in BuildVarDeclaratorId()
634 if (ident->Name().Is(FUNCTION_ARGUMENTS)) { in ResolveReference()
/arkcompiler/ets_frontend/testTs/
DREADME.md5 2. import_tests.json:Is the path to the TS code file where import files are stored to add import fi…
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_object.h54 static JSTaggedValue Is(EcmaRuntimeCallInfo *argv);
/arkcompiler/ets_runtime/ecmascript/ts_types/
Dglobal_ts_type_ref.h140 inline bool Is##NAME##Module() const \
Dts_type_accessor.h117 ASSERT(tsManager_->Is##NAME##TypeKind(gt_)); \
Dts_manager.h437 inline bool PUBLIC_API Is##NAME##TypeKind(const kungfu::GateType &gateType) const \
443 inline bool PUBLIC_API Is##NAME##TypeKind(const GlobalTSTypeRef &gt) const \
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_object_test.cpp436 HWTEST_F_L0(BuiltinsObjectTest, Is) in HWTEST_F_L0() argument
453 JSTaggedValue objResult1 = BuiltinsObject::Is(objCallInfo1); in HWTEST_F_L0()
459 JSTaggedValue objResult2 = BuiltinsObject::Is(objCallInfo1); in HWTEST_F_L0()
473 JSTaggedValue strResult = BuiltinsObject::Is(strCallInfo); in HWTEST_F_L0()
486 JSTaggedValue boolResult = BuiltinsObject::Is(boolCallInfo); in HWTEST_F_L0()
499 JSTaggedValue numResult = BuiltinsObject::Is(numCallInfo); in HWTEST_F_L0()
512 JSTaggedValue nullResult = BuiltinsObject::Is(nullCallInfo); in HWTEST_F_L0()
524 JSTaggedValue undefineResult = BuiltinsObject::Is(undefineCallInfo); in HWTEST_F_L0()
/arkcompiler/ets_frontend/es2panda/parser/
DparserImpl.cpp2194 if (propNameStr.Is("constructor")) { in ValidateClassKey()
2213 …} else if (!isDeclare && propNameStr.Is("prototype") && (desc->modifiers & ir::ModifierFlags::STAT… in ValidateClassKey()
3209 if (paramName.Is("this")) { in ValidateFunctionParam()
3227 if (paramName.Is("constructor") && (context_.Status() & ParserStatus::CONSTRUCTOR_FUNCTION)) { in ValidateFunctionParam()
3276 …return paramName.Is("number") || paramName.Is("any") || paramName.Is("unknown") || paramName.Is("n… in CheckTypeNameIsReserved()
3277 …paramName.Is("bigint") || paramName.Is("boolean") || paramName.Is("string") || paramName.Is("strin… in CheckTypeNameIsReserved()
3278 paramName.Is("void") || paramName.Is("object"); in CheckTypeNameIsReserved()
3671 if (node->AsIdentifier()->Name().Is("arguments")) { in ValidateLvalueAssignmentTarget()
3673 } else if (node->AsIdentifier()->Name().Is("eval")) { in ValidateLvalueAssignmentTarget()
3722 if (context_.IsAsync() && identifier.Is("await")) { in ValidateArrowParameterBindings()
DexpressionParser.cpp138 if (refName.Is("const")) { in ParseTsAsExpression()
296 if (identifier.Is("arguments")) { in ValidateArrowParameter()
298 } else if (identifier.Is("eval")) { in ValidateArrowParameter()
968 …>GetToken().Type() == lexer::TokenType::LITERAL_IDENT && lexer_->GetToken().Ident().Is("target")) { in ParsePotentialNewTarget()
1668 if (returnExpressionStr.Is("eval")) { in ValidateUpdateExpression()
1672 if (returnExpressionStr.Is("arguments")) { in ValidateUpdateExpression()

12