MCPcopy Create free account
hub / github.com/Snapchat/Valdi / get_closure_stack_iterators

Function get_closure_stack_iterators

tsn/src/tsn/tsn.cpp:1365–1367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1363 return (tsn_value*)((uint8_t*)get_closure_stack_vrefs(closure) + sizeof(tsn_var_ref) * closure->stack_vrefs);
1364}
1365static tsn_iterator* get_closure_stack_iterators(tsn_closure* closure) {
1366 return (tsn_iterator*)((uint8_t*)get_closure_stack_values(closure) + sizeof(tsn_value) * closure->stack_values);
1367}
1368
1369// Throw stack overflow if we have less than 1KB remaining on the stack for the call
1370static constexpr size_t kFrameMarginSizeBytes = 1024;

Callers 2

__tsn_trampoline_markFunction · 0.85
__tsn_deallocate_closureFunction · 0.85

Calls 1

get_closure_stack_valuesFunction · 0.85

Tested by

no test coverage detected