Home
last modified time | relevance | path

Searched refs:ss (Results 1 – 25 of 113) sorted by relevance

12345

/arkcompiler/ets_frontend/es2panda/typescript/types/
DobjectLiteralType.cpp26 void ObjectLiteralType::ToString(std::stringstream &ss) const in ToString()
28 ss << "{ "; in ToString()
31 desc_->stringIndexInfo->ToString(ss, false); in ToString()
32 ss << "; "; in ToString()
36 desc_->numberIndexInfo->ToString(ss, true); in ToString()
37 ss << "; "; in ToString()
41 it->ToString(ss, nullptr, true); in ToString()
42 ss << "; "; in ToString()
46 ss << "new "; in ToString()
47 it->ToString(ss, nullptr, true); in ToString()
[all …]
Dsignature.cpp33 void Signature::ToString(std::stringstream &ss, const binder::Variable *variable, bool printAsMetho… in ToString() argument
35 ss << "("; in ToString()
38 ss << (*it)->Name(); in ToString()
41 ss << "?"; in ToString()
44 ss << ": "; in ToString()
46 (*it)->TsType()->ToString(ss); in ToString()
49 ss << ", "; in ToString()
55 ss << ", "; in ToString()
58 ss << "..."; in ToString()
59 ss << signatureInfo_->restVar->Name(); in ToString()
[all …]
DindexInfo.cpp27 void IndexInfo::ToString(std::stringstream &ss, bool numIndex) const in ToString() argument
30 ss << "readonly "; in ToString()
33 ss << "[" << paramName_ << ": "; in ToString()
36 ss << "number]: "; in ToString()
38 ss << "string]: "; in ToString()
41 type_->ToString(ss); in ToString()
DfunctionType.cpp22 void FunctionType::ToString(std::stringstream &ss) const in ToString()
28 ss << "..."; in ToString()
35 ss << "{ "; in ToString()
39 (*it)->ToString(ss, variable_, desc_->callSignatures.size() > 1); in ToString()
41 ss << ", "; in ToString()
46 ss << " }"; in ToString()
DtupleType.cpp34 void TupleType::ToString(std::stringstream &ss) const in ToString()
37 ss << "readonly "; in ToString()
39 ss << "["; in ToString()
43 (*it)->TsType()->ToString(ss); in ToString()
45 ss << "?"; in ToString()
49 ss << ", "; in ToString()
55 ss << memberName; in ToString()
58 ss << "?"; in ToString()
61 ss << ": "; in ToString()
62 (*it)->TsType()->ToString(ss); in ToString()
[all …]
DbooleanLiteralType.cpp20 void BooleanLiteralType::ToString(std::stringstream &ss) const in ToString()
23 ss << "true"; in ToString()
27 ss << "false"; in ToString()
30 void BooleanLiteralType::ToStringAsSrc(std::stringstream &ss) const in ToStringAsSrc()
32 ss << "boolean"; in ToStringAsSrc()
DconstructorType.cpp22 void ConstructorType::ToString(std::stringstream &ss) const in ToString()
25 ss << "{ "; in ToString()
29 (*it)->ToString(ss, variable_); in ToString()
31 ss << ", "; in ToString()
36 ss << " }"; in ToString()
DarrayType.cpp23 void ArrayType::ToString(std::stringstream &ss) const in ToString()
27 ss << "("; in ToString()
29 ElementType()->ToString(ss); in ToString()
31 ss << ")"; in ToString()
33 ss << "[]"; in ToString()
DstringLiteralType.cpp20 void StringLiteralType::ToString(std::stringstream &ss) const in ToString()
22 ss << "\"" << value_ << "\""; in ToString()
25 void StringLiteralType::ToStringAsSrc(std::stringstream &ss) const in ToStringAsSrc()
27 ss << "string"; in ToStringAsSrc()
DbigintLiteralType.cpp20 void BigintLiteralType::ToString(std::stringstream &ss) const in ToString()
22 ss << value_; in ToString()
25 void BigintLiteralType::ToStringAsSrc(std::stringstream &ss) const in ToStringAsSrc()
27 ss << "bigint"; in ToStringAsSrc()
DenumLiteralType.cpp23 void EnumLiteralType::ToString(std::stringstream &ss) const in ToString()
25 ss << name_; in ToString()
28 void EnumLiteralType::ToStringAsSrc(std::stringstream &ss) const in ToStringAsSrc()
30 ss << "typeof " << name_; in ToStringAsSrc()
DnumberLiteralType.cpp24 void NumberLiteralType::ToString(std::stringstream &ss) const in ToString()
26 ss << util::Helpers::ToString(value_); in ToString()
29 void NumberLiteralType::ToStringAsSrc(std::stringstream &ss) const in ToStringAsSrc()
31 ss << "number"; in ToStringAsSrc()
/arkcompiler/runtime_core/assembler/
Dide_helpers.h29 std::stringstream ss; in JsonSerialize() local
30 ss << "{ " in JsonSerialize()
33 return ss.str(); in JsonSerialize()
43 std::stringstream ss; in JsonSerialize() local
44 ss << "{ " in JsonSerialize()
47 return ss.str(); in JsonSerialize()
54 std::stringstream ss; in JsonSerializeItemBody() local
56 ss << "{ " in JsonSerializeItemBody()
59 ss << ", " in JsonSerializeItemBody()
62 ss << " }"; in JsonSerializeItemBody()
[all …]
Dassembly-program.cpp25 std::stringstream ss; in JsonDump() local
26 ss << "{ \"functions\": "; in JsonDump()
27 ss << JsonSerializeProgramItems(function_table); in JsonDump()
28 ss << ", \"records\": "; in JsonDump()
29 ss << JsonSerializeProgramItems(record_table); in JsonDump()
30 ss << " }"; in JsonDump()
31 return ss.str(); in JsonDump()
/arkcompiler/runtime_core/libpandabase/tests/
Dleb128_test.cpp114 std::ostringstream ss; in TestDecodeUnsigned() local
115 ss << "Test unsigned decoding "; in TestDecodeUnsigned()
116 ss << std::hex << t.value; in TestDecodeUnsigned()
117 ss << " with sizeof(T) = "; in TestDecodeUnsigned()
118 ss << sizeof(T); in TestDecodeUnsigned()
123 EXPECT_EQ(is_full, MinimumBitsToStore(t.value) <= bitwidth && !is_partial) << ss.str(); in TestDecodeUnsigned()
124 EXPECT_EQ(size, is_full ? t.size : (bitwidth + 6) / 7) << ss.str(); in TestDecodeUnsigned()
125 EXPECT_EQ(value, static_cast<T>(t.value)) << ss.str(); in TestDecodeUnsigned()
142 std::ostringstream ss; in TestDecodeSigned() local
143 ss << "Test signed decoding "; in TestDecodeSigned()
[all …]
Dbit_memory_region_test.cpp88 std::stringstream ss; in TEST() local
91 ss.str(std::string()); in TEST()
97 ss << region; in TEST()
98 ASSERT_EQ(ss.str(), "0x0"); in TEST()
105 ss << region; in TEST()
106 ASSERT_EQ(ss.str(), "0x5"); in TEST()
114 ss << region; in TEST()
115 ASSERT_EQ(ss.str(), "0x10000000000000000"); in TEST()
123 ss << region; in TEST()
124 ASSERT_EQ(ss.str(), "0x5000000000000000001"); in TEST()
[all …]
/arkcompiler/runtime_core/disassembler/tests/
Drecords_test.cpp.in30 std::stringstream ss {}; local
32 d.Serialize(ss, false);
34 …EXPECT_TRUE(ss.str().find(".record A {\n}") != std::string::npos) << "record translated incorrectl…
41 std::stringstream ss {}; local
43 d.Serialize(ss, false);
45 EXPECT_TRUE(ss.str().find("u1 a") != std::string::npos) << "u1 translated incorrectly";
46 EXPECT_TRUE(ss.str().find("i8 b") != std::string::npos) << "i8 translated incorrectly";
47 EXPECT_TRUE(ss.str().find("u8 c") != std::string::npos) << "u8 translated incorrectly";
48 EXPECT_TRUE(ss.str().find("i16 d") != std::string::npos) << "i16 translated incorrectly";
49 EXPECT_TRUE(ss.str().find("u16 e") != std::string::npos) << "u16 translated incorrectly";
[all …]
Dliterals_test.cpp.in30 std::stringstream ss {}; local
32 d.Serialize(ss, false);
34 ASSERT_NE(ss.str().find(".language PandaAssembly"), std::string::npos);
36 ASSERT_NE(ss.str().find(".array array_0 i32 3 { 2 3 4 }"), std::string::npos);
37 ASSERT_NE(ss.str().find(".array array_1 i32 3 { 2 3 4 }"), std::string::npos);
38 ASSERT_NE(ss.str().find(".array array_2 i32 3 { 2 3 4 }"), std::string::npos);
39 ASSERT_NE(ss.str().find(".array array_3 i32 3 { 2 3 4 }"), std::string::npos);
46 std::stringstream ss {}; local
48 d.Serialize(ss, false);
50 ASSERT_NE(ss.str().find(".language PandaAssembly"), std::string::npos);
[all …]
Dfunctions_test.cpp.in30 std::stringstream ss {}; local
32 d.Serialize(ss, false);
34 ASSERT_TRUE(ss.str().find(".function void A(i32 a0) <static> {\n}") != std::string::npos);
41 std::stringstream ss {}; local
43 d.Serialize(ss, false);
45 ASSERT_NE(ss.str().find(".function void f() <static> {\n}"), std::string::npos);
46 ASSERT_NE(ss.str().find(".function void f(u1 a0, i8 a1) <static> {\n}"), std::string::npos);
47 ASSERT_NE(ss.str().find(".function void f(u1 a0) <static> {\n}"), std::string::npos);
48 ASSERT_NE(ss.str().find("call.short f:()\n\t"
Dlabels_test.cpp.in30 std::stringstream ss {}; local
32 d.Serialize(ss, false);
34 size_t beg_g = ss.str().find("u1 g() <static> {\n");
35 size_t end_g = ss.str().find('}', beg_g);
36 size_t beg_gg = ss.str().find("u1 gg() <static> {\n");
37 size_t end_gg = ss.str().find('}', beg_gg);
43ss.str().substr(beg_g + strlen("u1 g() <static> {\n"), end_g - (beg_g + strlen("u1 g() <static> {\…
45ss.str().substr(beg_gg + strlen("u1 gg() <static> {\n"), end_gg - (beg_gg + strlen("u1 gg() <stati…
55 std::stringstream ss {}; local
57 d.Serialize(ss);
[all …]
/arkcompiler/ets_frontend/merge_abc/src/
Doptions.cpp47 std::stringstream ss; in Parse() local
49 ss << argparser_->GetErrorString() << std::endl; in Parse()
50 ss << "Usage: " in Parse()
53 ss << std::endl; in Parse()
54 ss << "optional arguments:" << std::endl; in Parse()
55 ss << argparser_->GetHelpString() << std::endl; in Parse()
57 errorMsg_ = ss.str(); in Parse()
/arkcompiler/ets_frontend/es2panda/typescript/
Dchecker.cpp53 std::stringstream ss; in ThrowTypeError() local
57 ss << std::get<char *>(it); in ThrowTypeError()
59 ss << std::get<util::StringView>(it); in ThrowTypeError()
61 ss << TokenToString(std::get<lexer::TokenType>(it)); in ThrowTypeError()
63 std::get<const Type *>(it)->ToString(ss); in ThrowTypeError()
65 std::get<AsSrc>(it).GetType()->ToStringAsSrc(ss); in ThrowTypeError()
67 ss << std::to_string(std::get<size_t>(it)); in ThrowTypeError()
73 std::string err = ss.str(); in ThrowTypeError()
/arkcompiler/ets_frontend/es2panda/util/
DpatchFix.cpp77 std::stringstream ss; in DumpModuleInfo() local
78 ss << recordName << SymbolTable::SECOND_LEVEL_SEPERATOR; in DumpModuleInfo()
79 ss << Helpers::GetHashString(ConvertLiteralToString(moduleBuffer)) << std::endl; in DumpModuleInfo()
80 symbolTable_->WriteSymbolTable(ss.str()); in DumpModuleInfo()
103 std::stringstream ss; in DumpJsonContentRecInfo() local
104 ss << recordName << SymbolTable::SECOND_LEVEL_SEPERATOR; in DumpJsonContentRecInfo()
105 ss << Helpers::GetHashString(jsonFileContent) << std::endl; in DumpJsonContentRecInfo()
106 symbolTable_->WriteSymbolTable(ss.str()); in DumpJsonContentRecInfo()
153 std::stringstream ss; in GenerateFunctionAndClassHash() local
156 ss << ".function any " << func->name << '('; in GenerateFunctionAndClassHash()
[all …]
/arkcompiler/runtime_core/disassembler/templates/
Dget_ins_info.cpp.erb36 std::stringstream ss;
38 ss << "offset: 0x" << std::setfill('0') << std::setw(4) << std::hex
40 ss << ", " << std::setfill('.');
47 ss << std::setw(FORMAT_WIDTH) << std::left << "[<%= fmt.pretty.upcase %>]";
54 ss << "[";
60ss << "0x" << std::setw(INSTRUCTION_WIDTH) << std::setfill('0') << std::right << std::hex << stati…
63 ss << " ";
67 ss << "]";
69 method_info->instructions_info.push_back(ss.str());
/arkcompiler/runtime_core/disassembler/
Ddisassembler.cpp263 std::stringstream ss; in FillLiteralData() local
264 ss << "0x" << std::hex << std::get<uint32_t>(value); in FillLiteralData()
265 lit.value_ = ss.str(); in FillLiteralData()
354 std::stringstream ss; in GetLiteralArrays() local
355 ss << index << " 0x" << std::hex << id.GetOffset(); in GetLiteralArrays()
358 prog_.literalarray_table.emplace(ss.str(), lit_arr); in GetLiteralArrays()
553 std::stringstream ss {}; in LocateTryBlock() local
554 ss << "try_begin_label_" << try_idx; in LocateTryBlock()
558 catch_block_pa->try_begin_label = ss.str(); in LocateTryBlock()
559 label_table->insert(std::pair<size_t, std::string>(try_begin_idx, ss.str())); in LocateTryBlock()
[all …]

12345