| 137 | public: |
| 138 | template<typename F> |
| 139 | void init(void* ptr, F ret2func, thread* th) |
| 140 | { |
| 141 | _ptr = ptr; |
| 142 | assert((uint64_t)_ptr % 16 == 0); |
| 143 | push(0); |
| 144 | push(0); |
| 145 | push(ret2func); |
| 146 | push(th); // rbp <== th |
| 147 | } |
| 148 | void** pointer_ref() |
| 149 | { |
| 150 | return &_ptr; |