fix libgccjit compilation errors caused by latest changes

pull/81/head
dibyendumajumdar 9 years ago
parent 9026f3ee3e
commit d5ac5fd22d

@ -342,7 +342,7 @@ int luaD_precall (lua_State *L, StkId func, int nresults, int op_call) {
return 1;
}
case LUA_TLCL: { /* Lua function: prepare its call */
CallInfo *prevci = L->ci; /* RAVI - for validation */
/* CallInfo *prevci = L->ci; */ /* RAVI - for validation */
StkId base;
Proto *p = clLvalue(func)->p;
n = cast_int(L->top - func) - 1; /* number of real arguments */

@ -172,7 +172,7 @@ int luaV_forlimit (const TValue *obj, lua_Integer *p, lua_Integer step,
void luaV_gettable (lua_State *L, const TValue *t, TValue *key, StkId val) {
int loop; /* counter to avoid infinite loops */
for (loop = 0; loop < MAXTAGLOOP; loop++) {
const TValue *tm;
const TValue *tm = NULL;
if (ttistable(t)) { /* 't' is a table? */
Table *h = hvalue(t);
switch (h->ravi_array.array_type) {
@ -218,7 +218,7 @@ void luaV_gettable (lua_State *L, const TValue *t, TValue *key, StkId val) {
void luaV_settable (lua_State *L, const TValue *t, TValue *key, StkId val) {
int loop; /* counter to avoid infinite loops */
for (loop = 0; loop < MAXTAGLOOP; loop++) {
const TValue *tm;
const TValue *tm = NULL;
if (ttistable(t)) { /* 't' is a table? */
Table *h = hvalue(t);
switch (h->ravi_array.array_type) {

@ -22,6 +22,7 @@
******************************************************************************/
#include <ravi_gccjit.h>
#include <assert.h>
// OP_JMP
void ravi_emit_JMP(ravi_function_def_t *def, int A, int j, int pc) {
@ -166,4 +167,4 @@ void ravi_emit_CALL(ravi_function_def_t *def, int A, int B, int C, int pc) {
ravi_emit_branch(def, end_block);
ravi_set_current_block(def, end_block);
}
}

@ -23,6 +23,7 @@
#include <ravi_gccjit.h>
#include <ravijit.h>
#include <assert.h>
// Create a unique function name in the context
// of this generator

@ -22,6 +22,7 @@
******************************************************************************/
#include <ravi_gccjit.h>
#include <assert.h>
// implements EQ, LE and LT - by using the supplied lua function to call.
void ravi_emit_EQ_LE_LT(ravi_function_def_t *def, int A, int B, int C, int j,

@ -21,6 +21,7 @@
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
******************************************************************************/
#include <ravi_gccjit.h>
#include <assert.h>
void ravi_emit_iFORPREP(ravi_function_def_t *def, int A, int pc, int step_one) {
ravi_branch_def_t *forloop_target = def->jmp_targets[pc];

@ -22,6 +22,7 @@
******************************************************************************/
#include <ravi_gccjit.h>
#include <assert.h>
// R(A+1) := R(B); R(A) := R(B)[RK(C)]
void ravi_emit_SELF(ravi_function_def_t *def, int A, int B, int C, int pc) {

Loading…
Cancel
Save