From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id DEBA1CE2D77; Thu, 22 Aug 2024 17:11:27 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org DEBA1CE2D77 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1724335888; bh=nIVZ3XmyFsRnEbPuo2dJklH/LneMzEsORekVcjVgEKo=; h=Date:To:Cc:References:In-Reply-To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=hb7QeWQtLes6Vkw+mRd93118w/lKDSEuVp3ByP4Z6RSqe7kHhHS0VJ/79UtMyoX/o e7vw+hPdVMXMHBDsZ16Eu/JUldEkiKO8D/ZGEewpwODdGsMKxN/Zj1Wy/ppapnWO+h uFn7++scKIg/EW62wCKn3bFISRf18K49Ii4882Nk= Received: from smtp30.i.mail.ru (smtp30.i.mail.ru [95.163.41.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id E1C62CE2D78 for ; Thu, 22 Aug 2024 17:11:25 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org E1C62CE2D78 Received: by smtp30.i.mail.ru with esmtpa (envelope-from ) id 1sh8X5-0000000H7ib-3GEc; Thu, 22 Aug 2024 17:11:24 +0300 Content-Type: multipart/alternative; boundary="------------7YT0Yb0sD05AsCGWUJZ10Z0a" Message-ID: <717fed1c-16bc-47ff-9d1b-d1c99826376c@tarantool.org> Date: Thu, 22 Aug 2024 17:11:23 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: Sergey Kaplun , Maxim Kokryashkin Cc: tarantool-patches@dev.tarantool.org References: In-Reply-To: X-Mailru-Src: smtp X-4EC0790: 10 X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD9A67092BE052B1D9E80479E83A5F5ECBCB411FF80AE7BBDAB182A05F5380850404F39727A5E379D5E89CEA9C911D099958D629B4EB8E960CFB32D9F4D3AE59E64906DE0852CB233E4 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7AEA4A6B3AFC9B957C2099A533E45F2D0395957E7521B51C2CFCAF695D4D8E9FCEA1F7E6F0F101C6778DA827A17800CE71D6E7AC8529A326CEA1F7E6F0F101C6723150C8DA25C47586E58E00D9D99D84E1BDDB23E98D2D38B043BF0FB74779F36AF364AE4C116FB477BC768B6FA86F4DFC38C9145C46FCBB8A471835C12D1D9774AD6D5ED66289B5259CC434672EE6371117882F4460429724CE54428C33FAD30A8DF7F3B2552694AC26CFBAC0749D213D2E47CDBA5A9658378DA827A17800CE767883B903EA3BAEA9FA2833FD35BB23DF004C90652538430302FCEF25BFAB3454AD6D5ED66289B5278DA827A17800CE7541FADD3D81556A7D32BA5DBAC0009BE395957E7521B51C2330BD67F2E7D9AF1090A508E0FED6299176DF2183F8FC7C087047FD9FF236CBACD04E86FAF290E2DB606B96278B59C421DD303D21008E29813377AFFFEAFD269A417C69337E82CC2E827F84554CEF50127C277FBC8AE2E8BA83251EDC214901ED5E8D9A59859A8B6F82A78844E5C6993089D37D7C0E48F6C5571747095F342E88FB05168BE4CE3AF X-C1DE0DAB: 0D63561A33F958A59115F34ED175F14D5002B1117B3ED696C53F57CF216FD942C89B063BDC7FAC35823CB91A9FED034534781492E4B8EEADD0953842B444AAC3BDAD6C7F3747799A X-C8649E89: 1C3962B70DF3F0ADE00A9FD3E00BEEDF3FED46C3ACD6F73ED3581295AF09D3DF87807E0823442EA2ED31085941D9CD0AF7F820E7B07EA4CFE2D725AD3251E3F41E826C361642597A3B408196C698AEC2424D034361C6891FEC58EB6354A2D53A2FB0CAD32ADFBF84BFC7BA54243DF4F1242B49683A7C74081E03A24B251180385F4332CA8FE04980913E6812662D5F2AB9AF64DB4688768036DF5FE9C0001AF333F2C28C22F508233FCF178C6DD14203 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojbUwDRTee1XohQmkeHdV9gA== X-Mailru-Sender: 520A125C2F17F0B1E52FEF5D219D6140E6D13FC5DB1FA81F91397EB218679B829AF3E9562E2FF62F0152A3D17938EB451EB5A0BCEC6A560B3DDE9B364B0DF289BE2DA36745F2EEB5CEBA01FB949A1F1EEAB4BC95F72C04283CDA0F3B3F5B9367 X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH v2 luajit 36/45] test: enable LuaJIT test X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Sergey Bronnikov via Tarantool-patches Reply-To: Sergey Bronnikov Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" This is a multi-part message in MIME format. --------------7YT0Yb0sD05AsCGWUJZ10Z0a Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sergey, On 21.08.2024 11:58, Sergey Kaplun wrote: > This patch moves the aforementioned test from the to the > directory, includes it in , and names the subtest. > > Part of tarantool/tarantool#9398 > --- thanks for the patch! LGTM > test/LuaJIT-tests/trace/index | 1 + > test/LuaJIT-tests/{misc => trace}/tcall_base.lua | 10 +++++----- > 2 files changed, 6 insertions(+), 5 deletions(-) > rename test/LuaJIT-tests/{misc => trace}/tcall_base.lua (66%) > > diff --git a/test/LuaJIT-tests/trace/index b/test/LuaJIT-tests/trace/index > index 4826f429..9de3b478 100644 > --- a/test/LuaJIT-tests/trace/index > +++ b/test/LuaJIT-tests/trace/index > @@ -10,3 +10,4 @@ phi > snap.lua > stack_purge.lua > stitch.lua > +tcall_base.lua > diff --git a/test/LuaJIT-tests/misc/tcall_base.lua b/test/LuaJIT-tests/trace/tcall_base.lua > similarity index 66% > rename from test/LuaJIT-tests/misc/tcall_base.lua > rename to test/LuaJIT-tests/trace/tcall_base.lua > index c6c4ae1a..7d8d75e0 100644 > --- a/test/LuaJIT-tests/misc/tcall_base.lua > +++ b/test/LuaJIT-tests/trace/tcall_base.lua > @@ -1,4 +1,3 @@ > - > local r = 0 > local function g() > r = r + 1 > @@ -14,7 +13,8 @@ local function f() > end > end > > -g() -- Compile this loop first. > -for i=1,50 do f() end > -assert(r == 51) > - > +do --- Recording tailcall at base slot. > + g() -- Compile this loop first. > + for i=1,50 do f() end > + assert(r == 51) > +end --------------7YT0Yb0sD05AsCGWUJZ10Z0a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Sergey,

On 21.08.2024 11:58, Sergey Kaplun wrote:
This patch moves the aforementioned test from the <misc> to the <trace/>
directory, includes it in <index>, and names the subtest.

Part of tarantool/tarantool#9398
---
thanks for the patch! LGTM
 test/LuaJIT-tests/trace/index                    |  1 +
 test/LuaJIT-tests/{misc => trace}/tcall_base.lua | 10 +++++-----
 2 files changed, 6 insertions(+), 5 deletions(-)
 rename test/LuaJIT-tests/{misc => trace}/tcall_base.lua (66%)

diff --git a/test/LuaJIT-tests/trace/index b/test/LuaJIT-tests/trace/index
index 4826f429..9de3b478 100644
--- a/test/LuaJIT-tests/trace/index
+++ b/test/LuaJIT-tests/trace/index
@@ -10,3 +10,4 @@ phi
 snap.lua
 stack_purge.lua
 stitch.lua
+tcall_base.lua
diff --git a/test/LuaJIT-tests/misc/tcall_base.lua b/test/LuaJIT-tests/trace/tcall_base.lua
similarity index 66%
rename from test/LuaJIT-tests/misc/tcall_base.lua
rename to test/LuaJIT-tests/trace/tcall_base.lua
index c6c4ae1a..7d8d75e0 100644
--- a/test/LuaJIT-tests/misc/tcall_base.lua
+++ b/test/LuaJIT-tests/trace/tcall_base.lua
@@ -1,4 +1,3 @@
-
 local r = 0
 local function g()
   r = r + 1
@@ -14,7 +13,8 @@ local function f()
   end
 end
 
-g() -- Compile this loop first.
-for i=1,50 do f() end
-assert(r == 51)
-
+do --- Recording tailcall at base slot.
+  g() -- Compile this loop first.
+  for i=1,50 do f() end
+  assert(r == 51)
+end
--------------7YT0Yb0sD05AsCGWUJZ10Z0a--