jitcraft/Code.h
changeset 26 a48382113da6
parent 21 af5d8e985502
child 34 9aafaf3797e6
     1.1 --- a/jitcraft/Code.h	Mon Jul 02 01:24:57 2012 -0700
     1.2 +++ b/jitcraft/Code.h	Mon Jul 02 01:52:57 2012 -0700
     1.3 @@ -37,13 +37,12 @@
     1.4      Module *module_;
     1.5      Unbarriered<ByteArray> bytecode_;
     1.6      Unbarriered<FixedArray> locals_;
     1.7 -    Unbarriered<FixedArray> args_;
     1.8      Unbarriered<FixedArray> objects_;
     1.9      unsigned maxStackDepth_;
    1.10  
    1.11    public:
    1.12      // :TODO: use handles
    1.13 -    static Code *New(Zone *zone, ByteArray *bytecode, FixedArray *locals, FixedArray *args,
    1.14 +    static Code *New(Zone *zone, ByteArray *bytecode, FixedArray *locals,
    1.15                       FixedArray *objects, unsigned maxStackDepth, Module *module);
    1.16  
    1.17      Module *module() {
    1.18 @@ -58,15 +57,9 @@
    1.19      Type *localType(size_t index) {
    1.20          return Type::cast(locals_->at(index));
    1.21      }
    1.22 -    Type *argType(size_t index) {
    1.23 -        return Type::cast(args_->at(index));
    1.24 -    }
    1.25      unsigned nlocals() {
    1.26          return locals_->length();
    1.27      }
    1.28 -    unsigned nargs() {
    1.29 -        return args_->length();
    1.30 -    }
    1.31      unsigned maxStackDepth() {
    1.32          return maxStackDepth_;
    1.33      }