From ac288386c44bdfab783ae2cdc0882d411a9c6b00 Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Tue, 14 Oct 2014 11:15:18 +0000 Subject: the compiler now allows + to be used as a floating point addition in the abstract syntax --- src/runtime/c/pgf/data.h | 3 ++- src/runtime/c/pgf/jit.c | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'src/runtime/c') diff --git a/src/runtime/c/pgf/data.h b/src/runtime/c/pgf/data.h index e734434cd..8e2b726a7 100644 --- a/src/runtime/c/pgf/data.h +++ b/src/runtime/c/pgf/data.h @@ -136,7 +136,8 @@ typedef enum { PGF_INSTR_PUSH = 9, PGF_INSTR_EVAL = 10, PGF_INSTR_DROP = 13, - PGF_INSTR_FAIL = 14 + PGF_INSTR_FAIL = 14, + PGF_INSTR_ADD = 15 } PgfInstruction; typedef GuSeq PgfConcrs; diff --git a/src/runtime/c/pgf/jit.c b/src/runtime/c/pgf/jit.c index c97113b5a..8cb2257d6 100644 --- a/src/runtime/c/pgf/jit.c +++ b/src/runtime/c/pgf/jit.c @@ -1160,6 +1160,11 @@ pgf_jit_function(PgfReader* rdr, PgfAbstr* abstr, #endif jit_jmpi(abstr->eval_gates->mk_const); break; + case PGF_INSTR_ADD: +#ifdef PGF_JIT_DEBUG + gu_printf(out, err, "ADD\n"); +#endif + break; default: gu_impossible(); } -- cgit v1.2.3