1.1 --- a/src/BytecodeCompiler.cpp Sun Aug 05 00:49:31 2012 -0700
1.2 +++ b/src/BytecodeCompiler.cpp Sun Aug 05 01:10:49 2012 -0700
1.3 @@ -264,7 +264,7 @@
1.4
1.5 if (node->token() != TOK_ASSIGN || (type->isStruct() || type->isArray())) {
1.6 __ bounds();
1.7 - __ getarray(index->type());
1.8 + __ getelem(index->type());
1.9 }
1.10 }
1.11
1.12 @@ -302,10 +302,10 @@
1.13 __ setfield(expr->fieldIndex(), expr->type());
1.14 } else {
1.15 IndexExpression *index = node->lvalue()->toIndexExpression();
1.16 - // :TODO: get rid of the BOUNDS instruction, embed it in g/setarray*?
1.17 + // :TODO: get rid of the BOUNDS instruction, embed it in g/setelem*?
1.18 // We can't emit it here because the stack is slightly out of position.
1.19 // __ bounds();
1.20 - __ setarray(index->type());
1.21 + __ setelem(index->type());
1.22 }
1.23 }
1.24
1.25 @@ -384,7 +384,7 @@
1.26 assert(!node->type()->isArray());
1.27 __ bounds();
1.28 __ dup2();
1.29 - __ getarray(node->type());
1.30 + __ getelem(node->type());
1.31
1.32 if (node->postfix()) {
1.33 // The stack looks like this now:
1.34 @@ -425,7 +425,7 @@
1.35 __ setfield(field->fieldIndex(), field->type());
1.36 } else {
1.37 assert(expr->isIndexExpression());
1.38 - __ setarray(node->type());
1.39 + __ setelem(node->type());
1.40 }
1.41
1.42 // Perform step (8).
1.43 @@ -539,7 +539,7 @@
1.44 node->right()->accept(this);
1.45 __ note_position(node->pos());
1.46 __ bounds();
1.47 - __ getarray(node->type());
1.48 + __ getelem(node->type());
1.49 }
1.50
1.51 void