Skip to content

Commit

Permalink
Fix compiler warning & reusevm generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
lukego committed Dec 19, 2017
1 parent 8f94abb commit 1fa5375
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 142 deletions.
5 changes: 0 additions & 5 deletions src/lj_trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,6 @@ static void penalty_pc(jit_State *J, GCproto *pt, BCIns *pc, TraceError e)
/* Start tracing. */
static void trace_start(jit_State *J)
{
lua_State *L;
TraceNo traceno;

if ((J->pt->flags & PROTO_NOJIT)) { /* JIT disabled for this proto? */
Expand Down Expand Up @@ -390,7 +389,6 @@ static void trace_start(jit_State *J)
J->ktrace = 0;
setgcref(J->cur.startpt, obj2gco(J->pt));

L = J->L;
lj_record_setup(J);
}

Expand All @@ -402,7 +400,6 @@ static void trace_stop(jit_State *J)
GCproto *pt = &gcref(J->cur.startpt)->pt;
TraceNo traceno = J->cur.traceno;
GCtrace *T = J->curfinal;
lua_State *L;
int i;

switch (op) {
Expand Down Expand Up @@ -459,8 +456,6 @@ static void trace_stop(jit_State *J)
for (i = 0; i < PENALTY_SLOTS; i++)
if (mref(J->penalty[i].pc, const BCIns) == pc)
J->penalty[i].val = PENALTY_MIN;

L = J->L;
}

/* Start a new root trace for down-recursion. */
Expand Down
Loading

0 comments on commit 1fa5375

Please sign in to comment.