src/BytecodeCompiler.cpp
changeset 164 3bf7c007883d
parent 158 91071a2255bf
child 168 4d0fff61d65e
     1.1 --- a/src/BytecodeCompiler.cpp	Sun Aug 05 02:17:40 2012 -0700
     1.2 +++ b/src/BytecodeCompiler.cpp	Sun Aug 05 12:55:51 2012 -0700
     1.3 @@ -874,6 +874,11 @@
     1.4                  expr->right()->accept(this);
     1.5                  __ note_position(expr->pos());
     1.6                  __ arrayref_lifo();
     1.7 +            } else if (arg->isFieldExpression()) {
     1.8 +                FieldExpression *expr = arg->toFieldExpression();
     1.9 +                expr->left()->accept(this);
    1.10 +                __ note_position(expr->pos());
    1.11 +                __ fieldref_lifo(expr->fieldIndex());
    1.12              } else {
    1.13                  // We don't know how to, or can't, build a direct reference to
    1.14                  // this type. Make an indirect one, by taking the top of the