mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 09:43:57 +00:00
[vm] Improve docs for Dart_LoadELF.
Change-Id: Ied56910220fb6599b374f8adc3091fb696a49b5f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/138088 Reviewed-by: Samir Jindel <sjindel@google.com> Commit-Queue: Samir Jindel <sjindel@google.com>
This commit is contained in:
parent
029c8f1cee
commit
0f284647b1
|
@ -37,6 +37,7 @@ DART_EXPORT Dart_LoadedElf* Dart_LoadELF_Fd(int fd,
|
|||
#endif
|
||||
|
||||
#if !defined(__Fuchsia__)
|
||||
/// Please see documentation for Dart_LoadElf_Fd.
|
||||
DART_EXPORT Dart_LoadedElf* Dart_LoadELF(const char* filename,
|
||||
uint64_t file_offset,
|
||||
const char** error,
|
||||
|
@ -46,6 +47,7 @@ DART_EXPORT Dart_LoadedElf* Dart_LoadELF(const char* filename,
|
|||
const uint8_t** vm_isolate_instrs);
|
||||
#endif
|
||||
|
||||
/// Please see documentation for Dart_LoadElf_Fd.
|
||||
DART_EXPORT Dart_LoadedElf* Dart_LoadELF_Memory(
|
||||
const uint8_t* snapshot,
|
||||
uint64_t snapshot_size,
|
||||
|
@ -55,6 +57,11 @@ DART_EXPORT Dart_LoadedElf* Dart_LoadELF_Memory(
|
|||
const uint8_t** vm_isolate_data,
|
||||
const uint8_t** vm_isolate_instrs);
|
||||
|
||||
/// Unloads an ELF object loaded through Dart_LoadELF{_Fd, _Memory}.
|
||||
///
|
||||
/// Unlike dlclose(), this does not use reference counting.
|
||||
/// Dart_LoadELF{_Fd, _Memory} will return load the target library separately
|
||||
/// each time it is called, and the results must be unloaded separately.
|
||||
DART_EXPORT void Dart_UnloadELF(Dart_LoadedElf* loaded);
|
||||
|
||||
#endif // RUNTIME_BIN_ELF_LOADER_H_
|
||||
|
|
Loading…
Reference in a new issue