Home
last modified time | relevance | path

Searched refs:File (Results 1 – 25 of 175) sorted by relevance

1234567

/ark/runtime_core/libpandafile/
Dfile.cpp53 const std::array<uint8_t, File::MAGIC_SIZE> File::MAGIC {'P', 'A', 'N', 'D', 'A', '\0', '\0', '\0'};
59 static uint32_t GetProt(panda_file::File::OpenMode mode) in GetProt()
62 if (mode == File::READ_WRITE) { in GetProt()
96 std::unique_ptr<const File> OpenPandaFileOrZip(std::string_view location, panda_file::File::OpenMod… in OpenPandaFileOrZip()
118 std::unique_ptr<const panda_file::File> OpenPandaFileFromZipFile(ZipArchiveHandle &handle, std::str… in OpenPandaFileFromZipFile()
158 return panda_file::File::OpenFromMemory(std::move(ConstPtr), location); in OpenPandaFileFromZipFile()
162 std::unique_ptr<const panda_file::File> HandleArchive(ZipArchiveHandle &handle, FILE *fp, std::stri… in HandleArchive()
164 panda_file::File::OpenMode open_mode) in HandleArchive()
166 std::unique_ptr<const panda_file::File> file; in HandleArchive()
172 …file = panda_file::File::OpenUncompressedArchive(fileno(fp), location, entry.GetUncompressedSize(), in HandleArchive()
[all …]
Dmethod_data_accessor.h28 MethodDataAccessor(const File &panda_file, File::EntityId method_id);
77 File::EntityId GetClassId() const in GetClassId()
79 return File::EntityId(class_off_); in GetClassId()
82 File::Index GetClassIdx() const in GetClassIdx()
87 File::EntityId GetNameId() const in GetNameId()
89 return File::EntityId(name_off_); in GetNameId()
92 File::EntityId GetProtoId() const in GetProtoId()
94 return File::EntityId(proto_off_); in GetProtoId()
102 std::optional<File::EntityId> GetCodeId();
112 std::optional<File::EntityId> GetRuntimeParamAnnotationId();
[all …]
Dannotation_data_accessor.h29 Elem(const File &panda_file, File::EntityId name_id, uint32_t value) in Elem()
38 File::EntityId GetNameId() const in GetNameId()
50 return ArrayValue(panda_file_, File::EntityId(value_)); in GetArrayValue()
54 const File &panda_file_;
55 File::EntityId name_id_;
76 AnnotationDataAccessor(const File &panda_file, File::EntityId annotation_id);
82 File::EntityId GetClassId() const in GetClassId()
84 return File::EntityId(class_off_); in GetClassId()
101 File::EntityId GetAnnotationId() const in GetAnnotationId()
111 const File &panda_file_;
[all …]
Dmethod_data_accessor-inl.h38 EnumerateRuntimeAnnotations([](File::EntityId /* unused */) {}); in SkipRuntimeAnnotations()
53 EnumerateAnnotations([](File::EntityId /* unused */) {}); in SkipAnnotations()
61 inline std::optional<File::EntityId> MethodDataAccessor::GetCodeId() in GetCodeId()
66 std::optional<File::EntityId> novalue; in GetCodeId()
70 …return helpers::GetOptionalTaggedValue<File::EntityId>(tagged_values_sp_, MethodTag::CODE, &source… in GetCodeId()
101 helpers::EnumerateTaggedValues<File::EntityId, MethodTag, Callback>( in EnumerateRuntimeAnnotations()
105 inline std::optional<File::EntityId> MethodDataAccessor::GetRuntimeParamAnnotationId() in GetRuntimeParamAnnotationId()
115 return helpers::GetOptionalTaggedValue<File::EntityId>(runtime_param_annotation_sp_, in GetRuntimeParamAnnotationId()
119 inline std::optional<File::EntityId> MethodDataAccessor::GetDebugInfoId() in GetDebugInfoId()
129 …return helpers::GetOptionalTaggedValue<File::EntityId>(debug_sp_, MethodTag::DEBUG_INFO, &annotati… in GetDebugInfoId()
[all …]
Dmethod_handle_data_accessor.h27 MethodHandleDataAccessor(const File &panda_file, File::EntityId method_handle_id);
41 const File &GetPandaFile() const in GetPandaFile()
46 File::EntityId GetMethodHandleId() const in GetMethodHandleId()
51 File::EntityId GetEntityId() const in GetEntityId()
53 return File::EntityId(offset_); in GetEntityId()
57 const File &panda_file_;
58 File::EntityId method_handle_id_;
Ddebug_info_extractor.h53 explicit DebugInfoExtractor(const File *pf);
60 const LineNumberTable &GetLineNumberTable(File::EntityId method_id) const;
62 const ColumnNumberTable &GetColumnNumberTable(File::EntityId method_id) const;
64 const LocalVariableTable &GetLocalVariableTable(File::EntityId method_id) const;
66 const std::vector<std::string> &GetParameterNames(File::EntityId method_id) const;
68 const char *GetSourceFile(File::EntityId method_id) const;
70 const char *GetSourceCode(File::EntityId method_id) const;
72 std::vector<File::EntityId> GetMethodIdList() const;
75 void Extract(const File *pf);
80 File::EntityId method_id;
Dclass_data_accessor.h29 ClassDataAccessor(const File &panda_file, File::EntityId class_id);
33 File::EntityId GetSuperClassId() const in GetSuperClassId()
35 return File::EntityId(super_class_off_); in GetSuperClassId()
67 File::EntityId GetInterfaceId(size_t idx) const;
80 std::optional<File::EntityId> GetSourceFileId();
97 const File &GetPandaFile() const in GetPandaFile()
102 File::EntityId GetClassId() const in GetClassId()
125 const File &panda_file_;
126 File::EntityId class_id_;
128 File::StringData name_;
Dfield_data_accessor.h32 FieldDataAccessor(const File &panda_file, File::EntityId field_id);
44 File::EntityId GetClassId() const in GetClassId()
46 return File::EntityId(class_off_); in GetClassId()
49 File::EntityId GetNameId() const in GetNameId()
51 return File::EntityId(name_off_); in GetNameId()
127 const File &GetPandaFile() const in GetPandaFile()
132 File::EntityId GetFieldId() const in GetFieldId()
151 const File &panda_file_;
152 File::EntityId field_id_;
Dvalue.h28 ScalarValue(const File &panda_file, uint32_t value) : panda_file_(panda_file), value_(value) {} in ScalarValue()
38 static_assert(std::is_arithmetic_v<T> || std::is_same_v<T, File::EntityId>); in Get()
51 File::EntityId id(value_); in Get()
68 const File &panda_file_;
74 ArrayValue(const File &panda_file, File::EntityId id) : panda_file_(panda_file), id_(id) in ArrayValue()
89 static_assert(std::is_arithmetic_v<T> || std::is_same_v<T, File::EntityId>); in Get()
108 File::EntityId GetId() const in GetId()
116 const File &panda_file_;
117 File::EntityId id_;
Dliteral_data_accessor.h24 using StringData = File::StringData;
53 LiteralDataAccessor(const File &panda_file, File::EntityId literal_data_id);
67 void EnumerateLiteralVals(File::EntityId id, const Callback &cb);
76 const File &GetPandaFile() const in GetPandaFile()
81 File::EntityId GetLiteralDataId() const in GetLiteralDataId()
89 const File &panda_file_;
90 File::EntityId literal_data_id_;
Dproto_data_accessor.h27 …ProtoDataAccessor(const File &panda_file, File::EntityId proto_id) : panda_file_(panda_file), prot… in ProtoDataAccessor()
31 const File &GetPandaFile() const in GetPandaFile()
36 File::EntityId GetProtoId() const in GetProtoId()
55 File::EntityId GetReferenceType(size_t i);
71 const File &panda_file_;
72 File::EntityId proto_id_;
Dline_program_state.h25 …LineProgramState(const File &pf, File::EntityId file, size_t line, Span<const uint8_t> constant_po… in LineProgramState()
57 file_ = File::EntityId(offset); in SetFile()
72 source_code_ = File::EntityId(offset); in SetSourceCode()
105 const File &GetPandaFile() const in GetPandaFile()
111 const File &pf_;
113 File::EntityId file_;
114 File::EntityId source_code_;
Dclass_data_accessor-inl.h34 EnumerateRuntimeAnnotations([](File::EntityId /* unused */) {}); in SkipRuntimeAnnotations()
39 EnumerateAnnotations([](File::EntityId /* unused */) {}); in SkipAnnotations()
68 inline File::EntityId ClassDataAccessor::GetInterfaceId(size_t idx) const in GetInterfaceId()
89 helpers::EnumerateTaggedValues<File::EntityId, ClassTag, Callback>( in EnumerateRuntimeAnnotations()
100 …helpers::EnumerateTaggedValues<File::EntityId, ClassTag, Callback>(annotations_sp_, ClassTag::ANNO… in EnumerateAnnotations()
104 inline std::optional<File::EntityId> ClassDataAccessor::GetSourceFileId() in GetSourceFileId()
110 …auto v = helpers::GetOptionalTaggedValue<File::EntityId>(source_file_sp_, ClassTag::SOURCE_FILE, &… in GetSourceFileId()
118 static void EnumerateClassElements(const File &pf, Span<const uint8_t> sp, size_t elem_num, const C… in EnumerateClassElements()
122 File::EntityId id = pf.GetIdFromPointer(sp.data()); in EnumerateClassElements()
157 EnumerateAnnotations([&n](File::EntityId /* unused */) { n++; }); in GetAnnotationsNumber()
[all …]
Ddebug_data_accessor.h27 DebugInfoDataAccessor(const File &panda_file, File::EntityId debug_info_id);
60 const File &GetPandaFile() const in GetPandaFile()
65 File::EntityId GetDebugInfoId() const in GetDebugInfoId()
77 const File &panda_file_;
78 File::EntityId debug_info_id_;
Dfile.h39 class File {
302 …static std::unique_ptr<const File> Open(std::string_view filename, OpenMode open_mode = READ_ONLY);
304 static std::unique_ptr<const File> OpenFromMemory(os::mem::ConstBytePtr &&ptr);
306 …static std::unique_ptr<const File> OpenFromMemory(os::mem::ConstBytePtr &&ptr, std::string_view fi…
308 …static std::unique_ptr<const File> OpenUncompressedArchive(int fd, const std::string_view &filenam…
311 ~File();
313 NO_COPY_SEMANTIC(File);
314 NO_MOVE_SEMANTIC(File);
317 File(std::string filename, os::mem::ConstBytePtr &&base);
326 inline bool operator==(const File::StringData &string_data1, const File::StringData &string_data2)
[all …]
Dfield_data_accessor-inl.h72 inline std::optional<File::EntityId> FieldDataAccessor::GetValue() in GetValue()
85 return File::EntityId(std::get<uint32_t>(field_value)); in GetValue()
95 EnumerateRuntimeAnnotations([](File::EntityId /* unused */) {}); in SkipRuntimeAnnotations()
100 EnumerateAnnotations([](File::EntityId /* unused */) {}); in SkipAnnotations()
114 helpers::EnumerateTaggedValues<File::EntityId, FieldTag, Callback>( in EnumerateRuntimeAnnotations()
130 …helpers::EnumerateTaggedValues<File::EntityId, FieldTag, Callback>(annotations_sp_, FieldTag::ANNO… in EnumerateAnnotations()
138 EnumerateRuntimeAnnotations([&n](File::EntityId /* unused */) { n++; }); in GetAnnotationsNumber()
145 EnumerateRuntimeAnnotations([&n](File::EntityId /* unused */) { n++; }); in GetRuntimeAnnotationsNumber()
Dpanda_cache.h38 File::EntityId id_;
43 File::EntityId id_;
48 File::EntityId id_;
64 inline uint32_t GetMethodIndex(File::EntityId id) const in GetMethodIndex()
69 inline uint32_t GetFieldIndex(File::EntityId id) const in GetFieldIndex()
75 inline uint32_t GetClassIndex(File::EntityId id) const in GetClassIndex()
80 inline Method *GetMethodFromCache(File::EntityId id) const in GetMethodFromCache()
93 inline void SetMethodCache(File::EntityId id, Method *method) in SetMethodCache()
105 inline Field *GetFieldFromCache(File::EntityId id) const in GetFieldFromCache()
118 inline void SetFieldCache(File::EntityId id, Field *field) in SetFieldCache()
[all …]
/ark/runtime_core/disassembler/
Ddisassembler.h68 void GetRecord(pandasm::Record *record, const panda_file::File::EntityId &record_id);
69 void GetMethod(pandasm::Function *method, const panda_file::File::EntityId &method_id);
80 void GetFields(pandasm::Record *record, const panda_file::File::EntityId &record_id);
82 void GetMethods(const panda_file::File::EntityId &record_id);
83 void GetParams(pandasm::Function *method, const panda_file::File::EntityId &proto_id) const;
84 IdList GetInstructions(pandasm::Function *method, panda_file::File::EntityId method_id,
85 panda_file::File::EntityId code_id) const;
86 LabelTable GetExceptions(pandasm::Function *method, panda_file::File::EntityId method_id,
87 panda_file::File::EntityId code_id) const;
96 void GetMetaData(pandasm::Record *record, const panda_file::File::EntityId &record_id) const;
[all …]
/ark/runtime_core/runtime/templates/
Dgen_intrinsics_data.rb24 require File.expand_path(File.join(File.dirname(__FILE__), 'runtime.rb'))
59 template_file = File.read(File.expand_path(options.template))
60 output_file = File.open(File.expand_path(options.output), 'w')
65 data = YAML.load_file(File.expand_path(data))
/ark/runtime_core/libpandabase/os/
Dfile.h34 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()
49 File file_;
57 File Open(std::string_view filename, Mode mode);
/ark/runtime_core/runtime/include/
Dfield.h37 …Field(Class *klass, const panda_file::File *pf, panda_file::File::EntityId file_id, uint32_t acces… in Field()
58 const panda_file::File *GetPandaFile() const in GetPandaFile()
63 panda_file::File::EntityId GetFileId() const in GetFileId()
95 panda_file::File::StringData GetName() const;
127 … static inline UniqId CalcUniqId(const panda_file::File *file, panda_file::File::EntityId file_id) in CalcUniqId()
148 const panda_file::File *panda_file_;
149 panda_file::File::EntityId file_id_;
/ark/runtime_core/libpandafile/tests/
Dfile_format_version_test.cpp21 TEST(File, TestGetVersion) in TEST() argument
24 for (size_t i = 0; i < File::VERSION_SIZE; i++) { in TEST()
26 if (i == (File::VERSION_SIZE - 1)) { in TEST()
34 TEST(File, GetMinVersion) in TEST() argument
37 for (size_t i = 0; i < File::VERSION_SIZE; i++) { in TEST()
39 if (i == (File::VERSION_SIZE - 1)) { in TEST()
Dark_version_test.cpp21 TEST(File, TestGetVersion) in TEST() argument
24 for (size_t i = 0; i < File::VERSION_SIZE; i++) { in TEST()
26 if (i == (File::VERSION_SIZE - 1)) { in TEST()
34 TEST(File, GetMinVersion) in TEST() argument
37 for (size_t i = 0; i < File::VERSION_SIZE; i++) { in TEST()
39 if (i == (File::VERSION_SIZE - 1)) { in TEST()
/ark/js_runtime/ecmascript/jspandafile/
Ddebug_info_extractor.h71 const LineNumberTable &GetLineNumberTable(panda_file::File::EntityId methodId) const;
73 const ColumnNumberTable &GetColumnNumberTable(panda_file::File::EntityId methodId) const;
75 const LocalVariableTable &GetLocalVariableTable(panda_file::File::EntityId methodId) const;
77 const std::string &GetSourceFile(panda_file::File::EntityId methodId) const;
79 const std::string &GetSourceCode(panda_file::File::EntityId methodId) const;
81 CVector<panda_file::File::EntityId> GetMethodIdList() const;
84 void Extract(const panda_file::File *pf);
/ark/runtime_core/isa/
Dgen.rb71 data = YAML.load_file(File.expand_path(options.data))
74 options&.require&.each { |r| require File.expand_path(r) } if options.require
83 template = File.read(File.expand_path(options.template))
84 output = options.output ? File.open(File.expand_path(options.output), 'w') : STDOUT

1234567