Home
last modified time | relevance | path

Searched refs:os (Results 1 – 25 of 248) sorted by relevance

12345678910

/arkcompiler/ets_runtime/ecmascript/
Ddump.cpp467 static void DumpArrayClass(const TaggedArray *arr, std::ostream &os) in DumpArrayClass() argument
471 os << " <TaggedArray[" << std::dec << len << "]>\n"; in DumpArrayClass()
475 os << std::right << std::setw(DUMP_PROPERTY_OFFSET) << i << ": "; in DumpArrayClass()
476 val.DumpTaggedValue(os); in DumpArrayClass()
477 os << "\n"; in DumpArrayClass()
482 static void DumpConstantPoolClass(const ConstantPool *pool, std::ostream &os) in DumpConstantPoolClass() argument
486 os << " <ConstantPool[" << std::dec << len << "]>\n"; in DumpConstantPoolClass()
490 os << std::right << std::setw(DUMP_PROPERTY_OFFSET) << i << ": "; in DumpConstantPoolClass()
491 val.DumpTaggedValue(os); in DumpConstantPoolClass()
492 os << "\n"; in DumpConstantPoolClass()
[all …]
/arkcompiler/ets_frontend/test262/
Dconfig.py22 import os
25 DATA_DIR = os.path.join("test262", "data")
26 ESHOST_DIR = os.path.join("test262", "eshost")
27 HARNESS_DIR = os.path.join("test262", "harness")
29 BASE_OUT_DIR = os.path.join("out", "test262")
31 CUR_FILE_DIR = os.path.dirname(__file__)
32 CODE_ROOT = os.path.abspath(os.path.join(CUR_FILE_DIR, "../../.."))
37 TEST_FULL_DIR = os.path.join(DATA_DIR, "test")
38 TEST_ES5_DIR = os.path.join(DATA_DIR, "test_es51")
39 TEST_ES2015_DIR = os.path.join(DATA_DIR, "test_es2015")
[all …]
Drun_test262.py25 import os
126 full_env = dict(os.environ)
143 ark_frontend_binary = os.path.join(ARK_FRONTEND_BINARY_LIST[0])
145 ark_frontend_binary = os.path.join(args.ark_frontend_binary)
147 ts2abc_build_dir = os.path.join(os.path.dirname(
148 os.path.realpath(ark_frontend_binary)), "..")
150 if not os.path.exists(os.path.join(ts2abc_build_dir, "package.json")) and \
151 not os.path.exists(os.path.join(ts2abc_build_dir, "..", "package.json")):
154 if os.path.exists(os.path.join(ts2abc_build_dir, "..", "package.json")) and \
155 not os.path.exists(os.path.join(ts2abc_build_dir, "package.json")):
[all …]
Drun_sunspider.py22 import os
154 os.kill(proc.pid, signal.SIGTERM)
263 output_file = os.path.splitext(dependency.replace(DATA_DIR, BASE_OUT_DIR))[0]
300 output_file = os.path.splitext(dependency.replace(DATA_DIR, BASE_OUT_DIR))[0]
301 output_abc = os.path.basename(f"{output_file}.abc")
302 file_dir = os.path.split(self.js_file)[0]
303 is_apart_abc_existed = os.path.exists(file_dir + "/" + output_abc)
304 dependency_file_prefix = os.path.basename(dependency)[:-3]
316 file_dir = os.path.split(self.js_file)[0]
317 proto_abc_file = ".".join([os.path.splitext(os.path.basename(self.js_file))[0], "abc"])
[all …]
/arkcompiler/ets_frontend/test/scripts/sdk_test/
Dpreparation.py22 import os
35 old_env = os.environ.copy()
38 java_home = os.path.join(options.configs.get('deveco_path'), 'jbr')
41 node_js_path = os.path.join(node_js_path, 'bin')
42 java_path = os.path.join(java_home, 'bin')
44 os.environ['PATH'] = os.pathsep.join(
45 [java_path, node_js_path]) + os.pathsep + old_env_path
46 os.environ['JAVA_HOME'] = java_home
53 java_path = os.path.join(options.configs.get('deveco_path'), 'jbr')
54 if not os.path.exists(java_path):
[all …]
Dexecution.py22 import os
39 output_dir = os.path.dirname(output_file)
40 output_file_name = os.path.basename(output_file)
45 new_module_name_output_file = os.path.join(
64 abc_path = os.path.join(uncompressed_output_file, 'ets')
65 modules_abc_path = os.path.join(abc_path, 'modules.abc')
67 if not modules_pa or not os.path.exists(modules_pa):
95 1].lstrip(os.path.sep)
116 name, ext = os.path.splitext(file)
122 cache_path = os.path.join(
[all …]
/arkcompiler/ets_frontend/testTs/
Dutils.py21 import os
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.O_WRONLY)
69 with os.fdopen(fd, 'a+') as utils_append:
82 ark_frontend_tool = os.path.join(DEFAULT_ARK_FRONTEND_TOOL)
84 ark_frontend_tool = os.path.join(args.ark_frontend_tool)
[all …]
Dconfig.py21 import os
26 EXPECT_DIR = os.path.join("testTs", "expect")
27 OUT_DIR = os.path.join("out")
28 OUT_TEST_DIR = os.path.join("out", "testTs")
29 OUT_RESULT_FILE = os.path.join("out", "testTs", "result.txt")
30 TEST_DIR = os.path.join("testTs")
31 TS_CASES_DIR = os.path.join(".", "testTs", "test")
32 SKIP_FILE_PATH = os.path.join("testTs", "skip_tests.json")
33 CUR_FILE_DIR = os.path.dirname(__file__)
34 IMPORT_FILE_PATH = os.path.join(CUR_FILE_DIR, "import_tests.json")
[all …]
Drun_testTs.py21 import os
57 if os.path.isfile(filepath):
69 if not os.path.getsize(filepath):
74 path_list = file.split(os.sep)
76 file = "." + os.sep + file
80 ts_list = temp_out_file_path.split(os.sep)
82 ts_dir_path = os.sep.join(ts_list)
83 path_list = out_file_path.split(os.sep)
85 out_dir_path = os.sep.join(path_list)
86 if not os.path.exists(out_dir_path):
[all …]
/arkcompiler/ets_frontend/ts2panda/scripts/
Drun.py21 import os
54 os.environ["PATH"] = f'{node_dir}{jsoner_format}{os.environ["PATH"]}'
57 def run_command(cmd, execution_path=os.getcwd()):
67 run_command(['cp', '-f', os.path.join(src_dir, "package.json"),
68 os.path.join(dist_dir, "package.json")])
69 run_command(['cp', '-f', os.path.join(src_dir, "package-lock.json"),
70 os.path.join(dist_dir, "package-lock.json")])
74 os.path.join(dist_dir, "node_modules")])
81 if os.path.exists(os.path.join(dist_dir, inp_dir)):
82 shutil.rmtree(os.path.join(dist_dir, inp_dir), ignore_errors=True)
[all …]
Drun_tests.py20 import os
26 CUR_FILE_DIR = os.path.dirname(__file__)
27 TS2PANDA_DIR = os.path.abspath(os.path.join(CUR_FILE_DIR, ".."))
28 CODE_ROOT = os.path.abspath(os.path.join(TS2PANDA_DIR, "../../.."))
29 DEFAULT_TARGET_DIR = os.path.join(
31 DEFAULT_NODE_MODULE = os.path.join(
57 def run_command(cmd, execution_path=os.getcwd()):
88 run_command(['cp', '-f', os.path.join(src_dir, "package.json"),
89 os.path.join(dist_dir, "package.json")])
90 run_command(['cp', '-f', os.path.join(src_dir, "package-lock.json"),
[all …]
/arkcompiler/runtime_core/libpandabase/utils/
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 << 't'; in JsonEscape()
[all …]
Dbit_memory_region-inl.h26 void BitMemoryRegion<Base>::Dump(std::ostream &os) const in Dump() argument
29 os << "0x"; in Dump()
38os << std::setw(static_cast<int>(width / BITS_PER_HEX_DIGIT)) << std::setfill('0'); in Dump()
40 os << std::hex << val; in Dump()
49 os << '0'; in Dump()
52 os << std::hex << ReadAll(); in Dump()
54 os << std::dec; in Dump()
58 inline std::ostream &operator<<(std::ostream &os, const BitMemoryRegion<T> &region)
60 region.Dump(os);
61 return os;
/arkcompiler/runtime_core/libpandabase/tests/
Dunix_file_test.cpp28 os::file::File file1 = os::file::Open("./test_openfile.txt", os::file::Mode::READONLY);
31 os::file::File file2 = os::file::Open("./test_openfile.txt", os::file::Mode::READWRITE);
34 os::file::File file3 = os::file::Open("./test_openfile.txt", os::file::Mode::WRITEONLY);
37 os::file::File file4 = os::file::Open("./test_openfile.txt", os::file::Mode::READWRITECREATE);
Dnative_bytes_from_mallinfo_test.cpp27 size_t old_bytes = panda::os::mem::GetNativeBytesFromMallinfo(); in TEST()
35 new_bytes = panda::os::mem::GetNativeBytesFromMallinfo(); in TEST()
44 new_bytes = panda::os::mem::GetNativeBytesFromMallinfo(); in TEST()
52 new_bytes = panda::os::mem::GetNativeBytesFromMallinfo(); in TEST()
60 new_bytes = panda::os::mem::GetNativeBytesFromMallinfo(); in TEST()
63 size_t bytes = panda::os::mem::GetNativeBytesFromMallinfo(); in TEST()
64 ASSERT_EQ(bytes, panda::os::mem::DEFAULT_NATIVE_BYTES_FROM_MALLINFO); in TEST()
/arkcompiler/ets_frontend/test/scripts/performance_test/
Dperformance_config.py17 import os
64 self.node_js_path = r"%s/nodejs" % os.environ['USERPROFILE']
145 mail_data_path = os.path.join(
146 os.path.dirname(os.path.abspath(__file__)),
150 html_file_path = os.path.join(
155 attach_path = os.path.join(
163 LogType.FULL: os.path.join(mail_data_path, 'debug_full_time.csv'),
164 LogType.INCREMENTAL: os.path.join(mail_data_path, 'debug_incremental_time.csv'),
165 LogType.SIZE: os.path.join(mail_data_path, 'debug_size.csv')
168 LogType.FULL: os.path.join(mail_data_path, 'release_full_time.csv'),
[all …]
Dperformance_entry.py17 import os
40 if os.path.exists(performance_config.MailPicConfig.html_file_path):
41 os.remove(performance_config.MailPicConfig.html_file_path)
42 if os.path.exists(performance_config.MailPicConfig.attach_path):
43 os.remove(performance_config.MailPicConfig.attach_path)
44 if not os.path.exists(performance_config.MailPicConfig.mail_data_path):
45 os.mkdir(performance_config.MailPicConfig.mail_data_path)
54 if os.path.exists(pic_path):
55 os.remove(pic_path)
115 with os.fdopen(
[all …]
/arkcompiler/toolchain/build/prebuilts_download/
Dutil.py17 import os
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 if not os.path.exists(file_dir):
62 os.makedirs(file_dir, exist_ok=True)
74 if os.path.exists(output_file) and os.path.isfile(output_file):
90 file_dir = os.path.dirname(os.path.abspath(output_file))
91 if not os.path.exists(file_dir):
92 os.makedirs(file_dir, exist_ok=True)
Dprebuilts_download.py16 import os
68 mark_file_dir = os.path.join(code_dir, unzip_dir)
70 mark_file_path = os.path.join(mark_file_dir, mark_file_name)
72 return os.path.exists(mark_file_path)
80 bin_file = os.path.basename(huaweicloud_url)
84 dest_dir = os.path.join(code_dir, unzip_dir)
125 abs_unzip_dir = os.path.join(code_dir, unzip_dir)
126 if not os.path.exists(abs_unzip_dir):
127 os.makedirs(abs_unzip_dir)
133 … local_file = os.path.join(bin_dir, ''.join([md5_huaweicloud_url, '.', bin_file]))
[all …]
/arkcompiler/ets_frontend/test/scripts/auto_xts_test/
Dget_result.py18 import os
28 file_list = os.listdir(path)
30 summary_report = os.path.join(path, file_list[-1], "summary_report.html")
31 if (os.path.exists(summary_report)):
34 details_report = os.path.join(path, file_list[-1], "details_report.html")
35 if (os.path.exists(details_report)):
38 failures_report = os.path.join(path, file_list[-1], "failures_report.html")
39 if (os.path.exists(failures_report)):
/arkcompiler/runtime_core/libark_defect_scan_aux/tests/
Dgenerate_abc_file.py17 import os
34 if os.path.isabs(out_dir) and not os.path.exists(out_dir):
35 os.makedirs(out_dir, mode)
46 tc_name = os.path.basename(testcase)
51 out_dir = os.path.join(dst_dir, 'defectscanaux_tests',
55 cmd.append(os.path.join(out_dir, tc_name + '.abc'))
56 tc_path = os.path.join(tc_dir, testcase)
62 ts2js = os.path.join(args.build_dir, 'src/index.js')
63 tc_dir = os.path.dirname(args.testcase_list)
/arkcompiler/ets_runtime/test/
Drun_ts_test262.py16 import os
21 asserts = os.path.join(os.getcwd(), "test262", 'assert')
27 if not os.path.isabs(arg):
29 if not os.path.exists(arg):
31 return os.path.abspath(arg)
35 if not os.path.isdir(arg):
38 return os.path.abspath(arg)
63 file_or_dir = os.listdir(dir_path)
65 file_or_dir_path = os.path.join(dir_path, fileOrDir)
66 if os.path.isfile(file_or_dir_path):
[all …]
/arkcompiler/runtime_core/bytecode_optimizer/tests/benchmark/
Drun_benchmark.py17 import os
22 SRC_PATH = os.path.realpath(os.path.dirname(__file__))
23 testdir = os.path.join(SRC_PATH, "suite")
24 bindir = os.path.join(SRC_PATH, "..", "..", "..", "build", "bin")
28 … help="Directory with tests (*.class or *.pa). Default: './%s'" % os.path.relpath(testdir))
30 … help="Directory with compiled binaries (eg.: c2p). Default: './%s'" % os.path.relpath(bindir))
35 % (os.path.relpath(os.path.join(bindir, "c2p")))),
38 % (os.path.relpath(os.path.join(bindir, "c2p")))),
114 c2p = os.path.join(bin_dir, "c2p")
115 if not os.path.exists(c2p):
[all …]
/arkcompiler/runtime_core/platforms/unix/libpandabase/
Dnative_stack.cpp23 namespace panda::os::unix::native_stack { namespace
27 …panda::os::unix::file::File cmdfile = panda::os::file::Open(file_name, panda::os::file::Mode::READ… in ReadOsFile()
28 panda::os::file::FileHolder fholder(cmdfile); in ReadOsFile()
41 panda::os::unix::file::File myfile(fd); in WriterOsFile()
42 panda::os::file::FileHolder fholder(myfile); in WriterOsFile()
/arkcompiler/runtime_core/libpandabase/mem/
Dcode_allocator.cpp26 const Alignment CodeAllocator::PAGE_LOG_ALIGN = GetLogAlignment(os::mem::GetPageSize());
54 ProtectCode(os::mem::MapRange<std::byte>(static_cast<std::byte *>(code_ptr), size)); in AllocateCode()
60 os::mem::MapRange<std::byte> CodeAllocator::AllocateCodeUnprotected(size_t size) in AllocateCodeUnprotected()
65 return os::mem::MapRange<std::byte>(nullptr, 0); in AllocateCodeUnprotected()
69 return os::mem::MapRange<std::byte>(static_cast<std::byte *>(code_ptr), size); in AllocateCodeUnprotected()
73 void CodeAllocator::ProtectCode(os::mem::MapRange<std::byte> mem_range) in ProtectCode()
80 os::memory::ReadLockHolder rlock(code_range_lock_); in InAllocatedCodeRange()
86 os::memory::WriteLockHolder rwlock(code_range_lock_); in CodeRangeUpdate()

12345678910