summaryrefslogtreecommitdiff
path: root/src/lj_dispatch.c
diff options
context:
space:
mode:
authorMike Pall <mike>2011-06-07 21:37:24 +0200
committerMike Pall <mike>2011-06-07 21:37:24 +0200
commit585cf05dbd54564d2d3387cef09b3ac2d5e52afd (patch)
treed455c80e6d916ae2673d8aaaee50f0ba77d0b92a /src/lj_dispatch.c
parentb44ccd426339a9eb0da83633d4b71a23dac29762 (diff)
downloadluajit-585cf05dbd54564d2d3387cef09b3ac2d5e52afd.tar.gz
luajit-585cf05dbd54564d2d3387cef09b3ac2d5e52afd.tar.bz2
luajit-585cf05dbd54564d2d3387cef09b3ac2d5e52afd.zip
Move debugging/introspection functionality to lj_debug.c.
Diffstat (limited to 'src/lj_dispatch.c')
-rw-r--r--src/lj_dispatch.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lj_dispatch.c b/src/lj_dispatch.c
index 425eeaa2..5fbc112c 100644
--- a/src/lj_dispatch.c
+++ b/src/lj_dispatch.c
@@ -8,6 +8,7 @@
8 8
9#include "lj_obj.h" 9#include "lj_obj.h"
10#include "lj_err.h" 10#include "lj_err.h"
11#include "lj_debug.h"
11#include "lj_state.h" 12#include "lj_state.h"
12#include "lj_frame.h" 13#include "lj_frame.h"
13#include "lj_bc.h" 14#include "lj_bc.h"
@@ -380,8 +381,8 @@ void LJ_FASTCALL lj_dispatch_ins(lua_State *L, const BCIns *pc)
380 if ((g->hookmask & LUA_MASKLINE)) { 381 if ((g->hookmask & LUA_MASKLINE)) {
381 BCPos npc = proto_bcpos(pt, pc) - 1; 382 BCPos npc = proto_bcpos(pt, pc) - 1;
382 BCPos opc = proto_bcpos(pt, oldpc) - 1; 383 BCPos opc = proto_bcpos(pt, oldpc) - 1;
383 BCLine line = proto_line(pt, npc); 384 BCLine line = lj_debug_line(pt, npc);
384 if (pc <= oldpc || opc >= pt->sizebc || line != proto_line(pt, opc)) { 385 if (pc <= oldpc || opc >= pt->sizebc || line != lj_debug_line(pt, opc)) {
385 callhook(L, LUA_HOOKLINE, line); 386 callhook(L, LUA_HOOKLINE, line);
386 L->top = L->base + slots; /* Fix top again. */ 387 L->top = L->base + slots; /* Fix top again. */
387 } 388 }