Lines Matching defs:WASI
17 inline void Debug(WASI* wasi, Args&&... args) {
18 Debug(wasi->env(), DebugCategory::WASI, std::forward<Args>(args)...);
120 WASI::WASI(Environment* env,
137 WASI::~WASI() {
142 void WASI::MemoryInfo(MemoryTracker* tracker) const {
147 void WASI::CheckAllocatedSize(size_t previous_size) const {
151 void WASI::IncreaseAllocatedSize(size_t size) {
155 void WASI::DecreaseAllocatedSize(size_t size) {
159 void WASI::New(const FunctionCallbackInfo<Value>& args) {
228 new WASI(env, args.This(), &options);
251 void WASI::ArgsGet(const FunctionCallbackInfo<Value>& args) {
252 WASI* wasi;
290 void WASI::ArgsSizesGet(const FunctionCallbackInfo<Value>& args) {
291 WASI* wasi;
324 void WASI::ClockResGet(const FunctionCallbackInfo<Value>& args) {
325 WASI* wasi;
351 void WASI::ClockTimeGet(const FunctionCallbackInfo<Value>& args) {
352 WASI* wasi;
381 void WASI::EnvironGet(const FunctionCallbackInfo<Value>& args) {
382 WASI* wasi;
423 void WASI::EnvironSizesGet(const FunctionCallbackInfo<Value>& args) {
424 WASI* wasi;
457 void WASI::FdAdvise(const FunctionCallbackInfo<Value>& args) {
458 WASI* wasi;
475 void WASI::FdAllocate(const FunctionCallbackInfo<Value>& args) {
476 WASI* wasi;
491 void WASI::FdClose(const FunctionCallbackInfo<Value>& args) {
492 WASI* wasi;
503 void WASI::FdDatasync(const FunctionCallbackInfo<Value>& args) {
504 WASI* wasi;
515 void WASI::FdFdstatGet(const FunctionCallbackInfo<Value>& args) {
516 WASI* wasi;
538 void WASI::FdFdstatSetFlags(const FunctionCallbackInfo<Value>& args) {
539 WASI* wasi;
552 void WASI::FdFdstatSetRights(const FunctionCallbackInfo<Value>& args) {
553 WASI* wasi;
575 void WASI::FdFilestatGet(const FunctionCallbackInfo<Value>& args) {
576 WASI* wasi;
598 void WASI::FdFilestatSetSize(const FunctionCallbackInfo<Value>& args) {
599 WASI* wasi;
612 void WASI::FdFilestatSetTimes(const FunctionCallbackInfo<Value>& args) {
613 WASI* wasi;
639 void WASI::FdPread(const FunctionCallbackInfo<Value>& args) {
640 WASI* wasi;
690 void WASI::FdPrestatGet(const FunctionCallbackInfo<Value>& args) {
691 WASI* wasi;
713 void WASI::FdPrestatDirName(const FunctionCallbackInfo<Value>& args) {
714 WASI* wasi;
736 void WASI::FdPwrite(const FunctionCallbackInfo<Value>& args) {
737 WASI* wasi;
795 void WASI::FdRead(const FunctionCallbackInfo<Value>& args) {
796 WASI* wasi;
838 void WASI::FdReaddir(const FunctionCallbackInfo<Value>& args) {
839 WASI* wasi;
881 void WASI::FdRenumber(const FunctionCallbackInfo<Value>& args) {
882 WASI* wasi;
895 void WASI::FdSeek(const FunctionCallbackInfo<Value>& args) {
896 WASI* wasi;
928 void WASI::FdSync(const FunctionCallbackInfo<Value>& args) {
929 WASI* wasi;
940 void WASI::FdTell(const FunctionCallbackInfo<Value>& args) {
941 WASI* wasi;
966 void WASI::FdWrite(const FunctionCallbackInfo<Value>& args) {
967 WASI* wasi;
1017 void WASI::PathCreateDirectory(const FunctionCallbackInfo<Value>& args) {
1018 WASI* wasi;
1040 void WASI::PathFilestatGet(const FunctionCallbackInfo<Value>& args) {
1041 WASI* wasi;
1081 void WASI::PathFilestatSetTimes(const FunctionCallbackInfo<Value>& args) {
1082 WASI* wasi;
1124 void WASI::PathLink(const FunctionCallbackInfo<Value>& args) {
1125 WASI* wasi;
1168 void WASI::PathOpen(const FunctionCallbackInfo<Value>& args) {
1169 WASI* wasi;
1224 void WASI::PathReadlink(const FunctionCallbackInfo<Value>& args) {
1225 WASI* wasi;
1272 void WASI::PathRemoveDirectory(const FunctionCallbackInfo<Value>& args) {
1273 WASI* wasi;
1295 void WASI::PathRename(const FunctionCallbackInfo<Value>& args) {
1296 WASI* wasi;
1335 void WASI::PathSymlink(const FunctionCallbackInfo<Value>& args) {
1336 WASI* wasi;
1371 void WASI::PathUnlinkFile(const FunctionCallbackInfo<Value>& args) {
1372 WASI* wasi;
1394 void WASI::PollOneoff(const FunctionCallbackInfo<Value>& args) {
1395 WASI* wasi;
1454 void WASI::ProcExit(const FunctionCallbackInfo<Value>& args) {
1455 WASI* wasi;
1465 void WASI::ProcRaise(const FunctionCallbackInfo<Value>& args) {
1466 WASI* wasi;
1477 void WASI::RandomGet(const FunctionCallbackInfo<Value>& args) {
1478 WASI* wasi;
1497 void WASI::SchedYield(const FunctionCallbackInfo<Value>& args) {
1498 WASI* wasi;
1506 void WASI::SockAccept(const FunctionCallbackInfo<Value>& args) {
1507 WASI* wasi;
1538 void WASI::SockRecv(const FunctionCallbackInfo<Value>& args) {
1539 WASI* wasi;
1600 void WASI::SockSend(const FunctionCallbackInfo<Value>& args) {
1601 WASI* wasi;
1657 void WASI::SockShutdown(const FunctionCallbackInfo<Value>& args) {
1658 WASI* wasi;
1671 void WASI::_SetMemory(const FunctionCallbackInfo<Value>& args) {
1672 WASI* wasi;
1685 uvwasi_errno_t WASI::backingStore(char** store, size_t* byte_length) {
1702 Local<FunctionTemplate> tmpl = NewFunctionTemplate(isolate, WASI::New);
1703 tmpl->InstanceTemplate()->SetInternalFieldCount(WASI::kInternalFieldCount);
1706 SetProtoMethod(isolate, tmpl, "args_get", WASI::ArgsGet);
1707 SetProtoMethod(isolate, tmpl, "args_sizes_get", WASI::ArgsSizesGet);
1708 SetProtoMethod(isolate, tmpl, "clock_res_get", WASI::ClockResGet);
1709 SetProtoMethod(isolate, tmpl, "clock_time_get", WASI::ClockTimeGet);
1710 SetProtoMethod(isolate, tmpl, "environ_get", WASI::EnvironGet);
1711 SetProtoMethod(isolate, tmpl, "environ_sizes_get", WASI::EnvironSizesGet);
1712 SetProtoMethod(isolate, tmpl, "fd_advise", WASI::FdAdvise);
1713 SetProtoMethod(isolate, tmpl, "fd_allocate", WASI::FdAllocate);
1714 SetProtoMethod(isolate, tmpl, "fd_close", WASI::FdClose);
1715 SetProtoMethod(isolate, tmpl, "fd_datasync", WASI::FdDatasync);
1716 SetProtoMethod(isolate, tmpl, "fd_fdstat_get", WASI::FdFdstatGet);
1717 SetProtoMethod(isolate, tmpl, "fd_fdstat_set_flags", WASI::FdFdstatSetFlags);
1719 isolate, tmpl, "fd_fdstat_set_rights", WASI::FdFdstatSetRights);
1720 SetProtoMethod(isolate, tmpl, "fd_filestat_get", WASI::FdFilestatGet);
1722 isolate, tmpl, "fd_filestat_set_size", WASI::FdFilestatSetSize);
1724 isolate, tmpl, "fd_filestat_set_times", WASI::FdFilestatSetTimes);
1725 SetProtoMethod(isolate, tmpl, "fd_pread", WASI::FdPread);
1726 SetProtoMethod(isolate, tmpl, "fd_prestat_get", WASI::FdPrestatGet);
1727 SetProtoMethod(isolate, tmpl, "fd_prestat_dir_name", WASI::FdPrestatDirName);
1728 SetProtoMethod(isolate, tmpl, "fd_pwrite", WASI::FdPwrite);
1729 SetProtoMethod(isolate, tmpl, "fd_read", WASI::FdRead);
1730 SetProtoMethod(isolate, tmpl, "fd_readdir", WASI::FdReaddir);
1731 SetProtoMethod(isolate, tmpl, "fd_renumber", WASI::FdRenumber);
1732 SetProtoMethod(isolate, tmpl, "fd_seek", WASI::FdSeek);
1733 SetProtoMethod(isolate, tmpl, "fd_sync", WASI::FdSync);
1734 SetProtoMethod(isolate, tmpl, "fd_tell", WASI::FdTell);
1735 SetProtoMethod(isolate, tmpl, "fd_write", WASI::FdWrite);
1737 isolate, tmpl, "path_create_directory", WASI::PathCreateDirectory);
1738 SetProtoMethod(isolate, tmpl, "path_filestat_get", WASI::PathFilestatGet);
1740 isolate, tmpl, "path_filestat_set_times", WASI::PathFilestatSetTimes);
1741 SetProtoMethod(isolate, tmpl, "path_link", WASI::PathLink);
1742 SetProtoMethod(isolate, tmpl, "path_open", WASI::PathOpen);
1743 SetProtoMethod(isolate, tmpl, "path_readlink", WASI::PathReadlink);
1745 isolate, tmpl, "path_remove_directory", WASI::PathRemoveDirectory);
1746 SetProtoMethod(isolate, tmpl, "path_rename", WASI::PathRename);
1747 SetProtoMethod(isolate, tmpl, "path_symlink", WASI::PathSymlink);
1748 SetProtoMethod(isolate, tmpl, "path_unlink_file", WASI::PathUnlinkFile);
1749 SetProtoMethod(isolate, tmpl, "poll_oneoff", WASI::PollOneoff);
1750 SetProtoMethod(isolate, tmpl, "proc_exit", WASI::ProcExit);
1751 SetProtoMethod(isolate, tmpl, "proc_raise", WASI::ProcRaise);
1752 SetProtoMethod(isolate, tmpl, "random_get", WASI::RandomGet);
1753 SetProtoMethod(isolate, tmpl, "sched_yield", WASI::SchedYield);
1754 SetProtoMethod(isolate, tmpl, "sock_accept", WASI::SockAccept);
1755 SetProtoMethod(isolate, tmpl, "sock_recv", WASI::SockRecv);
1756 SetProtoMethod(isolate, tmpl, "sock_send", WASI::SockSend);
1757 SetProtoMethod(isolate, tmpl, "sock_shutdown", WASI::SockShutdown);
1759 SetInstanceMethod(isolate, tmpl, "_setMemory", WASI::_SetMemory);
1761 SetConstructorFunction(context, target, "WASI", tmpl);