diff options
author | Alan Wu <XrXr@users.noreply.github.com> | 2021-05-04 12:35:51 -0400 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-20 18:19:34 -0400 |
commit | 0758115d112a1ff452876d3689d20e84d5ff1e37 (patch) | |
tree | 50100b0e79bb92d2df0f70a1d2056fe0071e9426 /yjit_codegen.h | |
parent | 59e5f6b83b3d55fb4a2e4d9669c31d5f31b1fda0 (diff) | |
download | ruby-0758115d112a1ff452876d3689d20e84d5ff1e37.tar.gz |
Implement send with blocks
* Implement send with blocks
Not that much extra work compared to `opt_send_without_block`.
Moved the stack over flow check because it could've exited after changes
are made to cfp.
* rename oswb counters
* Might as well implement sending block to cfuncs
* Disable sending blocks to cfuncs for now
* Reconstruct interpreter sp before calling into cfuncs
In case the callee cfunc calls a method or delegates to a block.
This also has the side benefit of letting call sites that sometimes are
iseq calls and sometimes cfunc call share the same successor.
* only sync with interpreter sp when passing a block
Co-authored-by: Maxime Chevalier-Boisvert <maximechevalierb@gmail.com>
Co-authored-by: Aaron Patterson <aaron.patterson@shopify.com>
Diffstat (limited to 'yjit_codegen.h')
-rw-r--r-- | yjit_codegen.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/yjit_codegen.h b/yjit_codegen.h index 896704d866..683765319e 100644 --- a/yjit_codegen.h +++ b/yjit_codegen.h @@ -20,6 +20,9 @@ typedef struct JITState // Index of the current instruction being compiled uint32_t insn_idx; + // Opcode for the instruction being compiled + int opcode; + // PC of the instruction being compiled VALUE *pc; |