Showing the changes to src/vm/sys/Sysmod.cpp (1 of 3 files). Show all
Unified · Split
| @@ -327,6 +327,9 @@ void · 326 unmodified lines | |||
| 327 | Sys_aprint(vm_registers_t &r, vm_t &vm) | 327 | Sys_aprint(vm_registers_t &r, vm_t &vm) |
| 328 | { | 328 | { |
| 329 | auto &fp = r.stack.peek_frame()->base<F_Sys_aprint>(); | 329 | auto &fp = r.stack.peek_frame()->base<F_Sys_aprint>(); |
| 330 | |||
| 331 | //disvm::runtime::dec_ref_count_and_free(vm_alloc_t::from_allocation(*fp.ret)); | ||
| 332 | //*fp.ret = nullptr; | ||
| 330 | throw vm_system_exception{ "Function not implemented" }; | 333 | throw vm_system_exception{ "Function not implemented" }; |
| 331 | } | 334 | } |
| 332 | 335 | ||
| @@ -494,6 +497,9 @@ void · 161 unmodified lines | |||
| 494 | Sys_fauth(vm_registers_t &r, vm_t &vm) | 497 | Sys_fauth(vm_registers_t &r, vm_t &vm) |
| 495 | { | 498 | { |
| 496 | auto &fp = r.stack.peek_frame()->base<F_Sys_fauth>(); | 499 | auto &fp = r.stack.peek_frame()->base<F_Sys_fauth>(); |
| 500 | |||
| 501 | //disvm::runtime::dec_ref_count_and_free(vm_alloc_t::from_allocation(*fp.ret)); | ||
| 502 | //*fp.ret = nullptr; | ||
| 497 | throw vm_system_exception{ "Function not implemented" }; | 503 | throw vm_system_exception{ "Function not implemented" }; |
| 498 | } | 504 | } |
| 499 | 505 | ||
| @@ -501,6 +507,9 @@ void · 1 unmodified line | |||
| 501 | Sys_fd2path(vm_registers_t &r, vm_t &vm) | 507 | Sys_fd2path(vm_registers_t &r, vm_t &vm) |
| 502 | { | 508 | { |
| 503 | auto &fp = r.stack.peek_frame()->base<F_Sys_fd2path>(); | 509 | auto &fp = r.stack.peek_frame()->base<F_Sys_fd2path>(); |
| 510 | |||
| 511 | //disvm::runtime::dec_ref_count_and_free(vm_alloc_t::from_allocation(*fp.ret)); | ||
| 512 | //*fp.ret = nullptr; | ||
| 504 | throw vm_system_exception{ "Function not implemented" }; | 513 | throw vm_system_exception{ "Function not implemented" }; |
| 505 | } | 514 | } |
| 506 | 515 | ||
| @@ -524,6 +533,9 @@ void · 17 unmodified lines | |||
| 524 | Sys_file2chan(vm_registers_t &r, vm_t &vm) | 533 | Sys_file2chan(vm_registers_t &r, vm_t &vm) |
| 525 | { | 534 | { |
| 526 | auto &fp = r.stack.peek_frame()->base<F_Sys_file2chan>(); | 535 | auto &fp = r.stack.peek_frame()->base<F_Sys_file2chan>(); |
| 536 | |||
| 537 | //disvm::runtime::dec_ref_count_and_free(vm_alloc_t::from_allocation(*fp.ret)); | ||
| 538 | //*fp.ret = nullptr; | ||
| 527 | throw vm_system_exception{ "Function not implemented" }; | 539 | throw vm_system_exception{ "Function not implemented" }; |
| 528 | } | 540 | } |
| 529 | 541 | ||