From 8ebefc4141f078dfdd76cca42dddc1f7a5a826cd Mon Sep 17 00:00:00 2001 From: Phil Howard Date: Thu, 27 Jan 2022 17:47:43 +0000 Subject: [PATCH] Move Lua VM to ITCM RAM Take advantage of the new ITCM RAM support to dramatically speed up the Lua VM. See: https://github.com/32blit/32blit-sdk/pull/737 Co-authored-by: Charlie Birks --- lua/lvm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/lvm.c b/lua/lvm.c index aa3b22b..2a97521 100644 --- a/lua/lvm.c +++ b/lua/lvm.c @@ -1118,8 +1118,8 @@ void luaV_finishOp (lua_State *L) { #define vmcase(l) case l: #define vmbreak break - -void luaV_execute (lua_State *L, CallInfo *ci) { +#include "engine/fast_code.hpp" +void blit_fast_code(luaV_execute) (lua_State *L, CallInfo *ci) { LClosure *cl; TValue *k; StkId base;