diff options
author | Aaron Patterson <[email protected]> | 2021-07-15 11:09:08 -0700 |
---|---|---|
committer | Alan Wu <[email protected]> | 2021-10-20 18:19:37 -0400 |
commit | 05b5a7f01139a3c9610b80194e4385928dd4cd55 (patch) | |
tree | 78c9436e69de0b12b2073ba1b4a5c103dd920b28 /yjit_codegen.h | |
parent | 0fdcdd267f7c3a482467f60e00049b88da1ae88c (diff) |
Add a guard that we start executing on the first PC
Methods with optional parameters don't always start executing at the
first PC, but we compile all methods assuming that they do. This commit
adds a guard to ensure that we're actually starting at the first PC for
methods with optional params
Diffstat (limited to 'yjit_codegen.h')
-rw-r--r-- | yjit_codegen.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yjit_codegen.h b/yjit_codegen.h index 683765319e..7041a5a0a5 100644 --- a/yjit_codegen.h +++ b/yjit_codegen.h @@ -41,7 +41,7 @@ typedef enum codegen_status { // Code generation function signature typedef codegen_status_t (*codegen_fn)(jitstate_t* jit, ctx_t* ctx); -uint8_t* yjit_entry_prologue(); +uint8_t* yjit_entry_prologue(const rb_iseq_t* iseq); void yjit_gen_block(block_t* block, rb_execution_context_t* ec); |