| /arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
| D | controlFlowManyConsecutiveConditionsNoTimeout.ts | 34 if (choice === choiceOne) {} 35 if (choice === choiceOne) {} 36 if (choice === choiceOne) {} 37 if (choice === choiceOne) {} 38 if (choice === choiceOne) {} 39 if (choice === choiceOne) {} 40 if (choice === choiceOne) {} 41 if (choice === choiceOne) {} 42 if (choice === choiceOne) {} 43 if (choice === choiceOne) {} [all …]
|
| D | keywordField.ts | 25 obj.if = 1; 26 AssertType(obj.if = 1, "int"); 27 AssertType(obj.if, "any"); 30 let a = { if: "test" 31 AssertType(a, "{ if: string; }"); 33 AssertType({ if: "test" }, "{ if: string; }"); 35 AssertType(if, "string"); 40 let n = a.if 42 AssertType(a.if, "string"); 44 let q = a["if"]; [all …]
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | date_parse.cpp | 30 if (isIso) { in ParseDateString() 35 if (result) { in ParseDateString() 45 if (proxy->GetDate().IsSign()) { in IsIsoDateTime() 47 if (!proxy->GetDate().IsSixDecimalDigit()) { in IsIsoDateTime() 51 if (sign.IsSymbol('-') && signYear == 0) { in IsIsoDateTime() 54 if (sign.IsSymbol('-')) { in IsIsoDateTime() 58 } else if (proxy->GetDate().IsFourDecimalDigit()) { in IsIsoDateTime() 64 if (proxy->GetDate().IsSymbol('-')) { in IsIsoDateTime() 67 if (!mon.IsTwoDecimalDigit()) { in IsIsoDateTime() 72 if (proxy->GetDate().IsSymbol('-')) { in IsIsoDateTime() [all …]
|
| D | js_serializer.cpp | 18 #if defined(PANDA_TARGET_IOS) 67 if (!value->IsHeapObject()) { in SerializeJSTaggedValue() 68 if (!WritePrimitiveValue(value)) { in SerializeJSTaggedValue() 72 if (!WriteTaggedObject(value)) { in SerializeJSTaggedValue() 82 if (value->IsNull()) { in WritePrimitiveValue() 85 if (value->IsUndefined()) { in WritePrimitiveValue() 88 if (value->IsTrue()) { in WritePrimitiveValue() 91 if (value->IsFalse()) { in WritePrimitiveValue() 94 if (value->IsInt()) { in WritePrimitiveValue() 97 if (value->IsDouble()) { in WritePrimitiveValue() [all …]
|
| D | js_tagged_value.cpp | 50 if (type == NO_PREFERENCE) { in GetTypeString() 53 if (type == PREFER_NUMBER) { in GetTypeString() 61 if (tagged->IsStringOrSymbol() || tagged->IsNumber()) { in ToPropertyKey() 66 if (key->IsSymbol()) { in ToPropertyKey() 76 if (!IsNumber()) { in IsInteger() 80 if (IsInt()) { in IsInteger() 85 // If argument is NaN, +∞, or -∞, return false. in IsInteger() 86 if (!std::isfinite(thisValue)) { in IsInteger() 90 // If floor(abs(argument)) ≠ abs(argument), return false. in IsInteger() 91 if (std::floor(std::abs(thisValue)) != std::abs(thisValue)) { in IsInteger() [all …]
|
| /arkcompiler/ets_frontend/es2panda/lexer/regexp/ |
| D | regexp.cpp | 74 if (IsDecimalDigit(cp)) { in HexValue() 80 if (cp < LEX_CHAR_LOWERCASE_A) { in HexValue() 96 if (iter_.HasNext()) { in ParsePattern() 107 if (Peek() != LEX_CHAR_VLINE) { in ParseDisjunction() 121 if (cp == LEX_CHAR_LOWERCASE_B || cp == LEX_CHAR_UPPERCASE_B) { in ParseAlternative() 139 if (Peek() != LEX_CHAR_QUESTION) { in ParseAlternative() 147 if (cp == LEX_CHAR_COLON) { in ParseAlternative() 152 if (cp == LEX_CHAR_EQUALS || cp == LEX_CHAR_EXCLAMATION) { in ParseAlternative() 155 if (Unicode()) { in ParseAlternative() 162 if (cp != LEX_CHAR_LESS_THAN) { in ParseAlternative() [all …]
|
| /arkcompiler/toolchain/tooling/base/ |
| D | pt_params.cpp | 27 if (ret == Result::SUCCESS) { in Create() 29 } else if (ret == Result::TYPE_ERROR) { // optional value in Create() 33 if (!error.empty()) { in Create() 49 if (ret == Result::SUCCESS) { in Create() 56 if (ret == Result::SUCCESS) { in Create() 63 if (ret == Result::SUCCESS) { in Create() 65 } else if (ret == Result::TYPE_ERROR) { // optional value in Create() 70 if (ret == Result::SUCCESS) { in Create() 72 } else if (ret == Result::TYPE_ERROR) { // optional value in Create() 77 if (ret == Result::SUCCESS) { in Create() [all …]
|
| D | pt_types.cpp | 115 if (tagged->IsNull() || tagged->IsUndefined() || in FromTagged() 120 if (tagged->IsString()) { in FromTagged() 123 if (tagged->IsSymbol()) { in FromTagged() 127 if (tagged->IsProxy()) { in FromTagged() 130 if (tagged->IsGeneratorFunction()) { in FromTagged() 133 if (tagged->IsFunction()) { in FromTagged() 136 if (tagged->IsArray(ecmaVm)) { in FromTagged() 139 if (tagged->IsRegExp()) { in FromTagged() 142 if (tagged->IsDate()) { in FromTagged() 145 if (tagged->IsMap()) { in FromTagged() [all …]
|
| /arkcompiler/ets_frontend/ts2panda/src/ |
| D | syntaxChecker.ts | 63 if (isFunctionLikeDeclaration(node)) { 64 if (isStrictMode(node)) { 68 if (node.body) { 71 if (bodyScope) { 78 …if ((node.kind === ts.SyntaxKind.Block) && (node.parent != undefined && node.parent.kind === ts.Sy… 89 if (ts.isFunctionDeclaration(decls[i].node) && scope instanceof ModuleScope) { 99 if (decls[index] instanceof VarDecl) { 102 if (!parentScope) { 108 if (hasDuplicateEntryAcrossScope(decls[index], parentDecl)) { 119 if (hasDuplicateEntryInScope(decls[index], decls[i], scope)) { [all …]
|
| /arkcompiler/ets_frontend/arkguard/src/utils/ |
| D | OhsUtil.ts | 70 if (!isVariableStatement(node) || node.declarationList.declarations.length !== 1) { 75 if (initializer === undefined) { 80 if (isBinaryExpression(initializer)) { 81 if (initializer.operatorToken.kind !== SyntaxKind.BarBarToken) { 85 if (!isCallExpression(initializer.left)) { 89 if (!isPropertyAccessExpression(initializer.left.expression)) { 93 if (!isIdentifier(initializer.left.expression.expression) || 98 if (!isIdentifier(initializer.left.expression.name) || 103 if (initializer.left.arguments.length !== 1) { 108 if (isStringLiteral(arg) && arg.text === moduleName.substring('@ohos.'.length)) { [all …]
|
| /arkcompiler/toolchain/build/config/ |
| D | arm.gni | 18 if (current_cpu == "arm") { 56 if (arm_use_neon == "") { 57 if (current_os == "linux") { 65 if (arm_version == 6) { 66 if (arm_arch == "") { 69 if (arm_tune != "") { 72 if (arm_float_abi == "") { 75 if (arm_fpu == "") { 80 } else if (arm_version == 7) { 81 if (arm_arch == "") { [all …]
|
| /arkcompiler/toolchain/build/templates/cxx/ |
| D | cxx.gni | 17 if (defined(invoker.subsystem_name) && defined(invoker.part_name)) { 20 } else if (defined(invoker.subsystem_name)) { 30 if (defined(invoker.unit_test) && invoker.unit_test) { 53 if (defined(invoker.configs)) { 57 if (defined(invoker.remove_configs)) { 61 if (defined(invoker.use_exceptions) && invoker.use_exceptions) { 66 if (!defined(libs)) { 69 if (!defined(ldflags)) { 72 if (!defined(inputs)) { 76 if (defined(version_script)) { [all …]
|
| /arkcompiler/ets_frontend/arkguard/src/common/ |
| D | ApiExtractor.ts | 79 if (modifiers === undefined) { 87 if (modifier.kind === SyntaxKind.ExportKeyword) { 91 if (modifier.kind === SyntaxKind.DeclareKeyword) { 104 if (isExportAssignment(astNode)) { 105 if (!mCurrentExportNameSet.has(astNode.expression.getText())) { 114 if (!hasExport) { 119 if (astNode.name) { 120 if (!mCurrentExportNameSet.has(astNode.name.getText())) { 128 if (hasDeclare && astNode.declarationList) { 131 if (!mCurrentExportNameSet.has(declarationName)) { [all …]
|
| /arkcompiler/ets_runtime/ecmascript/base/ |
| D | json_parser.h | 130 if (inObjOrArr) { in ParseNumber() 133 if (!isNumber) { in ParseNumber() 136 if (isFast) { in ParseNumber() 140 if (errno == ERANGE) { in ParseNumber() 150 if (*current_ == '-') { in ParseNumber() 151 if (UNLIKELY(current_++ == end_)) { in ParseNumber() 155 if (*current_ == '0') { in ParseNumber() 156 if (!CheckZeroBeginNumber(hasExponent)) { in ParseNumber() 159 } else if (*current_ >= '1' && *current_ <= '9') { in ParseNumber() 160 if (!CheckNonZeroBeginNumber(hasExponent)) { in ParseNumber() [all …]
|
| D | number_helper.cpp | 35 if ((p) == (end)) { \ 44 if (c >= '0' && c <= '9') { in ToDigit() 47 if (c >= 'A' && c <= 'Z') { in ToDigit() 50 if (c >= 'a' && c <= 'z') { in ToDigit() 61 if (c > INT8_MAX) { in GotoNonspace() 68 if (base::utf_helper::ConvertRegionUtf8ToUtf16(*ptr, &c, end - *ptr, 1, 0) <= 0) { in GotoNonspace() 72 if (!StringHelper::IsNonspace(c)) { in GotoNonspace() 94 if (number < 0.0) { in DoubleToString() 107 if (numberFraction != 0 && numberFraction >= delta) { in DoubleToString() 114 if (negative) { in DoubleToString() [all …]
|
| /arkcompiler/runtime_core/assembler/ |
| D | assembly-parser.cpp | 32 if (!open_ && *context_ == Token::Type::DEL_BRACE_L) { in ParseRecordFields() 41 if (!open_) { in ParseRecordFields() 46 if (context_.Mask()) { in ParseRecordFields() 50 if (open_ && *context_ == Token::Type::DEL_BRACE_R) { in ParseRecordFields() 65 if (!ParseRecordField()) { in ParseRecordFields() 66 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseRecordFields() 70 if (open_ && *context_ == Token::Type::DEL_BRACE_R) { in ParseRecordFields() 85 if (PrefixedValidName()) { in ParseFieldName() 91 if (iter != curr_record_->field_list.end()) { in ParseFieldName() 92 if (iter->is_defined) { in ParseFieldName() [all …]
|
| /arkcompiler/runtime_core/bytecode_optimizer/ |
| D | reg_acc_alloc.cpp | 24 * Decide if accumulator register gets dirty between two instructions. 34 if (UNLIKELY(inst == nullptr)) { in IsAccWriteBetween() 38 if (block->GetSuccsBlocks().size() > 1) { in IsAccWriteBetween() 46 if (!dst_inst->IsPhi() && block->GetPredsBlocks().size() > 1) { in IsAccWriteBetween() 51 // Get first phi instruction if exist. in IsAccWriteBetween() 52 // This is requred if dst_inst is a phi node. in IsAccWriteBetween() 55 if (inst->IsAccWrite()) { in IsAccWriteBetween() 59 if (inst->IsAccRead()) { in IsAccWriteBetween() 62 if (input->GetDstReg() != compiler::ACC_REG_ID) { in IsAccWriteBetween() 75 * Return true if Phi instruction is marked as optimizable. [all …]
|
| /arkcompiler/runtime_core/cmake/ |
| D | Definitions.cmake | 20 # if variable evaluates to True. 23 if(${var_name}) 29 if(CMAKE_SYSTEM_NAME STREQUAL Linux) 32 if (NOT PANDA_ENABLE_ADDRESS_SANITIZER) 47 if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" OR CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64") 48 if(NOT PANDA_CROSS_AMD64_X86) 64 …if((PANDA_TARGET_ARM32_ABI_SOFT AND (PANDA_TARGET_ARM32_ABI_SOFTFP OR PANDA_TARGET_ARM32_ABI_HARD)… 78 if(PANDA_TARGET_AMD64 OR PANDA_TARGET_ARM64) 86 if (PANDA_TRACK_INTERNAL_ALLOCATIONS) 104 if(PANDA_TARGET_ARM64 AND ((CMAKE_CXX_COMPILER_ID STREQUAL "Clang" [all …]
|
| /arkcompiler/toolchain/build/config/compiler/ |
| D | BUILD.gn | 17 if (current_cpu == "arm" || current_cpu == "arm64") { 42 if (is_ohos) { 48 if (!(is_mac || is_ios)) { 56 if (!is_mingw) { 74 if (is_ohos_or_android) { 80 if (is_clang) { 92 if (optimize_for_size) { 94 if (is_clang) { 107 if (is_debug) { 125 if (current_cpu == "arm" && !is_clang) { [all …]
|
| /arkcompiler/ets_runtime/ecmascript/pgo_profiler/ |
| D | pgo_profiler_decoder.cpp | 28 if (isLoaded_) { in Load() 31 if (!LoadAPBinaryFile()) { in Load() 36 if (!PGOProfilerHeader::ParseFromBinary(addr, fileMapAddr_.GetSize(), &header_)) { in Load() 42 if (!recordSimpleInfos_) { in Load() 54 if (!isLoaded_) { in Verify() 57 if (IsMethodMatchEnabled()) { in Verify() 69 if (inPath_.empty()) { in LoadAndVerify() 74 if (Load() && Verify(checksum)) { in LoadAndVerify() 82 if (isLoaded_) { in LoadFull() 86 if (!LoadAPBinaryFile(PAGE_PROT_READWRITE)) { in LoadFull() [all …]
|
| D | pgo_profiler.cpp | 26 if (!isEnable_) { in ProfileCall() 31 if (!calleeFunc.IsJSFunction()) { in ProfileCall() 34 if (!JSFunction::Cast(calleeFunc)->GetMethod().IsMethod()) { in ProfileCall() 39 if (calleeRecordNameValue.IsHole()) { in ProfileCall() 43 if (recordInfos_->AddMethod(calleeRecordName, calleeMethod, mode, incCount)) { in ProfileCall() 47 …if (pcOffset > 0 && currentFunc.IsJSFunction() && JSFunction::Cast(currentFunc)->GetMethod().IsMet… in ProfileCall() 50 if (currentRecordNameValue.IsHole()) { in ProfileCall() 53 if (calleeMethod->IsNativeWithCallField()) { in ProfileCall() 58 if (currentRecordName != calleeRecordName) { in ProfileCall() 67 if (methodCount_ >= MERGED_EVERY_COUNT && interval > MERGED_MIN_INTERVAL) { in ProfileCall() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/dfx/stackinfo/ |
| D | js_stackgetter.cpp | 30 if (type > FrameType::FRAME_TYPE_LAST || type < FrameType::FRAME_TYPE_FIRST) { in CheckFrameType() 37 if (preSp == nullptr) { in CheckFrameType() 40 #if defined(PANDA_TARGET_64) in CheckFrameType() 41 if (thread->IsAsmInterpreter() && !thread->IsLegalSp(reinterpret_cast<uintptr_t>(preSp))) { in CheckFrameType() 46 if (type > FrameType::FRAME_TYPE_LAST || type < FrameType::FRAME_TYPE_FIRST) { in CheckFrameType() 61 if (method->IsNativeWithCallField()) { in ParseMethodInfo() 71 if (length != 0 && functionName[0] == '#') { in ParseMethodInfo() 78 if (strlen(functionName) == 0) { in ParseMethodInfo() 81 if (!CheckAndCopy(codeEntry.functionName, sizeof(codeEntry.functionName), functionName)) { in ParseMethodInfo() 86 if (strlen(recordName) != 0) { in ParseMethodInfo() [all …]
|
| /arkcompiler/ets_runtime/test/aottest/loops/ |
| D | loops.ts | 20 if (i == j) { 27 if (i > 100) { 34 if (i < 99) { 51 if (j == 50) { 60 if (k < 99) { 78 if (j > 100) { 87 if (k < 100) { 95 if (index == 0) { 97 if (i > 100) { 102 } else if (index == 1) { [all …]
|
| /arkcompiler/toolchain/inspector/ |
| D | inspector.cpp | 26 #if defined(IOS_PLATFORM) 56 #if !defined(IOS_PLATFORM) 61 #if !defined(IOS_PLATFORM) 62 #if defined(WINDOWS_PLATFORM) 74 if (server == nullptr) { in HandleClient() 79 #if defined(IOS_PLATFORM) || defined(MAC_PLATFORM) in HandleClient() 89 #if !defined(IOS_PLATFORM) 92 if (g_handle != nullptr) { in LoadArkDebuggerLibrary() 97 if (g_handle == nullptr) { in LoadArkDebuggerLibrary() 113 if (iter != g_inspectors.end() && iter->second != nullptr && in SendReply() [all …]
|
| /arkcompiler/toolchain/websocket/ |
| D | BUILD.gn | 18 if (enable_dump_in_faultlog) { 21 if (enable_bytrace) { 25 if (enable_hitrace) { 28 if (enable_hilog) { 38 if (is_ohos) { 43 } else if (is_mingw) { 45 } else if (is_mac) { 50 } else if (target_os == "android") { 51 if (!ark_standalone_build) { 59 } else if (target_os == "ios") { [all …]
|