1.1 --- a/jitcraft/Code.h Sun Jul 01 11:25:36 2012 -0700
1.2 +++ b/jitcraft/Code.h Sun Jul 01 14:52:57 2012 -0700
1.3 @@ -38,13 +38,13 @@
1.4 Unbarriered<ByteArray> bytecode_;
1.5 Unbarriered<FixedArray> locals_;
1.6 Unbarriered<FixedArray> args_;
1.7 - Unbarriered<FixedArray> maps_;
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 - FixedArray *maps, unsigned maxStackDepth, Module *module);
1.15 + FixedArray *objects, unsigned maxStackDepth, Module *module);
1.16
1.17 Module *module() {
1.18 return module_;
1.19 @@ -71,7 +71,10 @@
1.20 return maxStackDepth_;
1.21 }
1.22 Map *map(size_t index) {
1.23 - return Map::cast(maps_->at(index));
1.24 + return Map::cast(objects_->at(index));
1.25 + }
1.26 + Object *object(size_t index) {
1.27 + return objects_->at(index);
1.28 }
1.29
1.30 static Code *cast(Object *obj) {