[前][次][番号順一覧][スレッド一覧]

ruby-changes:68644

From: Maxime <ko1@a...>
Date: Thu, 21 Oct 2021 08:11:41 +0900 (JST)
Subject: [ruby-changes:68644] 008551decb (master): Commit before merge.

https://git.ruby-lang.org/ruby.git/commit/?id=008551decb

From 008551decb7481c8d8a7c870a43e0ea450041aa5 Mon Sep 17 00:00:00 2001
From: Maxime Chevalier-Boisvert <maxime.chevalierboisvert@s...>
Date: Tue, 20 Oct 2020 10:37:47 -0400
Subject: Commit before merge.

---
 ujit_compile.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/ujit_compile.c b/ujit_compile.c
index 666963b11e..1bb7b407c8 100644
--- a/ujit_compile.c
+++ b/ujit_compile.c
@@ -582,8 +582,9 @@ gen_opt_send_without_block(codeblock_t* cb, codeblock_t* ocb, ctx_t* ctx) https://github.com/ruby/ruby/blob/trunk/ujit_compile.c#L582
     test(cb, flags_opnd, imm_opnd(IMEMO_FL_USER5));
     jnz_ptr(cb, side_exit);
 
-
-    // NOTE: stack frame setup may not be needed for some C functions
+    // IDEA: stack frame setup may not be needed for some C functions
+    // We could profile the most called C functions and identify which are safe
+    // This may help us eliminate stack overflow checks as well
 
     // TODO: do we need this check?
     //vm_check_frame(type, specval, cref_or_me, iseq);
@@ -605,6 +606,8 @@ gen_opt_send_without_block(codeblock_t* cb, codeblock_t* ocb, ctx_t* ctx) https://github.com/ruby/ruby/blob/trunk/ujit_compile.c#L606
 
     // FIXME: for now, we hardcode ec
     // TODO: hardcode EC
+    //mov(cb, RDI, const_ptr_opnd(rb_current_execution_context()));
+
 
     // Allocate a new CFP
     //ec->cfp--;
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]