| /arkcompiler/ets_runtime/ecmascript/jspandafile/bytecode_inst/ |
| D | old_instruction.h | 35 return static_cast<Opcode>((secondary << 8U) | primary); in GetOpcode() 37 return static_cast<Opcode>(primary); in GetOpcode() 42 return OldBytecodeInst(OldBytecodeInstBase::GetPointer(offset)); in JumpTo() 47 return JumpTo(GetSize()); in GetNext() 52 return OldBytecodeInstBase::GetAddress(); in GetAddress() 57 return Size(GetFormat(GetOpcode())); in GetSize() 64 return static_cast<uint32_t>(Read<8, 16>()); in GetId() 67 return static_cast<uint32_t>(Read<8, 32>()); in GetId() 70 return static_cast<uint32_t>(Read<16, 16>()); in GetId() 73 return static_cast<uint32_t>(Read<16, 16>()); in GetId() [all …]
|
| /arkcompiler/ets_frontend/es2panda/lexer/token/ |
| D | token.cpp | 22 return (type_ == TokenType::LITERAL_IDENT && in IsAccessability() 30 return (type_ == TokenType::LITERAL_IDENT && keywordType_ == TokenType::KEYW_ASYNC && in IsAsyncModifier() 36 return (type_ == TokenType::LITERAL_IDENT && keywordType_ == TokenType::KEYW_STATIC && in IsStaticModifier() 42 return (type_ == TokenType::LITERAL_IDENT && keywordType_ == TokenType::KEYW_DECLARE && in IsDeclareModifier() 48 return (type_ == TokenType::LITERAL_IDENT && keywordType_ == TokenType::KEYW_READONLY && in IsReadonlyModifier() 54 return (type_ == TokenType::PUNCTUATOR_MINUS_MINUS || type_ == TokenType::PUNCTUATOR_PLUS_PLUS); in IsUpdate() 59 return (type_ == TokenType::PUNCTUATOR_MINUS || type_ == TokenType::PUNCTUATOR_PLUS || in IsUnary() 68 return (type_ == TokenType::LITERAL_STRING || type_ == TokenType::LITERAL_NUMBER || in IsPropNameLiteral() 74 return (type_ >= TokenType::FIRST_KEYW); in IsKeyword() 89 return true; in IsReservedTypeName() [all …]
|
| /arkcompiler/toolchain/tooling/base/ |
| D | pt_events.h | 48 return "Debugger.breakpointResolved"; in GetName() 53 return breakpointId_; in GetBreakpointId() 59 return *this; in SetBreakpointId() 64 return location_.get(); in GetLocation() 70 return *this; in SetLocation() 89 return "Debugger.paused"; in GetName() 94 return &callFrames_; in GetCallFrames() 100 return *this; in SetCallFrames() 105 return reason_; in GetReason() 111 return *this; in SetReason() [all …]
|
| D | pt_json.cpp | 23 return std::make_unique<PtJson>(cJSON_CreateObject()); in CreateObject() 28 return std::make_unique<PtJson>(cJSON_CreateArray()); in CreateArray() 42 return std::make_unique<PtJson>(value); in Parse() 48 return ""; in Stringify() 53 return ""; in Stringify() 58 return result; in Stringify() 67 return false; in Add() 73 return false; in Add() 76 return true; in Add() 81 return Add(key, static_cast<double>(value)); in Add() [all …]
|
| D | pt_params.h | 45 return maxScriptsCacheSize_.value_or(0); in GetMaxScriptsCacheSize() 50 return maxScriptsCacheSize_.has_value(); in HasMaxScriptsCacheSize() 69 return callFrameId_; in GetCallFrameId() 74 return expression_; in GetExpression() 100 return start_.get(); in GetStart() 106 return end_->get(); in GetEnd() 108 return nullptr; in GetEnd() 113 return end_.has_value(); in HasEnd() 118 return restrictToFunction_.value_or(false); in GetRestrictToFunction() 123 return restrictToFunction_.has_value(); in HasRestrictToFunction() [all …]
|
| D | pt_types.h | 50 … return "id:" + std::to_string(metaData.line_) + ":" + std::to_string(metaData.column_) + ":" + in ToString() 58 return false; in ParseBreakpointId() 62 return false; in ParseBreakpointId() 66 return false; in ParseBreakpointId() 75 return true; in ParseBreakpointId() 118 return type_; in GetType() 124 return *this; in SetType() 132 return subType_.value(); in GetSubType() 138 return *this; in SetSubType() 143 return subType_.has_value(); in HasSubType() [all …]
|
| /arkcompiler/runtime_core/tests/cts-assembly/ |
| D | tst-select.pa | 22 return 25 return 33 return 36 return 44 return 47 return 55 return 58 return 66 return 69 return [all …]
|
| D | tst-compare.pa | 22 return 25 return 33 return 36 return 44 return 47 return 55 return 58 return 66 return 69 return [all …]
|
| D | tst-branch.pa | 20 return 25 return 33 return 36 return 44 return 47 return 55 return 58 return 66 return 69 return [all …]
|
| /arkcompiler/ets_frontend/ts2panda/src/ |
| D | jshelpers.js | 19 return node.symbol; 23 return "" + str; 27 return ts.getTextOfIdentifierOrLiteral(node); 31 return (file.scriptKind & ts.ScriptKind.JS) != 0; 35 return []; 39 return stmt.flowNode; 47 return ts.createDiagnosticForNode(node, message, ...args); 51 return ts.createCompilerDiagnostic(message, ...args); 55 return ts.createFileDiagnostic(file, start, length, message, args); 59 return ts.isEffectiveStrictModeSourceFile(node, compilerOptions); [all …]
|
| D | cmdOptions.ts | 70 return false; 72 return this.options["display-typeinfo"]; 77 return false; 79 return this.options["debug-log"]; 84 return false; 86 return this.options["dump-assembly"]; 91 return false; 93 return this.options["debug"]; 102 return []; 104 return this.options["keep-persistent-watch"]; [all …]
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | date_parse.h | 30 return false; in IsBetween() 32 return true; in IsBetween() 49 return index_; in GetIndex() 65 return num; in ReadNumber() 77 return length; in ReadAlphabet() 84 return ch + 32; in GetLower() 86 return ch; in GetLower() 92 return true; in IsDigit() 94 return false; in IsDigit() 100 return true; in IsSign() [all …]
|
| D | js_tagged_value-inl.h | 48 return GetInt() != 0; in ToBoolean() 52 return !std::isnan(d) && d != 0; in ToBoolean() 62 return false; in ToBoolean() 65 return true; in ToBoolean() 74 return !bigint->IsZero(); in ToBoolean() 80 return EcmaStringAccessor(str).GetLength() != 0; in ToBoolean() 82 return true; in ToBoolean() 91 return JSTaggedNumber(tagged.GetTaggedValue()); in ToNumber() 97 return JSTaggedNumber(base::NAN_VALUE); in ToNumber() 100 return JSTaggedNumber(1); in ToNumber() [all …]
|
| D | js_serializer.cpp | 51 return WriteRawData(&rawId, sizeof(rawId)); in WriteType() 60 return false; in SerializeJSTaggedValue() 64 return false; in SerializeJSTaggedValue() 67 return true; in SerializeJSTaggedValue() 74 return WriteType(SerializationUID::JS_NULL); in WritePrimitiveValue() 77 return WriteType(SerializationUID::JS_UNDEFINED); in WritePrimitiveValue() 80 return WriteType(SerializationUID::JS_TRUE); in WritePrimitiveValue() 83 return WriteType(SerializationUID::JS_FALSE); in WritePrimitiveValue() 86 return WriteInt(value->GetInt()); in WritePrimitiveValue() 89 return WriteDouble(value->GetDouble()); in WritePrimitiveValue() [all …]
|
| D | js_runtime_options.h | 129 return (enableArkTools_) || in EnableArkTools() 139 return WasOptionSet(OPTION_ENABLE_ARK_TOOLS); in WasSetEnableArkTools() 144 return enableRuntimeStat_; in IsEnableRuntimeStat() 154 return WasOptionSet(OPTION_ENABLE_RUNTIME_STAT); in WasSetEnableRuntimeStat() 159 return stubFile_; in GetStubFile() 169 return WasOptionSet(OPTION_STUB_FILE); in WasStubFileSet() 179 return enableAOT_; in GetEnableAOT() 184 return aotOutputFile_; in GetAOTOutputFile() 194 return WasOptionSet(OPTION_AOT_FILE); in WasAOTOutputFileSet() 199 return targetTriple_; in GetTargetTriple() [all …]
|
| /arkcompiler/runtime_core/compiler/optimizer/ir/ |
| D | runtime_interface.h | 75 return nullptr; in GetCha() 80 return nullptr; in GetInlineCaches() 85 return nullptr; in GetUnresolvedTypes() 90 return nullptr; in GetRuntimeEntry() 95 return 0; in GetReturnReasonOk() 99 return 1; in GetReturnReasonDeopt() 105 return 0; in ResolveMethodIndex() 111 return 0; in ResolveOffsetByIndex() 116 return 0; in ResolveFieldIndex() 121 return 0; in ResolveTypeIndex() [all …]
|
| /arkcompiler/runtime_core/runtime/include/ |
| D | language_context.h | 65 return utf::CStringAsMutf8(panda::panda_file::GetStringClassDescriptor(GetLanguage())); in GetStringClassDescriptor() 78 return utf::CStringAsMutf8(panda::panda_file::GetCtorName(GetLanguage())); in GetCtorName() 83 return utf::CStringAsMutf8(panda::panda_file::GetCctorName(GetLanguage())); in GetCctorName() 91 return nullptr; in GetStackOverflowErrorClassDescriptor() 159 // return TypeTag default in GetTypeTag() 160 return tag; in GetTypeTag() 195 return 0; in GetFrameExtSize() 205 return MakePandaUnique<IMTableBuilder>(); in CreateIMTableBuilder() 210 return nullptr; in GetErrorClassDescriptor() 215 return nullptr; in CreateITableBuilder() [all …]
|
| /arkcompiler/runtime_core/runtime/core/ |
| D | core_language_context.h | 37 return panda_file::SourceLang::PANDA_ASSEMBLY; in GetLanguage() 42 return utf::CStringAsMutf8("Lpanda/Object;"); in GetObjectClassDescriptor() 47 return utf::CStringAsMutf8("Lpanda/Class;"); in GetClassClassDescriptor() 52 return utf::CStringAsMutf8("[Lpanda/Class;"); in GetClassArrayClassDescriptor() 57 return utf::CStringAsMutf8("[Lpanda/String;"); in GetStringArrayClassDescriptor() 62 return utf::CStringAsMutf8("Lpanda/NullPointerException;"); in GetNullPointerExceptionClassDescriptor() 67 return utf::CStringAsMutf8("Lpanda/StackOverflowException;"); in GetStackOverflowErrorClassDescriptor() 72 return utf::CStringAsMutf8("Lpanda/ArrayIndexOutOfBoundsException;"); in GetArrayIndexOutOfBoundsExceptionClassDescriptor() 77 return utf::CStringAsMutf8("Lpanda/IndexOutOfBoundsException;"); in GetIndexOutOfBoundsExceptionClassDescriptor() 82 return utf::CStringAsMutf8("Lpanda/IllegalStateException;"); in GetIllegalStateExceptionClassDescriptor() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/ |
| D | circuit_optimizer.cpp | 33 return GetStatus() == LatticeStatus::TOP; in IsTop() 38 return GetStatus() == LatticeStatus::MID; in IsMid() 43 return GetStatus() == LatticeStatus::BOT; in IsBot() 48 return status_; in GetStatus() 54 return std::nullopt; in GetValue() 56 return value_; in GetValue() 62 return other; in Meet() 65 return *this; in Meet() 68 return ValueLattice(LatticeStatus::BOT); in Meet() 72 return ValueLattice(LatticeStatus::BOT); in Meet() [all …]
|
| D | bytecodes.h | 75 return HasFlag(BytecodeFlags::READ_ACC); in HasAccIn() 80 return HasFlag(BytecodeFlags::NO_SIDE_EFFECTS); in IsNoSideEffects() 85 return HasFlag(BytecodeFlags::READ_THIS_OBJECT); in HasThisIn() 90 return HasFlag(BytecodeFlags::WRITE_ACC); in HasAccOut() 95 return HasFlag(BytecodeFlags::READ_ENV); in HasEnvIn() 100 return HasFlag(BytecodeFlags::WRITE_ENV); in HasEnvOut() 105 return GetKind() == BytecodeKind::MOV; in IsMov() 110 return GetKind() == BytecodeKind::RETURN_BC; in IsReturn() 115 return GetKind() == BytecodeKind::THROW_BC; in IsThrow() 120 return IsJumpImm() || IsCondJump(); in IsJump() [all …]
|
| /arkcompiler/runtime_core/verification/absint/ |
| D | panda_types.h | 50 return ClassNameOfId_[id]; in ClassNameOfId() 55 return MethodNameOfId_[id]; in MethodNameOfId() 72 return {TypeSystemKind::JAVA, threadnum_, idx}; in TypeOf() 82 return TypeSystems::GetSort(TypeSystemKind::JAVA, threadnum_, name); in GetSort() 87 return TypeSystemKind::JAVA; in GetKind() 92 return threadnum_; in GetThreadNum() 101 return TypeSystem_.Bot(); in Bot() 105 return TypeSystem_.Top(); in Top() 109 return Array_; in Array() 113 return Method_; in Method() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/dfx/hprof/ |
| D | heap_snapshot.cpp | 42 return stringTable_.GetString(as); in GetString() 50 return GetString(arrayName); // String type was handled singly, see#GenerateStringNode in GetArrayString() 61 return node; in NewNode() 71 return edge; in NewEdge() 97 return Verify(); in BuildUp() 103 return (edgeCount_ > nodeCount_) && (totalNodesSize_ > 0); in Verify() 141 return Verify(); in FinishSnapshot() 154 return; in PushHeapStat() 190 return GenerateNode(JSTaggedValue(address), size); in AddNode() 196 return; in MoveNode() [all …]
|
| /arkcompiler/runtime_core/runtime/mem/gc/ |
| D | gc_scoped_phase.h | 42 return "Idle"; in GetPhaseName() 44 return "RunPhases()"; in GetPhaseName() 46 return "CollectRoots()"; in GetPhaseName() 48 return "InitialMark"; in GetPhaseName() 50 return "MarkAll()"; in GetPhaseName() 52 return "Mark()"; in GetPhaseName() 54 return "YoungRemark()"; in GetPhaseName() 56 return "CollectAndMove()"; in GetPhaseName() 58 return "SweepStringTable()"; in GetPhaseName() 60 return "SweepStringTableYoung()"; in GetPhaseName() [all …]
|
| /arkcompiler/ets_frontend/ts2panda/src/base/ |
| D | bcGenUtil.ts | 125 return new Ldai(new Imm(value)); 129 return new Fldai(new Imm(value)); 133 return new LdaStr(value); 137 return new Lda(vreg); 141 return new Sta(vreg); 145 return new Delobjprop(obj); 149 return new Mov(vd, vs); 153 return new Jmp(target); 157 return new Debugger(); 161 return new Throw(); [all …]
|
| /arkcompiler/runtime_core/libpandafile/ |
| D | file_items.cpp | 29 return lang == panda::panda_file::SourceLang::ECMASCRIPT; in IsDynamicLanguage() 35 return panda::panda_file::SourceLang::ECMASCRIPT; in LanguageFromString() 37 return panda::panda_file::SourceLang::PANDA_ASSEMBLY; in LanguageFromString() 43 return "ECMAScript"; in LanguageToString() 45 return "PandaAssembly"; in LanguageToString() 50 return ".ctor"; in GetCtorName() 55 return ".cctor"; in GetCctorName() 61 return "Lpanda/JSString;"; in GetStringClassDescriptor() 63 return "Lpanda/String;"; in GetStringClassDescriptor() 70 return false; in WriteUlebTaggedValue() [all …]
|