Home
last modified time | relevance | path

Searched refs:os (Results 1 - 25 of 756) sorted by relevance

12345678910>>...31

/arkcompiler/ets_runtime/ecmascript/
H A Ddump.cpp485 static void DumpArrayClass(const TaggedArray *arr, std::ostream &os) in DumpArrayClass() argument
489 os << " <TaggedArray[" << std::dec << len << "]>\n"; in DumpArrayClass()
493 os << std::right << std::setw(DUMP_PROPERTY_OFFSET) << i << ": "; in DumpArrayClass()
494 val.DumpTaggedValue(os); in DumpArrayClass()
495 os << "\n"; in DumpArrayClass()
500 static void DumpMutantTaggedArray(const MutantTaggedArray *arr, std::ostream &os) in DumpMutantTaggedArray() argument
504 os << " <MutantTaggedArray[" << std::dec << len << "]>\n"; in DumpMutantTaggedArray()
507 os << std::right << std::setw(DUMP_PROPERTY_OFFSET) << i << ": "; in DumpMutantTaggedArray()
508 os << std::left << std::setw(DUMP_TYPE_OFFSET) << "[JSTaggedType] : " << val.GetRawData(); in DumpMutantTaggedArray()
509 os << "\ in DumpMutantTaggedArray()
513 DumpCOWMutantTaggedArray(const COWMutantTaggedArray *arr, std::ostream &os) DumpCOWMutantTaggedArray() argument
526 DumpConstantPoolClass(const ConstantPool *pool, std::ostream &os) DumpConstantPoolClass() argument
541 DumpStringClass(const EcmaString *str, std::ostream &os) DumpStringClass() argument
548 DumpPropertyKey(JSTaggedValue key, std::ostream &os) DumpPropertyKey() argument
551 DumpStringClass(EcmaString::Cast(key.GetTaggedObject()), os); DumpPropertyKey() local
567 DumpAttr(const PropertyAttributes &attr, bool fastMode, std::ostream &os) DumpAttr() argument
602 DumpHClass(const JSHClass *jshclass, std::ostream &os, bool withDetail) DumpHClass() argument
670 DumpClass(TaggedObject *obj, std::ostream &os) DumpClass() argument
673 DumpHClass(JSHClass::Cast(obj), os, true); DumpClass() local
676 DumpObject(TaggedObject *obj, std::ostream &os) DumpObject() argument
693 DumpArrayClass(TaggedArray::Cast(obj), os); DumpObject() local
696 DumpMutantTaggedArray(MutantTaggedArray::Cast(obj), os); DumpObject() local
699 DumpCOWMutantTaggedArray(COWMutantTaggedArray::Cast(obj), os); DumpObject() local
702 DumpConstantPoolClass(ConstantPool::Cast(obj), os); DumpObject() local
725 DumpStringClass(EcmaString::Cast(obj), os); DumpObject() local
1387 DumpAttr(GetAttributes(hashIndex), false, os); Dump() local
1406 DumpAttr(GetAttributes(hashIndex), false, os); Dump() local
1425 DumpAttr(GetAttributes(hashIndex), false, os); Dump() local
1882 DumpTaggedTreeEntry(T tree, std::ostream &os, int index, bool isMap = false) DumpTaggedTreeEntry() argument
1946 DumpTaggedTreeEntry(const_cast<TaggedTreeMap *>(this), os, index, true); Dump() local
2030 DumpTaggedTreeEntry(const_cast<TaggedTreeSet *>(this), os, index); Dump() local
[all...]
/arkcompiler/runtime_core/static_core/abc2program/
H A Dprogram_dump.cpp25 void PandasmProgramDumper::Dump(std::ostream &os, const pandasm::Program &program) const in Dump() argument
27 os << std::flush; in Dump()
28 DumpAbcFilePath(os); in Dump()
29 DumpProgramLanguage(os, program); in Dump()
30 DumpLiteralArrayTable(os, program); in Dump()
31 DumpRecordTable(os, program); in Dump()
32 DumpFunctionTable(os, program); in Dump()
40 void PandasmProgramDumper::DumpAbcFilePath(std::ostream &os) const in DumpAbcFilePath()
45 os << DUMP_TITLE_SOURCE_BINARY << file_->GetFilename() << DUMP_CONTENT_DOUBLE_ENDL; in DumpAbcFilePath()
48 void PandasmProgramDumper::DumpProgramLanguage(std::ostream &os, cons argument
55 DumpLiteralArrayTable(std::ostream &os, const pandasm::Program &program) const DumpLiteralArrayTable() argument
64 DumpLiteralArrayTableWithKey(std::ostream &os, const pandasm::Program &program) const DumpLiteralArrayTableWithKey() argument
74 DumpLiteralArrayWithKey(std::ostream &os, const std::string &key, const pandasm::LiteralArray &litArray, const pandasm::Program &program) const DumpLiteralArrayWithKey() argument
85 DumpLiteralArrayTableWithoutKey(std::ostream &os, const pandasm::Program &program) const DumpLiteralArrayTableWithoutKey() argument
95 DumpRecordTable(std::ostream &os, const pandasm::Program &program) const DumpRecordTable() argument
106 DumpRecord(std::ostream &os, const pandasm::Record &record) const DumpRecord() argument
118 DumpFieldList(std::ostream &os, const pandasm::Record &record) const DumpFieldList() argument
132 DumpField(std::ostream &os, const pandasm::Field &field) const DumpField() argument
138 DumpMetaData(std::ostream &os, const pandasm::ItemMetadata &meta) const DumpMetaData() argument
181 DumpRecordSourceFile(std::ostream &os, const pandasm::Record &record) const DumpRecordSourceFile() argument
186 DumpFunctionTable(std::ostream &os, const pandasm::Program &program) const DumpFunctionTable() argument
196 DumpFunction(std::ostream &os, const pandasm::Function &function) const DumpFunction() argument
227 DumpInstructions(std::ostream &os, const pandasm::Function &function) const DumpInstructions() argument
247 DumpStrings(std::ostream &os, const pandasm::Program &program) const DumpStrings() argument
256 DumpStringsByStringTable(std::ostream &os, const AbcStringTable &stringTable) const DumpStringsByStringTable() argument
264 DumpStringsByProgram(std::ostream &os, const pandasm::Program &program) const DumpStringsByProgram() argument
275 DumpLiteralArray(std::ostream &os, const pandasm::LiteralArray &litArray, const pandasm::Program &program) const DumpLiteralArray() argument
353 DumpValues(const pandasm::LiteralArray &litArray, const bool isConst, std::ostream &os, const pandasm::Program &program) const DumpValues() argument
[all...]
H A Dprogram_dump.h32 void Dump(std::ostream &os, const pandasm::Program &program) const;
36 void DumpAbcFilePath(std::ostream &os) const;
37 void DumpProgramLanguage(std::ostream &os, const pandasm::Program &program) const;
38 void DumpLiteralArrayTable(std::ostream &os, const pandasm::Program &program) const;
39 void DumpLiteralArrayTableWithKey(std::ostream &os, const pandasm::Program &program) const;
40 void DumpLiteralArrayTableWithoutKey(std::ostream &os, const pandasm::Program &program) const;
41 void DumpLiteralArrayWithKey(std::ostream &os, const std::string &key, const pandasm::LiteralArray &litArray,
43 void DumpRecordTable(std::ostream &os, const pandasm::Program &program) const;
44 void DumpRecord(std::ostream &os, const pandasm::Record &record) const;
45 void DumpFieldList(std::ostream &os, cons
[all...]
/arkcompiler/ets_frontend/test262/
H A Dconfig.py22 import os namespace
30 DATA_DIR = os.path.join("test262", "data")
31 ESHOST_DIR = os.path.join("test262", "eshost")
32 HARNESS_DIR = os.path.join("test262", "harness")
34 BASE_OUT_DIR = os.path.join("out", "test262")
36 CUR_FILE_DIR = os.path.dirname(__file__)
37 CODE_ROOT = os.path.abspath(os.path.join(CUR_FILE_DIR, "../../.."))
45 TEST_FULL_DIR = os.path.join(DATA_DIR, "test")
46 TEST_ES5_DIR = os
[all...]
/arkcompiler/runtime_core/abc2program/
H A Dprogram_dump.cpp20 #include "os/file.h"
24 void PandasmProgramDumper::Dump(std::ostream &os, const pandasm::Program &program) in Dump() argument
27 os << std::flush; in Dump()
28 DumpAbcFilePath(os); in Dump()
29 DumpProgramLanguage(os); in Dump()
30 DumpLiteralArrayTable(os); in Dump()
31 DumpRecordTable(os); in Dump()
32 DumpFunctionTable(os); in Dump()
33 DumpStrings(os); in Dump()
41 void PandasmProgramDumper::DumpAbcFilePath(std::ostream &os) cons
106 DumpRecord(std::ostream &os, const pandasm::Record &record) const DumpRecord() argument
123 DumpRecordMetaData(std::ostream &os, const pandasm::Record &record) const DumpRecordMetaData() argument
133 DumpFieldList(std::ostream &os, const pandasm::Record &record) const DumpFieldList() argument
142 DumpField(std::ostream &os, const pandasm::Field &field) const DumpField() argument
149 DumpFieldMetaData(std::ostream &os, const pandasm::Field &field) const DumpFieldMetaData() argument
156 DumpAnnotationData(std::ostream &os, const pandasm::AnnotationData &anno) const DumpAnnotationData() argument
169 DumpArrayValue(std::ostream &os, const pandasm::ArrayValue &array) const DumpArrayValue() argument
175 DumpScalarValue(std::ostream &os, const pandasm::ScalarValue &scalar) const DumpScalarValue() argument
227 DumpRecordSourceFile(std::ostream &os, const pandasm::Record &record) const DumpRecordSourceFile() argument
232 DumpFunctionTable(std::ostream &os) DumpFunctionTable() argument
242 DumpFunction(std::ostream &os, const pandasm::Function &function) DumpFunction() argument
253 DumpFunctionKind(std::ostream &os, const pandasm::Function &function) const DumpFunctionKind() argument
259 DumpFunctionAnnotations(std::ostream &os, const pandasm::Function &function) const DumpFunctionAnnotations() argument
267 DumpFunctionHead(std::ostream &os, const pandasm::Function &function) const DumpFunctionHead() argument
276 DumpFunctionReturnType(std::ostream &os, const pandasm::Function &function) const DumpFunctionReturnType() argument
281 DumpFunctionName(std::ostream &os, const pandasm::Function &function) const DumpFunctionName() argument
286 DumpFunctionParams(std::ostream &os, const pandasm::Function &function) const DumpFunctionParams() argument
299 DumpFunctionParamAtIndex(std::ostream &os, const pandasm::Function::Parameter &param, size_t idx) const DumpFunctionParamAtIndex() argument
306 DumpFunctionAttributes(std::ostream &os, const pandasm::Function &function) const DumpFunctionAttributes() argument
311 DumpFunctionBody(std::ostream &os, const pandasm::Function &function) DumpFunctionBody() argument
319 DumpFunctionIns(std::ostream &os, const pandasm::Function &function) DumpFunctionIns() argument
328 DumpOriginalFunctionIns(std::ostream &os, const pandasm::Function &function) DumpOriginalFunctionIns() argument
341 DumpNormalizedFunctionIns(std::ostream &os, const pandasm::Function &function) DumpNormalizedFunctionIns() argument
382 DumpFinalIns(std::ostream &os) DumpFinalIns() argument
494 DumpFunctionCatchBlocks(std::ostream &os, const pandasm::Function &function) const DumpFunctionCatchBlocks() argument
503 DumpOriginalFunctionCatchBlocks(std::ostream &os, const pandasm::Function &function) const DumpOriginalFunctionCatchBlocks() argument
511 DumpNormalizedFunctionCatchBlocks(std::ostream &os, const pandasm::Function &function) const DumpNormalizedFunctionCatchBlocks() argument
547 DumpCatchBlock(std::ostream &os, const pandasm::Function::CatchBlock &catch_block) const DumpCatchBlock() argument
566 DumpFunctionDebugInfo(std::ostream &os, const pandasm::Function &function) DumpFunctionDebugInfo() argument
682 SerializeLiteralsAtIndex( const pandasm::LiteralArray &lit_array, std::stringstream &os, size_t i) const SerializeLiteralsAtIndex() argument
730 SerializeNestedLiteralArrayById( std::stringstream &os, const std::string &literal_array_id_name) const SerializeNestedLiteralArrayById() argument
[all...]
H A Dprogram_dump.h29 void Dump(std::ostream &os, const pandasm::Program &program);
33 void DumpAbcFilePath(std::ostream &os) const;
34 void DumpProgramLanguage(std::ostream &os) const;
35 void DumpLiteralArrayTable(std::ostream &os) const;
36 void DumpRecordTable(std::ostream &os) const;
37 void DumpRecord(std::ostream &os, const pandasm::Record &record) const;
38 bool DumpRecordMetaData(std::ostream &os, const pandasm::Record &record) const;
39 void DumpFieldList(std::ostream &os, const pandasm::Record &record) const;
40 void DumpField(std::ostream &os, const pandasm::Field &field) const;
41 void DumpFieldMetaData(std::ostream &os, cons
[all...]
/arkcompiler/ets_frontend/test/scripts/sdk_test/
H A Dpreparation.py22 import os namespace
30 old_env = os.environ.copy()
34 java_home = os.path.join(deveco_path, 'jbr')
35 tool_home = os.path.join(deveco_path)
36 sdk_home = os.path.join(tool_home, 'sdk')
37 node_js_path = os.path.join(deveco_path, 'tools', 'node')
39 node_js_path = os.path.join(node_js_path, 'bin')
40 tool_home = os.path.join(tool_home, 'Contents ')
41 java_path = os.path.join(java_home, 'bin')
42 ohpm_path = os
[all...]
/arkcompiler/runtime_core/static_core/runtime/mem/gc/
H A Dgc_root_type.cpp20 std::ostream &operator<<(std::ostream &os, RootType rootType) in operator <<() argument
24 os << "ROOT_UNKNOWN"; in operator <<()
27 os << "ROOT_CLASS"; in operator <<()
30 os << "ROOT_FRAME"; in operator <<()
33 os << "ROOT_THREAD"; in operator <<()
36 os << "ROOT_CLASS_LINKER"; in operator <<()
39 os << "ROOT_TENURED"; in operator <<()
42 os << "ROOT_VM"; in operator <<()
45 os << "ROOT_NATIVE_GLOBAL"; in operator <<()
48 os << "ROOT_NATIVE_LOCA in operator <<()
[all...]
/arkcompiler/ets_frontend/testTs/
H A Dutils.py21 import os namespace
35 if not os.path.exists(path):
36 os.makedirs(path)
40 if os.path.exists(path):
45 if os.path.exists(path):
46 os.remove(path)
68 fd = os.open(path, os.O_APPEND|os.O_CREAT|os
[all...]
H A Dconfig.py21 import os namespace
28 EXPECT_DIR = os.path.join("testTs", "expect")
29 OUT_DIR = os.path.join("out")
30 OUT_TEST_DIR = os.path.join("out", "testTs")
31 OUT_RESULT_FILE = os.path.join("out", "testTs", "result.txt")
32 TEST_DIR = os.path.join("testTs")
33 TS_CASES_DIR = os.path.join(".", "testTs", "test")
34 SKIP_FILE_PATH = os.path.join("testTs", "skip_tests.json")
35 CUR_FILE_DIR = os.path.dirname(__file__)
36 IMPORT_FILE_PATH = os
[all...]
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/tests/
H A Djson_object_matcher.h75 void DescribeKeyTo(OutputStream *os) const in DescribeKeyTo()
77 *os << "property " << std::quoted(key) << " of type " << PropertyTypeName<PropertyType>(); in DescribeKeyTo()
80 void DescribeTo(std::ostream *os) const in DescribeTo()
82 DescribeKeyTo(os); in DescribeTo()
83 *os << " which "; in DescribeTo()
84 value_matcher.DescribeTo(os); in DescribeTo()
98 void DescribeTo(std::ostream *os) const override
100 *os << "has ";
101 property_.DescribeTo(os);
104 void DescribeNegationTo(std::ostream *os) cons
135 DescribeInternalTo(os); global() variable
141 DescribeInternalTo(os); global() variable
[all...]
/arkcompiler/runtime_core/static_core/runtime/
H A Dgc_task.cpp44 std::ostream &operator<<(std::ostream &os, const GCTaskCause &cause) in operator <<() argument
48 os << "Invalid"; in operator <<()
51 os << "PygoteFork"; in operator <<()
54 os << "StartupComplete"; in operator <<()
57 os << "NativeAlloc"; in operator <<()
60 os << "Explicit"; in operator <<()
63 os << "Threshold"; in operator <<()
66 os << "Mixed"; in operator <<()
69 os << "Young"; in operator <<()
72 os << "OO in operator <<()
81 operator <<(std::ostream &os, const GCCollectionType &collectionType) operator <<() argument
[all...]
H A Dclass.cpp27 std::ostream &operator<<(std::ostream &os, const Class::State &state) in operator <<() argument
31 os << "INITIAL"; in operator <<()
35 os << "LOADED"; in operator <<()
39 os << "VERIFIED"; in operator <<()
43 os << "INITIALIZING"; in operator <<()
47 os << "ERRONEOUS"; in operator <<()
51 os << "INITIALIZED"; in operator <<()
60 return os; in operator <<()
119 void Class::DumpClass(std::ostream &os, size_t flags) in DumpClass() argument
122 os << GetDescripto in DumpClass()
[all...]
/arkcompiler/ets_frontend/ets2panda/public/headers_parser/
H A Dlog_tools.py19 import os namespace
35 os.makedirs(os.path.join(LIB_GEN_FOLDER, "./gen/logs"), exist_ok=True)
54 path = os.path.join(LIB_GEN_FOLDER, "./gen/logs/warning_logs.txt")
56 with os.fdopen(os.open(path, os.O_WRONLY | os.O_CREAT | os.O_APPEND, mode=511), "a", encoding="utf-8") as f:
61 path = os
[all...]
H A Druntime_collections.py20 import os namespace
37 "log_file": os.path.join(LIB_GEN_FOLDER, "./gen/logs/unreachable.txt"),
41 "log_file": os.path.join(LIB_GEN_FOLDER, "./gen/logs/skip.txt"),
45 "log_file": os.path.join(LIB_GEN_FOLDER, "./gen/logs/generated_yamls.txt"),
52 "yaml_file": os.path.join(LIB_GEN_FOLDER, "./gen/headers/allEnums.yaml"),
56 "yaml_file": os.path.join(LIB_GEN_FOLDER, "./gen/headers/pathsToHeaders.yaml"),
76 headers_path = os.path.join(LIB_GEN_FOLDER, "./gen/headers")
77 if not os.path.exists(headers_path):
78 os.makedirs(headers_path)
86 os
[all...]
/arkcompiler/toolchain/build/prebuilts_download/
H A Dutil.py17 import os namespace
24 if not os.path.exists(input_file):
43 if not os.path.exists(input_file):
60 file_dir = os.path.dirname(os.path.abspath(output_file))
61 flags = os.O_WRONLY | os.O_CREAT | os.O_EXCL
63 if not os.path.exists(file_dir):
64 os
[all...]
/arkcompiler/ets_runtime/test/quickfix/
H A Dgenerate_js_and_merge_file.py23 import os namespace
167 input_fd = os.open(input_file, os.O_RDONLY, 0o755)
168 with os.fdopen(input_fd, 'r') as fp:
173 output_fd = os.open(output_file, os.O_WRONLY | os.O_CREAT | os.O_TRUNC, 0o755)
174 if os.path.exists(output_file):
175 with os
[all...]
/arkcompiler/runtime_core/libpandabase/utils/
H A Djson_builder.cpp25 void JsonEscape(std::ostream &os, std::string_view string) in JsonEscape() argument
27 os << '"'; in JsonEscape()
34 os << string.substr(0, pos); in JsonEscape()
40 os << '\\'; in JsonEscape()
45 os << *iter; in JsonEscape()
48 os << 'b'; in JsonEscape()
51 os << 'f'; in JsonEscape()
54 os << 'n'; in JsonEscape()
57 os << 'r'; in JsonEscape()
60 os << ' in JsonEscape()
[all...]
/arkcompiler/runtime_core/static_core/libpandabase/utils/
H A Djson_builder.cpp25 void JsonEscape(std::ostream &os, std::string_view string) in JsonEscape() argument
27 os << '"'; in JsonEscape()
34 os << string.substr(0, pos); in JsonEscape()
40 os << '\\'; in JsonEscape()
45 os << *iter; in JsonEscape()
48 os << 'b'; in JsonEscape()
51 os << 'f'; in JsonEscape()
54 os << 'n'; in JsonEscape()
57 os << 'r'; in JsonEscape()
60 os << ' in JsonEscape()
[all...]
/arkcompiler/ets_runtime/test/regresstest/
H A Dregress_test_config.py20 import os namespace
27 CURRENT_PATH = os.getcwd()
28 TEST_TOOL_FILE_DIR = os.path.dirname(__file__)
29 CODE_ROOT = os.path.abspath(os.path.join(TEST_TOOL_FILE_DIR, "../../../.."))
30 PROJECT_ROOT = os.path.abspath(os.path.join(TEST_TOOL_FILE_DIR, "../.."))
36 PROJECT_BASE_OUT_DIR = os.path.join(PROJECT_ROOT, "out")
37 REGRESS_BASE_TEST_DIR = os.path.join(PROJECT_ROOT, "test", "regresstest")
38 REGRESS_TEST_CASE_DIR = os
[all...]
/arkcompiler/ets_frontend/es2panda/test/bytecode_file_size_comparison/
H A Dsize_compare.py21 import os namespace
27 TEST_ROOT = os.path.dirname(os.path.abspath(__file__))
91 if not os.path.isfile(arg):
93 return os.path.abspath(arg)
97 if not os.path.isdir(arg):
99 return os.path.abspath(arg)
133 args.d8_path = os.path.join(d8_path, D8_EXECUTABLE_PROGRAM_PATH)
143 args.r8_path = os.path.join(r8_path, R8_EXECUTABLE_PROGRAM_PATH)
144 args.rt_path = os
[all...]
/arkcompiler/ets_frontend/test/scripts/performance_test/
H A Dperformance_config.py17 import os namespace
33 self.cmd_prefix = os.path.join(self.deveco_path, 'tools', 'hvigor', 'bin', 'hvigorw.js')
34 self.node_js_path = os.path.join(self.deveco_path, 'tools', 'node', 'node.exe')
35 self.jbr_path = os.path.join(self.deveco_path, 'jbr')
136 setattr(config, 'name', os.path.basename(config.project_path))
168 mail_data_path = os.path.join(
169 os.path.dirname(os.path.abspath(__file__)),
173 html_file_path = os.path.join(
178 attach_path = os
[all...]
/arkcompiler/ets_frontend/es2panda/test/bytecode_file_size_comparison/test_cases/java_test_framework/
H A Drun_java.py21 import os namespace
31 if not os.path.isfile(arg):
33 return os.path.abspath(arg)
58 self.test_root = os.path.dirname(os.path.abspath(__file__))
70 if not os.path.isabs(case_path):
71 case_path = os.path.join(self.test_root, case_path)
72 abs_case_path = os.path.abspath(case_path)
77 if not os.path.isabs(directory):
78 directory = os
[all...]
/arkcompiler/runtime_core/libpandabase/tests/
H A Dunix_file_test.cpp21 #include "libpandabase/os/file.h"
28 os::file::File file1 = os::file::Open("./test_openfile.txt", os::file::Mode::READONLY); in HWTEST()
31 os::file::File file2 = os::file::Open("./test_openfile.txt", os::file::Mode::READWRITE); in HWTEST()
34 os::file::File file3 = os::file::Open("./test_openfile.txt", os in HWTEST()
[all...]
/arkcompiler/runtime_core/disassembler/tests/
H A Dgen_pa_file.py18 import os namespace
41 if os.path.isabs(out_dir) and not os.path.exists(out_dir):
42 os.makedirs(out_dir, mode)
91 os.kill(proc.pid, signal.SIGTERM)
102 for root, dirs, files in os.walk(directory, topdown=True):
105 return os.path.join(root, f)
118 if os.path.basename(tc_file) is not specifier:
154 merge_abc_binary = os.path.join(build_dir, 'merge_abc')
161 out_dependency_dir = os
[all...]

Completed in 12 milliseconds

12345678910>>...31