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 90E9FC619AA; Wed, 21 Aug 2024 12:17:32 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 90E9FC619AA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1724231852; bh=7hay7L64XaP0Fneusxp0I6xxqKF3i08lJFXxxPoHGWI=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=QjTFxJeRM5Mbe5NIw7aTmqoe89Ghmg7AqWTacednxGS30Jn1psvVUUGUY9WE+f+yH oA4/jjtuirBMqaxr0PQ+tvU7mqEZShSkzr856Toatd0/ovu+5iJPeWRvMu8kx2TsHd ElyaRzH7aue6RTLuqcbOoFa+iKFEnhaZWEtKuOHE= Received: from smtp35.i.mail.ru (smtp35.i.mail.ru [95.163.41.76]) (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 6FDF8C619B6 for ; Wed, 21 Aug 2024 12:01:15 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 6FDF8C619B6 Received: by smtp35.i.mail.ru with esmtpa (envelope-from ) id 1sghDN-00000005aRz-0kU9; Wed, 21 Aug 2024 12:01:14 +0300 To: Maxim Kokryashkin , Sergey Bronnikov Date: Wed, 21 Aug 2024 11:58:40 +0300 Message-ID: <21d553d0dc7347f32cd78a99e0627c4e1e6d8081.1724228998.git.skaplun@tarantool.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailru-Src: smtp X-4EC0790: 10 X-7564579A: B8F34718100C35BD X-77F55803: 4F1203BC0FB41BD93D5A650E6D4F687E07C4D97A90C31D23F17946CF89EEECE6182A05F538085040431847FF547BBAAAD27678DDAA80631497B605C2E9CA88D9EFF80BD07D1CDB7980ACAB8EAC650A75 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE77633BACAB33B9508C2099A533E45F2D0395957E7521B51C2CFCAF695D4D8E9FCEA1F7E6F0F101C6778DA827A17800CE73AB734EB09B81F308F08D7030A58E5AD1A62830130A00468AEEEE3FBA3A834EE7353EFBB55337566544261B242C40E190C1AA1BCDDBBD6DE6116D19C8C6DAE3465774528D1AB10E2389733CBF5DBD5E913377AFFFEAFD269176DF2183F8FC7C0DEC8C2C8BCD2534D8941B15DA834481FCF19DD082D7633A0EF3E4896CB9E6436389733CBF5DBD5E9D5E8D9A59859A8B6F532FBFD8162E58CCC7F00164DA146DA6F5DAA56C3B73B237318B6A418E8EAB86D1867E19FE14079C09775C1D3CA48CF3D321E7403792E342EB15956EA79C166A417C69337E82CC275ECD9A6C639B01B78DA827A17800CE7888FFA144A8AE6D0731C566533BA786AA5CC5B56E945C8DA X-C1DE0DAB: 0D63561A33F958A5E9EA2B62FD3F33A95002B1117B3ED696FA7ECADBD3A540E9559C6C5561145D6F823CB91A9FED034534781492E4B8EEADB30A456A8F293845C79554A2A72441328621D336A7BC284946AD531847A6065A17B107DEF921CE79BDAD6C7F3747799A X-C8649E89: 1C3962B70DF3F0ADE00A9FD3E00BEEDF3FED46C3ACD6F73ED3581295AF09D3DF87807E0823442EA2ED31085941D9CD0AF7F820E7B07EA4CF9D76C71350E368A0B503DD1739E2A98D9E22928E19BB037BC403A18901061CC2ACCA692FBCDC96C2D14E51FF79EEE603C9353D3D10E288FAB2A94BCD9D7316CE430E260DBA196481C226CC413062362A913E6812662D5F2A5EAB5682573093F7837F15F2B5E4A70B33F2C28C22F508233FCF178C6DD14203 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojegttVMu7AX+fqAleSQIi3g== X-DA7885C5: CB219534D7B697EDF255D290C0D534F9D184D0DB692E20F317AE8A1EC4FD9CBAAD1E01629C0AB6B45B1A4C17EAA7BC4BEF2421ABFA55128DAF83EF9164C44C7E X-Mailru-Sender: 689FA8AB762F7393C6D0B12EA33CAA9BFCA3939F6040E905DAC77899D9C4377F61B8E6FB45577096E49D44BB4BD9522A059A1ED8796F048DB274557F927329BE89D5A3BC2B10C37545BD1C3CC395C826B4A721A3011E896F X-Mras: Ok Subject: [Tarantool-patches] [PATCH v2 luajit 37/45] test: refactor 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 Kaplun via Tarantool-patches Reply-To: Sergey Kaplun Cc: tarantool-patches@dev.tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" This patch refactors the aforementioned test to make its code style closer to ours. Relates to tarantool/tarantool#9398 --- test/LuaJIT-tests/trace/tcall_base.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/LuaJIT-tests/trace/tcall_base.lua b/test/LuaJIT-tests/trace/tcall_base.lua index 7d8d75e0..65fc118e 100644 --- a/test/LuaJIT-tests/trace/tcall_base.lua +++ b/test/LuaJIT-tests/trace/tcall_base.lua @@ -1,11 +1,11 @@ local r = 0 local function g() r = r + 1 - for i=1,100 do end + for _ = 1, 100 do end end local function f() - for j=1,20 do + for j = 1, 20 do if j > 19 then return g() -- Tailcall at base. -- Let this link to the already compiled loop in g(). @@ -15,6 +15,6 @@ end do --- Recording tailcall at base slot. g() -- Compile this loop first. - for i=1,50 do f() end + for _ = 1, 50 do f() end assert(r == 51) end -- 2.45.2