diff -r 0d28dc5af6c7 -r b760e8cb29a8 src/BytecodeCompiler.cpp --- a/src/BytecodeCompiler.cpp Sun Aug 05 00:49:31 2012 -0700 +++ b/src/BytecodeCompiler.cpp Sun Aug 05 01:10:49 2012 -0700 @@ -264,7 +264,7 @@ if (node->token() != TOK_ASSIGN || (type->isStruct() || type->isArray())) { __ bounds(); - __ getarray(index->type()); + __ getelem(index->type()); } } @@ -302,10 +302,10 @@ __ setfield(expr->fieldIndex(), expr->type()); } else { IndexExpression *index = node->lvalue()->toIndexExpression(); - // :TODO: get rid of the BOUNDS instruction, embed it in g/setarray*? + // :TODO: get rid of the BOUNDS instruction, embed it in g/setelem*? // We can't emit it here because the stack is slightly out of position. // __ bounds(); - __ setarray(index->type()); + __ setelem(index->type()); } } @@ -384,7 +384,7 @@ assert(!node->type()->isArray()); __ bounds(); __ dup2(); - __ getarray(node->type()); + __ getelem(node->type()); if (node->postfix()) { // The stack looks like this now: @@ -425,7 +425,7 @@ __ setfield(field->fieldIndex(), field->type()); } else { assert(expr->isIndexExpression()); - __ setarray(node->type()); + __ setelem(node->type()); } // Perform step (8). @@ -539,7 +539,7 @@ node->right()->accept(this); __ note_position(node->pos()); __ bounds(); - __ getarray(node->type()); + __ getelem(node->type()); } void