Home
last modified time | relevance | path

Searched full:write (Results 1 – 25 of 150) sorted by relevance

123456

/arkcompiler/ets_runtime/ecmascript/dfx/hprof/
Dheap_snapshot_json_serializer.cpp56 writer_->Write("{\"snapshot\":\n"); // 1. in SerializeSnapshotHeader()
57 writer_->Write("{\"meta\":\n"); // 2. in SerializeSnapshotHeader()
59 …writer_->Write("{\"node_fields\":[\"type\",\"name\",\"id\",\"self_size\",\"edge_count\",\"trace_no… in SerializeSnapshotHeader()
60 writer_->Write("\"detachedness\"],\n"); // 3. in SerializeSnapshotHeader()
62 …writer_->Write("\"node_types\":[[\"hidden\",\"array\",\"string\",\"object\",\"code\",\"closure\",\… in SerializeSnapshotHeader()
64 …writer_->Write("\"number\",\"native\",\"synthetic\",\"concatenated string\",\"slicedstring\",\"sym… in SerializeSnapshotHeader()
66 …writer_->Write("\"bigint\"],\"string\",\"number\",\"number\",\"number\",\"number\",\"number\"],\n"… in SerializeSnapshotHeader()
68 writer_->Write("\"edge_fields\":[\"type\",\"name_or_index\",\"to_node\"],\n"); // 5. in SerializeSnapshotHeader()
70 …writer_->Write("\"edge_types\":[[\"context\",\"element\",\"property\",\"internal\",\"hidden\",\"sh… in SerializeSnapshotHeader()
72 writer_->Write("\"weak\"],\"string_or_number\",\"node\"],\n"); // 6. in SerializeSnapshotHeader()
[all …]
Dheap_snapshot_json_serializer.h42 void Write(const CString &str) in Write() function
63 void Write(uint64_t num) in Write() function
65 Write(ToCString(num)); in Write()
/arkcompiler/ets_frontend/ts2panda/scripts/
Dgenerate_plugin.py103 output.write("/*%s * Generated from Java and JavaScript plugins by ts2abc.%s */%s%s"
106 output.write("package %s;%s"
108 output.write("%s" % os.linesep)
109 output.write("public class %s%s {%s"
112 # write method: getJsCode
124 output.write(" private static String getJsCode%s(){%s"
126 output.write(" return%s" % os.linesep)
128 output.write(" \"%s\";%s" % (line, os.linesep))
129 output.write(" }%s" % os.linesep)
131 output.write(" \"%s\\n\" +%s" % (line, os.linesep))
[all …]
Dts2abc.js51 process.stdout.write(`${data}`);
65 process.stdout.write("0.0.0.2");
67 process.stdout.write("9.0.0.0");
/arkcompiler/runtime_core/libpandabase/mem/
Dalloc_tracker.cpp42 static void Write(uint32_t val, std::ostream &out) in Write() function
44 out.write(reinterpret_cast<char *>(&val), sizeof(val)); in Write()
47 static void Write(const std::string &str, std::ostream &out) in Write() function
49 Write(static_cast<uint32_t>(str.size()), out); in Write()
50 out.write(str.c_str(), str.length()); in Write()
134 << "\nCheck the directory has write permissions or" in Dump()
145 Write(0, out); // number of items, will be updated later in Dump()
146 Write(0, out); // number of stacktraces, will be updated later in Dump()
151 // Write end marker to the current arena in Dump()
167 Write(alloc->GetTag(), out); in Dump()
[all …]
/arkcompiler/runtime_core/libpandafile/
Dfile_items.cpp101 if (!writer->Write(v)) { in WriteTaggedValue()
217 bool StringItem::Write(Writer *writer) in Write() function in panda::panda_file::StringItem
252 bool BaseClassItem::Write(Writer *writer) in Write() function in panda::panda_file::BaseClassItem
255 return name_.Write(writer); in Write()
336 if (!writer->Write<uint16_t>(iface->GetIndex(this))) { in WriteIfaces()
399 bool ClassItem::Write(Writer *writer) in Write() function in panda::panda_file::ClassItem
401 if (!BaseClassItem::Write(writer)) { in Write()
406 if (!writer->Write(offset)) { in Write()
427 if (!field->Write(writer)) { in Write()
433 if (!method->Write(writer)) { in Write()
[all …]
Dfile_item_container.cpp123 [[maybe_unused]] auto res = item_->Write(&writer); in Initialize()
559 if (!writer->Write<uint32_t>(class_map_.size())) { in WriteHeaderIndexInfo()
563 if (!writer->Write<uint32_t>(sizeof(File::Header))) { in WriteHeaderIndexInfo()
567 if (!writer->Write<uint32_t>(line_number_program_index_item_.GetNumItems())) { in WriteHeaderIndexInfo()
571 if (!writer->Write<uint32_t>(line_number_program_index_item_.GetOffset())) { in WriteHeaderIndexInfo()
575 if (!writer->Write<uint32_t>(literalarray_map_.size())) { in WriteHeaderIndexInfo()
580 if (!writer->Write<uint32_t>(literalarray_idx_offset)) { in WriteHeaderIndexInfo()
584 if (!writer->Write<uint32_t>(index_section_item_.GetNumHeaders())) { in WriteHeaderIndexInfo()
589 return writer->Write<uint32_t>(index_section_off); in WriteHeaderIndexInfo()
605 if (!writer->Write(checksum)) { in WriteHeader()
[all …]
Dfile_items.h242 virtual bool Write(Writer *writer) = 0;
419 bool Write([[maybe_unused]] Writer *writer) override in Write() function
443 bool Write(Writer *writer) override;
502 bool Write(Writer *writer) override;
540 bool Write(Writer *writer) override;
640 bool Write(Writer *writer) override;
714 bool Write(Writer *writer) override;
780 bool Write(Writer *writer) override;
933 bool Write(Writer *writer) override;
1002 bool Write(Writer *writer) override;
[all …]
/arkcompiler/runtime_core/scripts/
Dgc_pause_stats.py52 file.write(f"GC logs: {gc_log_path}\n\n")
53 file.write("| Parameter |")
56 file.write(f" {gc_type} |")
57 file.write("\n|:----|")
59 file.write(":---:|")
61 file.write(f"\n| {stat_type} |")
63 file.write(f" {stats.get(trigger_stat).get(stat_type)} |")
64 file.write("\n\n")
191 result_file.write("_Generated by gc pause stats script_\n\n")
192 result_file.write("All times in ms\n\n")
/arkcompiler/ets_runtime/test/moduletest/protobuf/
Dprotobuf.js16 var write = require("./write.js"); variable
18 write.int64('11');
/arkcompiler/runtime_core/libpandabase/utils/
Dbit_memory_stream.h38 void Write(size_t value, size_t length) in Write() function
44 region.Write(value, 0, length); in Write()
49 void Write(uint32_t *ptr, size_t payload_length, size_t length) in Write() function
59 region.Write(ptr[i], i * bits_per_word, bits_per_word); in Write()
64 region.Write(ptr[i], i * bits_per_word, payload_length % bits_per_word); in Write()
/arkcompiler/runtime_core/runtime/
Drelayout_profiler.cpp43 // write classItem in WriteProfileData()
45 auto ret = profile_file.Write(item_with_line.c_str(), item_with_line.size()); in WriteProfileData()
51 // write StringItem in WriteProfileData()
53 auto ret = profile_file.Write(item_with_line.c_str(), item_with_line.size()); in WriteProfileData()
59 // write CodeItem in WriteProfileData()
61 auto ret = profile_file.Write(item_with_line.c_str(), item_with_line.size()); in WriteProfileData()
/arkcompiler/runtime_core/runtime/tests/
Dinvokation_helper.h46 writer->Write(arg); in WriteArgImpl()
68 // So write additional float if necessary to prevent packing in WriteArgImpl()
71 writer->Write(0.0f); in WriteArgImpl()
74 writer->Write(arg); in WriteArgImpl()
93 writer.Write(method); in InvokeEntryPoint()
148 writer.Write(method); in InvokeEntryPoint()
171 writer.Write(method); in InvokeDynEntryPoint()
172 writer.Write(num_args); in InvokeDynEntryPoint()
/arkcompiler/ets_runtime/ecmascript/snapshot/mem/
Dsnapshot.cpp104 std::fstream write(realPath.c_str(), std::ios::out | std::ios::binary | std::ios::app); in SerializeBuiltins() local
105 if (!write.good()) { in SerializeBuiltins()
106 write.close(); in SerializeBuiltins()
110 if (write.tellg()) { in SerializeBuiltins()
112 write.close(); in SerializeBuiltins()
132 WriteToFile(write, nullptr, rootObjSize, processor); in SerializeBuiltins()
216 writer.write(reinterpret_cast<char *>(&hdr), sizeof(hdr)); in WriteToFile()
224 writer.write(reinterpret_cast<char *>(str), strSize); in WriteToFile()
230 writer.write(reinterpret_cast<const char *>(pf->GetBase()), pf->GetHeader()->file_size); in WriteToFile()
/arkcompiler/ets_frontend/test262/
Dutils.py103 LOGGING.debug(f"write file:{save_file}")
105 file.write(result + "\n")
125 sys.stderr.write(f'{TERM_BLUE}{cmd_type}{TERM_NORMAL}\n')
127 sys.stderr.write(''.join(f'{TERM_BLUE}{var}={val} \\{TERM_NORMAL}\n'
130 sys.stderr.write(f'\t{TERM_BLUE}{cmd_str}{TERM_NORMAL}\n')
131 sys.stderr.write("\n")
Drun_sunspider.py108 sys.stderr.write("Aborted (core dumped)")
110 sys.stderr.write("Aborted (core dumped)")
112 sys.stderr.write("Segmentation fault (core dumped)")
114 sys.stderr.write(str(msg))
116 sys.stderr.write("Unknown Error: " + str(retcode))
159 sys.stderr.write("\n")
160 sys.stderr.write(" ".join(cmd_args))
161 sys.stderr.write("\n")
459 sys.stderr.write("Wrong ark front-end option")
/arkcompiler/runtime_core/irtoc/lang/
Doutput.rb27 def self.write(line) singletonMethod in Output
28 @@file.write line
32 @@file.write @@indent_str
/arkcompiler/runtime_core/runtime/tooling/inspector/tests/
Dws_logger_test.cpp83 wsLogger.write(alevel::connect, "Connect"); in TEST_F()
85 wsLogger.write(alevel::app, "App"); in TEST_F()
100 wsLogger.write(level, elevel::channel_name(level)); in TEST_F()
103 EXPECT_DEATH(wsLogger.write(elevel::fatal, "fatal"), _); in TEST_F()
/arkcompiler/ets_frontend/testTs/
Dutils.py51 utils_clean.write("")
64 utils_write.write(write_content)
70 utils_append.write(add_content)
/arkcompiler/runtime_core/tests/cts-coverage-tool/bin/
Dspectrac.rb86 File.write(options.report, summary.report.to_yaml) if options.report
87 File.write(options.uncovered, summary.uncovered.to_yaml) if options.uncovered
88 File.write(options.full, fullspec.data.to_yaml) if options.full
89 File.write(options.orphaned, fullspec.orphaned.to_yaml) if options.orphaned
/arkcompiler/toolchain/build/prebuilts_download/
Dutil.py58 # Write json file data
88 # Write file data
95 output_f.write(content)
/arkcompiler/ets_runtime/ecmascript/
Daot_file_manager.cpp52 file.write(reinterpret_cast<char *>(&secInfoSize), sizeof(secInfoSize)); in SaveSectionsInfo()
60 file.write(reinterpret_cast<char *>(&secName), sizeof(secName)); in SaveSectionsInfo()
61 file.write(reinterpret_cast<char *>(&curSecSize), sizeof(curSecSize)); in SaveSectionsInfo()
62 file.write(reinterpret_cast<char *>(curSecAddr), curSecSize); in SaveSectionsInfo()
66 file.write(reinterpret_cast<char *>(&size), sizeof(size)); in SaveSectionsInfo()
67 file.write(reinterpret_cast<char *>(ptr.get()), size); in SaveSectionsInfo()
71 file.write(reinterpret_cast<char *>(&index), sizeof(index)); in SaveSectionsInfo()
72 file.write(reinterpret_cast<char *>(&cnt), sizeof(cnt)); in SaveSectionsInfo()
171 file.write(reinterpret_cast<char *>(&entryNum_), sizeof(entryNum_)); in Save()
172 file.write(reinterpret_cast<char *>(entries_.data()), sizeof(FuncEntryDes) * entryNum_); in Save()
[all …]
/arkcompiler/runtime_core/libpandabase/tests/
Dbit_memory_region_test.cpp45 region1.Write(value, 0); in TEST()
50 region2.Write(value, offset); in TEST()
71 region1.Write(value, 0, length); in TEST()
76 region2.Write(value, offset, length); in TEST()
/arkcompiler/ets_frontend/ts2panda/src/
Dts2panda.ts179 ts2abc.stdio[3].write(jsonStrUnicode + '\n');
216 ts2abc.stdio[3].write(jsonLiteralArrUnicode + '\n');
243 ts2abc.stdio[3].write(jsonOpt + '\n');
258 ts2abc.stdio[3].write(jsonRecord + '\n');
455 ts2abc.stdio[3].write(jsonFuncUnicode + '\n');
470 ts2abc.stdio[3].write(jsonModuleUnicode + '\n');
494 ts2abc.stdio[3].write(jsonTypeInfoUnicode + '\n');
509 ts2abc.stdio[3].write(jsonInputJsonFileContentUnicode + '\n');
524 ts2abc.stdio[3].write(jsonOutputFileNameUnicode + '\n');
526 ts2abc.stdio[3].write("*" + '\n');
/arkcompiler/runtime_core/runtime/mem/
Drendezvous.cpp29 // Acquire write MutatorLock in SafepointBegin()
37 // Release write MutatorLock in SafepointEnd()

123456