src/BytecodeEmitter.h
changeset 154 a85a0303bcb8
parent 152 153d0cafc1fd
child 157 b760e8cb29a8
     1.1 --- a/src/BytecodeEmitter.h	Sat Aug 04 23:58:23 2012 -0700
     1.2 +++ b/src/BytecodeEmitter.h	Sun Aug 05 00:31:20 2012 -0700
     1.3 @@ -366,6 +366,12 @@
     1.4      }
     1.5  
     1.6      void getarray(Type *type) {
     1.7 +        if (type->isTraceable()) {
     1.8 +            singleByteOp(OP_GETARRAY_O);
     1.9 +            markOop(1);
    1.10 +            return;
    1.11 +        }
    1.12 +
    1.13          switch (type->pod()) {
    1.14            case PrimitiveType_Float:
    1.15              singleByteOp(OP_GETARRAY_F);
    1.16 @@ -447,10 +453,6 @@
    1.17          writeUint32(var->slot());
    1.18      }
    1.19  
    1.20 -    void getarray_o() {
    1.21 -        singleByteOp(OP_GETARRAY_O);
    1.22 -        markOop(1);
    1.23 -    }
    1.24      void bounds() {
    1.25          singleByteOp(OP_BOUNDS);
    1.26          markOop(2);