| 178 | }; |
| 179 | |
| 180 | inline ContextualStack* get_stack(StackType type, void (*entry)(intptr_t)) { |
| 181 | switch (type) { |
| 182 | case STACK_TYPE_PTHREAD: |
| 183 | return NULL; |
| 184 | case STACK_TYPE_SMALL: |
| 185 | return StackFactory<SmallStackClass>::get_stack(entry); |
| 186 | case STACK_TYPE_NORMAL: |
| 187 | return StackFactory<NormalStackClass>::get_stack(entry); |
| 188 | case STACK_TYPE_LARGE: |
| 189 | return StackFactory<LargeStackClass>::get_stack(entry); |
| 190 | case STACK_TYPE_MAIN: |
| 191 | return StackFactory<MainStackClass>::get_stack(entry); |
| 192 | } |
| 193 | return NULL; |
| 194 | } |
| 195 | |
| 196 | inline void return_stack(ContextualStack* s) { |
| 197 | if (NULL == s) { |
no outgoing calls
no test coverage detected