ref: 82a42ef1e626b4826f0a6e64344766f4258b571c
parent: c55b4e18bc30a3321179edf48cd42fcb3ccb6424
author: Tor Andersson <[email protected]>
date: Wed Jan 22 20:34:23 EST 2014
Remove debug printf.
--- a/jscompile.c
+++ b/jscompile.c
@@ -352,19 +352,6 @@
}
}
-static void cvarinit(JF, js_Ast *list)
-{
- while (list) {
- js_Ast *var = list->a;
- if (var->b) {
- cexp(J, F, var->b);
- emitstring(J, F, OP_SETVAR, var->a->string);
- emit(J, F, OP_POP);
- }
- list = list->b;
- }
-}
-
static void ccall(JF, js_Ast *fun, js_Ast *args)
{
int n;
@@ -790,6 +777,19 @@
/* Statements */
+static void cvarinit(JF, js_Ast *list)
+{
+ while (list) {
+ js_Ast *var = list->a;
+ if (var->b) {
+ cexp(J, F, var->b);
+ emitstring(J, F, OP_SETVAR, var->a->string);
+ emit(J, F, OP_POP);
+ }
+ list = list->b;
+ }
+}
+
static void cstm(JF, js_Ast *stm)
{
js_Ast *target;
@@ -869,7 +869,6 @@
jumpto(J, F, OP_JUMP, loop);
if (stm->b)
label(J, F, end);
- printf("labeling for statement: %d %d\n", cont, here(J,F));
labeljumps(J, F, stm->jumps, here(J,F), cont);
break;