reactorlabs/rir

User-Provided Function Context

開放

#910 建立於 2020年9月22日

 (2 則留言) (0 個反應) (1 位負責人)C++ (19 個分叉)github user discovery
help wanted

倉庫指標

星標
 (61 顆星)
PR 合併指標
 (平均合併 1分鐘) (30 天內合併 1 個 PR)

描述

A RIR function (ie. a DispatchTable) should have a user-provided context, that is a minimal context required to enter a function. This needs:

  1. Add a Context to the dispatch table
  2. Add a api to set a context on the dispatch table (for now this can be very simple, e.g. just the numerical representation of a context) related: #911
  3. Ensure the context is checked when calling the function (should be enough to check in dispatch in interp.cpp)
  4. Ensure the context is checked when entering an inlined section of the function

貢獻者指南