Home
last modified time | relevance | path

Searched full:if (Results 1 – 25 of 2464) sorted by relevance

12345678910>>...99

/arkcompiler/toolchain/tooling/base/
Dpt_params.cpp27 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 …]
Dpt_types.cpp113 if (tagged->IsNull() || tagged->IsUndefined() || in FromTagged()
118 if (tagged->IsString()) { in FromTagged()
121 if (tagged->IsSymbol()) { in FromTagged()
125 if (tagged->IsProxy()) { in FromTagged()
128 if (tagged->IsGeneratorFunction()) { in FromTagged()
131 if (tagged->IsFunction()) { in FromTagged()
134 if (tagged->IsArray(ecmaVm)) { in FromTagged()
137 if (tagged->IsRegExp()) { in FromTagged()
140 if (tagged->IsDate()) { in FromTagged()
143 if (tagged->IsMap()) { in FromTagged()
[all …]
/arkcompiler/ets_runtime/ecmascript/
Ddate_parse.cpp30 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 …]
Djs_serializer.cpp18 #if defined(PANDA_TARGET_IOS)
58 if (!value->IsHeapObject()) { in SerializeJSTaggedValue()
59 if (!WritePrimitiveValue(value)) { in SerializeJSTaggedValue()
63 if (!WriteTaggedObject(value)) { in SerializeJSTaggedValue()
73 if (value->IsNull()) { in WritePrimitiveValue()
76 if (value->IsUndefined()) { in WritePrimitiveValue()
79 if (value->IsTrue()) { in WritePrimitiveValue()
82 if (value->IsFalse()) { in WritePrimitiveValue()
85 if (value->IsInt()) { in WritePrimitiveValue()
88 if (value->IsDouble()) { in WritePrimitiveValue()
[all …]
Djs_tagged_value.cpp48 if (type == NO_PREFERENCE) { in GetTypeString()
51 if (type == PREFER_NUMBER) { in GetTypeString()
59 if (tagged->IsStringOrSymbol() || tagged->IsNumber()) { in ToPropertyKey()
64 if (key->IsSymbol()) { in ToPropertyKey()
74 if (!IsNumber()) { in IsInteger()
78 if (IsInt()) { in IsInteger()
83 // If argument is NaN, +∞, or -∞, return false. in IsInteger()
84 if (!std::isfinite(thisValue)) { in IsInteger()
88 // If floor(abs(argument)) ≠ abs(argument), return false. in IsInteger()
89 if (std::floor(std::abs(thisValue)) != std::abs(thisValue)) { in IsInteger()
[all …]
Djs_typed_array.cpp28 if (key->IsSymbol()) { in ToPropKey()
40 // 3. If Type(P) is String, then in GetOwnProperty()
43 // c. If numericIndex is not undefined, then in GetOwnProperty()
46 // iii. If value is undefined, return undefined. in GetOwnProperty()
49 if (key->IsString() || key->IsNumber()) { in GetOwnProperty()
52 if (!numericIndex.IsUndefined()) { in GetOwnProperty()
56 if (value->IsUndefined()) { in GetOwnProperty()
77 // 3. If Type(P) is String, then in HasProperty()
80 // c. If numericIndex is not undefined, then in HasProperty()
82 // ii. If IsDetachedBuffer(buffer) is true, throw a TypeError exception. in HasProperty()
[all …]
Djs_proxy.cpp30 // 1. If Type(target) is not Object, throw a TypeError exception. in ProxyCreate()
31 if (!target->IsECMAObject()) { in ProxyCreate()
36 // 2. If Type(handler) is not Object, throw a TypeError exception. in ProxyCreate()
37 if (!handler->IsECMAObject()) { in ProxyCreate()
42 // 6. If IsCallable(target) is true, then P.[[Call]] as specified in 9.5.12. in ProxyCreate()
55 // 2. If handler is null, throw a TypeError exception. in GetPrototype()
56 if (handler->IsNull()) { in GetPrototype()
69 // 7. If trap is undefined, then Return target.[[GetPrototypeOf]](). in GetPrototype()
70 if (trap->IsUndefined()) { in GetPrototype()
82 // 10. If Type(handlerProto) is neither Object nor Null, throw a TypeError exception. in GetPrototype()
[all …]
/arkcompiler/ets_frontend/es2panda/lexer/regexp/
Dregexp.cpp74 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/ets_frontend/ts2panda/src/
DsyntaxChecker.ts63 if (isFunctionLikeDeclaration(node)) {
64 if (isStrictMode(node)) {
68 if (node.body) {
71 if (bodyScope) {
78if ((node.kind == ts.SyntaxKind.Block) && (node.parent != undefined && node.parent.kind == ts.Synt…
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 …]
DtypeChecker.ts44 if (!TypeChecker.instance) {
59 if (!node) {
71 if (!node) {
81 if (symbol && symbol.declarations) {
88 if (node.modifiers) {
90 if (modifier.kind === ts.SyntaxKind.ExportKeyword) {
99 if (node.modifiers) {
101 if (modifier.kind === ts.SyntaxKind.DeclareKeyword) {
116 if (expression.kind == ts.SyntaxKind.ClassExpression) {
130 if (this.isFromDefaultLib(typeDeclNode)) {
[all …]
Drecorder.ts97 if (!this.class2Ctor.has(node)) {
104if (!this.isTsFile || childNode!.parent == undefined || childNode.parent.kind != node.kind) {
115 if (this.syntaxCheckStatus) {
133 if (hasExportKeywordModifier(childNode)) {
134 if (!CmdOptions.isModules()) {
143 if (this.recordType) {
173 if (hasExportKeywordModifier(childNode)) {
174 if (!CmdOptions.isModules()) {
181 if (this.recordType) {
188 if (this.recordType) {
[all …]
/arkcompiler/runtime_core/runtime/mem/gc/
Dgc_settings.h31 if (native_gc_trigger_type_str == "no-native-gc-trigger") { in NativeGcTriggerTypeFromString()
34 if (native_gc_trigger_type_str == "simple-strategy") { in NativeGcTriggerTypeFromString()
46 * \brief if true then enable tracing
61 * \brief true if concurrency enabled
66 * \brief true if GC should be running in place
71 * \brief use FastHeapVerifier if true
76 * \brief true if heap verification before GC enabled
81 * \brief true if heap verification during GC enabled
86 * \brief true if heap verification after GC enabled
91 * \brief if true then fail execution if heap verifier found heap corruption
[all …]
/arkcompiler/ets_runtime/ecmascript/base/
Djson_parser.h128 if (inObjOrArr) { in ParseNumber()
131 if (!isNumber) { in ParseNumber()
134 if (isFast) { in ParseNumber()
144 if (*current_ == '-') { in ParseNumber()
145 if (UNLIKELY(current_++ == end_)) { in ParseNumber()
149 if (*current_ == '0') { in ParseNumber()
150 if (!CheckZeroBeginNumber(hasExponent)) { in ParseNumber()
153 } else if (*current_ >= '1' && *current_ <= '9') { in ParseNumber()
154 if (!CheckNonZeroBeginNumber(hasExponent)) { in ParseNumber()
170 if (isAsciiString_) { in ReadJsonStringRange()
[all …]
Dnumber_helper.cpp35 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/bytecode_optimizer/
Dreg_acc_alloc.cpp24 * 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/assembler/
Dassembly-parser.cpp32 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/cmake/
DDefinitions.cmake20 # 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)
64if((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/runtime_core/runtime/tests/tooling/
Dtest_runner.h35 if (test_->scenario) { in Run()
42 if (test_->breakpoint) { in Breakpoint()
49 if (test_->load_module) { in LoadModule()
56 if (test_->paused) { in Paused()
64 if (test_->exception) { in Exception()
71 if (test_->exception_catch) { in ExceptionCatch()
79 if (test_->property_access) { in PropertyAccess()
87 if (test_->property_modification) { in PropertyModification()
94 if (test_->frame_pop) { in FramePop()
101 if (test_->garbage_collection_start) { in GarbageCollectionStart()
[all …]
/arkcompiler/ets_runtime/ecmascript/dfx/cpu_profiler/
Dcpu_profiler.cpp37 if (generator_->SemInit(0, 0, 0) != 0) { in CpuProfiler()
40 if (generator_->SemInit(1, 0, 0) != 0) { in CpuProfiler()
43 if (generator_->SemInit(2, 0, 0) != 0) { // 2: signal 2 in CpuProfiler()
52 if (isProfiling_) { in StartCpuProfilerForInfo()
59 if (sigemptyset(&sa.sa_mask) != 0) { in StartCpuProfilerForInfo()
65 if (sigaction(SIGPROF, &sa, nullptr) != 0) { in StartCpuProfilerForInfo()
85 if (isProfiling_) { in StartCpuProfilerForFile()
91 if (!CheckFileName(fileName, absoluteFilePath)) { in StartCpuProfilerForFile()
97 if (fileName_.empty()) { in StartCpuProfilerForFile()
104 if (generator_->fileHandle_.fail()) { in StartCpuProfilerForFile()
[all …]
/arkcompiler/ets_runtime/test/aottest/loops/
Dloops.ts20 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/ets_runtime/ecmascript/ic/
Dic_runtime.cpp37 if (icAccessor_.GetICState() == ProfileTypeAccessor::ICState::MEGA) { in UpdateLoadHandler()
40 if (IsNamedIC(GetICKind())) { in UpdateLoadHandler()
45 if (op.IsElement()) { in UpdateLoadHandler()
46 if (!op.IsFound() && hclass->IsDictionaryElement()) { in UpdateLoadHandler()
51 if (!op.IsFound()) { in UpdateLoadHandler()
53 if (!proto.IsECMAObject()) { in UpdateLoadHandler()
58 } else if (!op.IsOnPrototype()) { in UpdateLoadHandler()
62 if (IsGlobalLoadIC(GetICKind())) { in UpdateLoadHandler()
69 if (key.IsEmpty()) { in UpdateLoadHandler()
71 } else if (op.IsElement()) { in UpdateLoadHandler()
[all …]
/arkcompiler/toolchain/build/config/
DBUILDCONFIG.gn21 if (target_os == "") {
25 if (target_cpu == "") {
26 if (target_os == "ohos") {
33 if (current_cpu == "") {
36 if (current_os == "") {
41 if (host_os == "linux") {
63 if (current_os == "ohos") {
70 } else if (current_os == "linux") {
77 } else if (current_os == "mingw") {
86 if (host_toolchain == "") {
[all …]
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/
Dpgo_profiler_loader.cpp25 if (isLoaded_) { in Load()
28 if (!LoadAPBinaryFile()) { in Load()
33 if (!PGOProfilerHeader::ParseFromBinary(addr, &header_)) { in Load()
39 if (!recordSimpleInfos_) { in Load()
51 if (!isLoaded_) { in Verify()
61 if (inPath_.empty()) { in LoadAndVerify()
66 if (Load() && Verify(checksum)) { in LoadAndVerify()
74 if (isLoaded_) { in LoadFull()
77 if (!LoadAPBinaryFile()) { in LoadFull()
82 if (!PGOProfilerHeader::ParseFromBinary(addr, &header_)) { in LoadFull()
[all …]
/arkcompiler/runtime_core/runtime/include/
Dvtable_builder-inl.h27 if (mda.IsStatic()) { in BuildForInterface()
31 if (!mda.IsAbstract()) { in BuildForInterface()
43 if (method.IsStatic()) { in BuildForInterface()
47 if (!method.IsAbstract()) { in BuildForInterface()
58 if (base_class != nullptr) { in AddBaseMethods()
72 if (mda.IsStatic()) { in AddClassMethods()
77 if (!vtable_.AddMethod(method_info).first) { in AddClassMethods()
89 if (method.IsStatic()) { in AddClassMethods()
94 if (!vtable_.AddMethod(method_info).first) { in AddClassMethods()
108 if (!iface->HasDefaultMethods()) { in AddDefaultInterfaceMethods()
[all …]
/arkcompiler/toolchain/inspector/
Dinspector.cpp26 #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()
82 #if !defined(IOS_PLATFORM)
85 if (g_handle != nullptr) { in LoadArkDebuggerLibrary()
90 if (g_handle == nullptr) { in LoadArkDebuggerLibrary()
106 if (iter != g_inspectors.end() && iter->second != nullptr && in SendReply()
115 if (iter != g_inspectors.end() && iter->second != nullptr && in ResetServiceLocked()
[all …]

12345678910>>...99