compile: stop writing location of each node
authorJean Privat <jean@pryen.org>
Tue, 23 Jun 2009 04:20:11 +0000 (00:20 -0400)
committerJean Privat <jean@pryen.org>
Wed, 24 Jun 2009 19:48:19 +0000 (15:48 -0400)
So much runtime consuming.
Can always be reactivated in case of emergency.

Signed-off-by: Jean Privat <jean@pryen.org>

src/compiling/compiling_methods.nit

index b381b22..a8bbd6d 100644 (file)
@@ -25,7 +25,7 @@ redef class CompilerVisitor
        meth compile_stmt(n: PExpr)
        do
                if n == null then return
-               add_instr("/* Compile stmt {n.locate} */")
+               #add_instr("/* Compile stmt {n.locate} */")
                n.prepare_compile_stmt(self)
                var i = cfc._variable_index
                n.compile_stmt(self)
@@ -35,14 +35,14 @@ redef class CompilerVisitor
        # Compile is expression node
        meth compile_expr(n: PExpr): String
        do
-               add_instr("/* Compile expr {n.locate} */")
+               #add_instr("/* Compile expr {n.locate} */")
                var i = cfc._variable_index
                var s = n.compile_expr(self)
                cfc._variable_index = i
                if s[0] == ' ' or cfc.is_valid_variable(s) then
                        return s
                end
-               var v = cfc.get_var("Result for expr {n.locate}")
+               var v = cfc.get_var("Result")
                add_assignment(v, s)
                return v
        end