jitcraft/BytecodeCompiler.h
changeset 4 633176823669
parent 2 46fc53b8fd2f
child 9 73781c5a59d7
     1.1 --- a/jitcraft/BytecodeCompiler.h	Tue Jun 26 00:58:55 2012 -0700
     1.2 +++ b/jitcraft/BytecodeCompiler.h	Wed Jun 27 02:21:56 2012 -0700
     1.3 @@ -57,6 +57,7 @@
     1.4      void leaveScope(Scope *scope);
     1.5      void visitForTest(Expression *expression, BytecodeEmitter::Label *label, bool onTrue);
     1.6      Code *compileFunction(Module *module, FunctionStatement *fun);
     1.7 +    void visitForALU(Type *needed, Expression *node);
     1.8  
     1.9    public:
    1.10      BytecodeCompiler(ParseTree *tree);
    1.11 @@ -71,7 +72,8 @@
    1.12      void visit(ForStatement *node);
    1.13      void visit(BlockStatement *node);
    1.14      void visit(VariableDeclaration *node);
    1.15 -    void visit(IntegerLiteralExpression *node);
    1.16 +    void visit(IntegerLiteral *node);
    1.17 +    void visit(FloatLiteral *node);
    1.18      void visit(ExpressionStatement *node);
    1.19      void visit(FunctionStatement *node);
    1.20      void visit(CallExpression *node);