| /arkcompiler/runtime_core/static_core/plugins/ets/tests/checked/ |
| D | CMakeLists.txt | 3 # you may not use this file except in compliance with the License. 19 set(singleValues NAME FILE SUPPORT_RELEASE LIBCORE) 44 message(FATAL_ERROR "Mandatory FILE argument is not defined.") 47 file(MAKE_DIRECTORY "${TEST_DIR}") 53 # Compile assembly file 56 …COMMAND ${PANDA_RUN_PREFIX} $<TARGET_FILE:ark_asm> --log-file ${BUILD_LOG} ${ARG_FILE} ${BINARY_FI… 103 --test-file ${BINARY_FILE} 127 … panda_add_checked_test_ets(FILE ${CMAKE_CURRENT_SOURCE_DIR}/string_test.sts SUPPORT_RELEASE true) 128 panda_add_checked_test_ets(FILE ${CMAKE_CURRENT_SOURCE_DIR}/string_split_test.sts) 131 panda_add_checked_test_ets(FILE ${CMAKE_CURRENT_SOURCE_DIR}/ets_isFinite.sts) [all …]
|
| /arkcompiler/runtime_core/static_core/tests/checked/ |
| D | CMakeLists.txt | 3 # you may not use this file except in compliance with the License. 20 file(MAKE_DIRECTORY ${CHECKER_UNIT_TESTS_DIR}) 30 set(singleValues FILE OUTPUT_FILE WORKING_DIR) 33 # Compile assembly file 36 …COMMAND ${PANDA_RUN_PREFIX} $<TARGET_FILE:ark_asm> --log-file ${BUILD_LOG} ${ARG_FILE} ${ARG_OUTPU… 43 set(singleValues NAME FILE SUPPORT_RELEASE) 64 message(FATAL_ERROR "Mandatory FILE argument is not defined.") 67 file(MAKE_DIRECTORY "${TEST_DIR}") 72 compile_file(FILE ${ARG_FILE} OUTPUT_FILE ${BINARY_FILE} WORKING_DIR ${TEST_DIR}) 78 compile_file(FILE ${APP_FILE} OUTPUT_FILE "${APP_FILE_OUTPUT}" WORKING_DIR ${TEST_DIR}) [all …]
|
| /arkcompiler/runtime_core/static_core/tests/ |
| D | CMakeLists.txt | 3 # you may not use this file except in compliance with the License. 54 # FILE <source> 103 …set(singleValues FILE TARGET SUBDIR SEARCH_DEBUG_STDERR AOT_SEARCH_DEBUG_STDERR AOT_MODE AOT_COMPI… 112 message(FATAL_ERROR "Mandatory FILE argument is not defined.") 142 FILE ${ARG_FILE} 165 file(WRITE "${expected_output_file}" "${ARG_EXPECTED_STDOUT}") 177 # file(READ "${error_file}" STDERR_AS_STRING) 205 # FILE <source> 233 set(singleValues FILE TARGET SUBDIR LANGUAGE_CONTEXT) 242 message(FATAL_ERROR "Mandatory FILE argument is not defined.") [all …]
|
| /arkcompiler/runtime_core/tests/ |
| D | CMakeLists.txt | 3 # you may not use this file except in compliance with the License. 50 # FILE <source> 97 set(singleValues FILE TARGET SUBDIR SEARCH_DEBUG_STDERR AOT_MODE LANGUAGE_CONTEXT GC_OPTIONS) 106 message(FATAL_ERROR "Mandatory FILE argument is not defined.") 125 FILE ${ARG_FILE} 145 file(WRITE "${expected_output_file}" "${ARG_EXPECTED_STDOUT}") 157 # file(READ "${error_file}" STDERR_AS_STRING) 176 # FILE <source> 204 set(singleValues FILE TARGET SUBDIR LANGUAGE_CONTEXT) 213 message(FATAL_ERROR "Mandatory FILE argument is not defined.") [all …]
|
| /arkcompiler/runtime_core/libpandafile/ |
| D | file.cpp | 4 * you may not use this file except in compliance with the License. 27 #include "file-inl.h" 29 #include "os/file.h" 48 const std::array<uint8_t, File::MAGIC_SIZE> File::MAGIC {'P', 'A', 'N', 'D', 'A', '\0', '\0', '\0'}; 50 // Name anonymous maps for perfing tools finding symbol file correctly. 54 os::file::Mode GetMode(panda_file::File::OpenMode open_mode) in GetMode() 57 case File::READ_ONLY: { in GetMode() 58 return os::file::Mode::READONLY; in GetMode() 60 case File::READ_WRITE: { in GetMode() 62 return os::file::Mode::READWRITE; in GetMode() [all …]
|
| D | method_data_accessor.h | 4 * you may not use this file except in compliance with the License. 19 #include "file.h" 28 MethodDataAccessor(const File &panda_file, File::EntityId method_id); 33 static File::EntityId GetNameId(const File &panda_file, File::EntityId method_id); 36 static panda_file::File::StringData GetName(const File &panda_file, File::EntityId method_id); 39 static File::EntityId GetProtoId(const File &panda_file, File::EntityId method_id); 42 static File::EntityId GetClassId(const File &panda_file, File::EntityId method_id); 89 File::EntityId GetClassId() const in GetClassId() 91 return File::EntityId(class_off_); in GetClassId() 94 File::Index GetClassIdx() const in GetClassIdx() [all …]
|
| D | file.h | 4 * you may not use this file except in compliance with the License. 54 class File { 184 Span file(GetBase(), header->file_size); in GetSpanFromId() 185 ThrowIfWithCheck(!id.IsValid() || id.GetOffset() >= file.size(), File::INVALID_FILE_OFFSET, in GetSpanFromId() 186 File::GET_SPAN_FROM_ID); in GetSpanFromId() 187 return file.Last(file.size() - id.GetOffset()); in GetSpanFromId() 193 Span file(GetBase(), header->file_size); in GetClasses() 194 … Span class_idx_data = file.SubSpan(header->class_idx_off, header->num_classes * sizeof(uint32_t)); in GetClasses() 201 Span file(GetBase(), header->file_size); in GetLiteralArrays() 202 …Span litarr_idx_data = file.SubSpan(header->literalarray_idx_off, header->num_literalarrays * size… in GetLiteralArrays() [all …]
|
| D | method_data_accessor-inl.h | 4 * you may not use this file except in compliance with the License. 27 inline File::EntityId MethodDataAccessor::GetNameId(const File &panda_file, File::EntityId method_i… in GetNameId() 31 return File::EntityId(helpers::Read<ID_SIZE>(&sp)); in GetNameId() 35 inline panda_file::File::StringData MethodDataAccessor::GetName(const File &panda_file, File::Entit… in GetName() 41 inline File::EntityId MethodDataAccessor::GetProtoId(const File &panda_file, File::EntityId method_… in GetProtoId() 46 return File::EntityId(panda_file.ResolveProtoIndex(method_id, proto_idx_).GetOffset()); in GetProtoId() 50 inline File::EntityId MethodDataAccessor::GetClassId(const File &panda_file, File::EntityId method_… in GetClassId() 54 return File::EntityId(panda_file.ResolveClassIndex(method_id, class_idx).GetOffset()); in GetClassId() 57 inline panda_file::File::StringData MethodDataAccessor::GetName() const in GetName() 74 EnumerateRuntimeAnnotations([](File::EntityId /* unused */) {}); in SkipRuntimeAnnotations() [all …]
|
| /arkcompiler/runtime_core/static_core/libpandafile/ |
| D | file.cpp | 4 * you may not use this file except in compliance with the License. 17 #include "file-inl.h" 18 #include "os/file.h" 48 const std::array<uint8_t, File::MAGIC_SIZE> File::MAGIC {'P', 'A', 'N', 'D', 'A', '\0', '\0', '\0'}; 50 // Name anonymous maps for perfing tools finding symbol file correctly. 54 os::file::Mode GetMode(panda_file::File::OpenMode openMode) in GetMode() 57 case File::READ_ONLY: { in GetMode() 58 return os::file::Mode::READONLY; in GetMode() 60 case File::READ_WRITE: { in GetMode() 62 return os::file::Mode::READWRITE; in GetMode() [all …]
|
| D | method_data_accessor.h | 4 * you may not use this file except in compliance with the License. 19 #include "file.h" 36 MethodDataAccessor(const File &pandaFile, File::EntityId methodId); 41 static File::EntityId GetNameId(const File &pandaFile, File::EntityId methodId); 44 static panda_file::File::StringData GetName(const File &pandaFile, File::EntityId methodId); 51 static File::EntityId GetProtoId(const File &pandaFile, File::EntityId methodId); 54 static File::EntityId GetClassId(const File &pandaFile, File::EntityId methodId); 106 File::EntityId GetClassId() const in GetClassId() 108 return File::EntityId(classOff_); in GetClassId() 111 File::Index GetClassIdx() const in GetClassIdx() [all …]
|
| /arkcompiler/runtime_core/static_core/cross_values/ |
| D | cross_values_getters_generator.rb | 4 # you may not use this file except in compliance with the License. 20 // Autogenerated file -- DO NOT EDIT! 28 $header += "#include \"generated_values/#{File.basename(values_h)}\"\n" 36 data = File.read(input_file) 38 File.open(output_file, "w") do |file| 39 file.puts $header 40 file.puts "namespace ark::cross_values {" 43 file.puts %< 49 file.puts " case Arch::#{File.basename(values_h, "_values_gen.h")}:\n" 50 …file.puts " return cross_values::#{File.basename(values_h, "_values_gen.h")}::#{define[… [all …]
|
| /arkcompiler/runtime_core/tests/cts-coverage-tool/bin/ |
| D | spectrac.rb | 4 # you may not use this file except in compliance with the License. 22 Dir[File.join(__dir__, '..', 'lib', '*.rb')].each { |file| require file } # rubocop:disable Lint/No… 24 def check_file(file) argument 25 …raise OptionParser::InvalidOption, "File #{file} not found" unless File.exist? File.expand_path(fi… 37 …raise OptionParser::InvalidOption, "Directory #{dir} not found." unless File.directory? File.expan… 43 opts.on('-r', '--report [FILE]', 'Output the test coverage summary report in yaml') 46 opts.on('-s', '--spec FILE1,FILE2,FILE3', Array, 'ISA spec file(s) (at least one required)') 47 opts.on('-n', '--non_testable [FILE]', 'Non testable assertions') 48 …opts.on('-u', '--uncovered [FILE]', 'Output yaml document with ISA spec areas not covered by tests… 49 …opts.on('-U', '--uncovered_md [FILE]', 'Output markdown document with ISA spec areas not covered b… [all …]
|
| /arkcompiler/runtime_core/static_core/tests/cts-coverage-tool/bin/ |
| D | spectrac.rb | 4 # you may not use this file except in compliance with the License. 22 Dir[File.join(__dir__, '..', 'lib', '*.rb')].each { |file| require file } # rubocop:disable Lint/No… 24 def check_file(file) argument 25 …raise OptionParser::InvalidOption, "File #{file} not found" unless File.exist? File.expand_path(fi… 37 …raise OptionParser::InvalidOption, "Directory #{dir} not found." unless File.directory? File.expan… 43 opts.on('-r', '--report [FILE]', 'Output the test coverage summary report in yaml') 46 opts.on('-s', '--spec FILE1,FILE2,FILE3', Array, 'ISA spec file(s) (at least one required)') 47 opts.on('-n', '--non_testable [FILE]', 'Non testable assertions') 48 …opts.on('-u', '--uncovered [FILE]', 'Output yaml document with ISA spec areas not covered by tests… 49 …opts.on('-U', '--uncovered_md [FILE]', 'Output markdown document with ISA spec areas not covered b… [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/lookup_by_name/ |
| D | CMakeLists.txt | 3 # you may not use this file except in compliance with the License. 41 FILE ${PANDA_ETS_PLUGIN_SOURCE}/tests/lookup_by_name/${NAME}.pa 45 ADDITIONAL_STDLIBS $<TARGET_PROPERTY:etsstdlib,FILE> 51 FILE ${PANDA_ETS_PLUGIN_SOURCE}/tests/lookup_by_name/${NAME}.pa 55 ADDITIONAL_STDLIBS $<TARGET_PROPERTY:etsstdlib,FILE> 63 FILE ${PANDA_ETS_PLUGIN_SOURCE}/tests/lookup_by_name/${NAME}.pa 68 ADDITIONAL_STDLIBS $<TARGET_PROPERTY:etsstdlib,FILE> 76 FILE ${PANDA_ETS_PLUGIN_SOURCE}/tests/lookup_by_name/${NAME}.pa 82 ADDITIONAL_STDLIBS $<TARGET_PROPERTY:etsstdlib,FILE> 94 set(singleValues FILE) [all …]
|
| /arkcompiler/runtime_core/libpandabase/os/ |
| D | file.h | 4 * you may not use this file except in compliance with the License. 22 #include "platforms/unix/libpandabase/file.h" 24 #include "platforms/windows/libpandabase//file.h" 31 namespace panda::os::file { 34 using File = panda::os::unix::file::File; variable 36 using File = panda::os::windows::file::File; 41 explicit FileHolder(File file) : file_(file) {} in FileHolder() argument 49 File file_; 57 File Open(std::string_view filename, Mode mode); 59 } // namespace panda::os::file
|
| /arkcompiler/runtime_core/static_core/libpandabase/os/ |
| D | file.h | 4 * you may not use this file except in compliance with the License. 22 #include "platforms/unix/libpandabase/file.h" 24 #include "platforms/windows/libpandabase//file.h" 31 namespace ark::os::file { 34 using File = ark::os::unix::file::File; variable 36 using File = ark::os::windows::file::File; 41 explicit FileHolder(File file) : file_(file) {} in FileHolder() argument 49 File file_; 57 PANDA_PUBLIC_API File Open(std::string_view filename, Mode mode); 59 } // namespace ark::os::file
|
| /arkcompiler/runtime_core/docs/ |
| D | aot.md | 6 ## File format 8 AOT file has `.an` extension and it is a valid ELF file. 24 special alignment, mostly it is 16 bytes (see `CODE_ALIGNMENT` in `libpandabase/utils/arch.h` file). 38 - `AotHeader` - This header describes main information, such as version, file name string, command … 40 - `PandaFileHeader` - Describes corresponding panda file. 46 …sses and methods are uniquely identified (inside one file) by their panda file id (`panda_file::Fi… 47 therefore compiled Ark bytecode file must be bit by bit equal to the file loaded in runtime. 52 filled with appropriate data during AOT file loading at runtime. This data allows compiler's codege… 115 `ark_aot` tool aims to compile input panda files into the single AOT file that can be consumed by 121 - `--output` - path to the output AOT file (default is `out.an`) [all …]
|
| /arkcompiler/runtime_core/static_core/docs/ |
| D | aot.md | 6 ## File format 8 AOT file has `.an` extension and it is a valid ELF file. 24 special alignment, mostly it is 16 bytes (see `CODE_ALIGNMENT` in `libpandabase/utils/arch.h` file). 38 - `AotHeader` - This header describes main information, such as version, file name string, command … 40 - `PandaFileHeader` - Describes corresponding panda file. 46 …sses and methods are uniquely identified (inside one file) by their panda file id (`panda_file::Fi… 47 therefore compiled Ark bytecode file must be bit by bit equal to the file loaded in runtime. 52 filled with appropriate data during AOT file loading at runtime. This data allows compiler's codege… 115 `ark_aot` tool aims to compile input panda files into the single AOT file that can be consumed by 121 - `--output` - path to the output AOT file (default is `out.an`) [all …]
|
| /arkcompiler/runtime_core/libpandabase/tests/ |
| D | unix_file_test.cpp | 4 * you may not use this file except in compliance with the License. 21 #include "libpandabase/os/file.h" 28 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);
|
| /arkcompiler/runtime_core/tests/checked/ |
| D | CMakeLists.txt | 3 # you may not use this file except in compliance with the License. 20 file(MAKE_DIRECTORY ${CHECKER_UNIT_TESTS_DIR}) 30 set(singleValues FILE OUTPUT_FILE WORKING_DIR) 33 # Compile assembly file 36 …COMMAND ${PANDA_RUN_PREFIX} $<TARGET_FILE:ark_asm> --log-file ${BUILD_LOG} ${ARG_FILE} ${ARG_OUTPU… 43 set(singleValues NAME FILE SUPPORT_RELEASE) 64 message(FATAL_ERROR "Mandatory FILE argument is not defined.") 67 file(MAKE_DIRECTORY "${TEST_DIR}") 72 compile_file(FILE ${ARG_FILE} OUTPUT_FILE ${BINARY_FILE} WORKING_DIR ${TEST_DIR}) 78 compile_file(FILE ${APP_FILE} OUTPUT_FILE "${APP_FILE_OUTPUT}" WORKING_DIR ${TEST_DIR}) [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/coroutines/ |
| D | CMakeLists.txt | 3 # you may not use this file except in compliance with the License. 20 # add_ets_coroutines_test(FILE ets_file 39 set(singleValues FILE) 78 FILE ${ARG_FILE} 89 add_ets_coroutines_test(FILE async_call.sts 97 add_ets_coroutines_test(FILE async_call.sts 106 add_ets_coroutines_test(FILE launch_instruction.sts 114 add_ets_coroutines_test(FILE launch_instruction.sts 123 add_ets_coroutines_test(FILE await.sts 131 add_ets_coroutines_test(FILE launch_launch.sts [all …]
|
| /arkcompiler/runtime_core/static_core/tests/cts-coverage-tool/lib/ |
| D | spec.rb | 4 # you may not use this file except in compliance with the License. 48 @orphaned << { 'file' => f, 'error' => e, 'comment' => e.backtrace } 185 def process_test_file(testdir, file) argument 186 raw = read_test_data(File.join(testdir, file)) 190 …@orphaned << { 'file' => file, 'error' => 'Bad test format, expected array of titles', 'comment' =… 195 process_test_data(tg, file) 202 File.readlines(filename).each do |line| 210 def process_test_data(test_group, file) argument 213 …@orphaned << { 'file' => file, 'error' => 'Group with given title not found in the ISA', 'comment'… 217 assertions = proc_test_instructions(test_group, spec_group, file) + [all …]
|
| /arkcompiler/runtime_core/tests/cts-coverage-tool/lib/ |
| D | spec.rb | 4 # you may not use this file except in compliance with the License. 48 @orphaned << { 'file' => f, 'error' => e, 'comment' => e.backtrace } 185 def process_test_file(testdir, file) argument 186 raw = read_test_data(File.join(testdir, file)) 190 …@orphaned << { 'file' => file, 'error' => 'Bad test format, expected array of titles', 'comment' =… 195 process_test_data(tg, file) 202 File.readlines(filename).each do |line| 210 def process_test_data(test_group, file) argument 213 …@orphaned << { 'file' => file, 'error' => 'Group with given title not found in the ISA', 'comment'… 217 assertions = proc_test_instructions(test_group, spec_group, file) + [all …]
|
| /arkcompiler/runtime_core/static_core/verification/cache/ |
| D | results_cache.cpp | 4 * you may not use this file except in compliance with the License. 23 #include "libpandabase/os/file.h" 52 using ark::os::file::Mode; in Initialize() 53 using ark::os::file::Open; in Initialize() 56 auto file = Open(filename, Mode::READONLY); in Initialize() local 57 if (!file.IsValid()) { in Initialize() 58 file = Open(filename, Mode::READWRITECREATE); in Initialize() 60 if (!file.IsValid()) { in Initialize() 61 LOG(INFO, VERIFIER) << "Cannot open verification cache file '" << filename << "'"; in Initialize() 65 auto size = file.GetFileSize(); in Initialize() [all …]
|
| /arkcompiler/runtime_core/disassembler/tests/ |
| D | BUILD.gn | 3 # you may not use this file except in compliance with the License. 55 foreach(file, disasm_column_test_js_files) { 56 es2abc_gen_abc("gen_${file}_abc") { 57 test_js = "${test_js_path}${file}.js" 58 test_abc = "$target_out_dir/${file}.abc" 72 foreach(file, disasm_line_release_test_ts_files) { 73 es2abc_gen_abc("gen_${file}_abc") { 74 test_ts = "${test_ts_path}${file}.ts" 75 test_abc = "$target_out_dir/${file}.abc" 96 foreach(file, disasm_module_test_js_files) { [all …]
|