diff -r e020a14e21be -r af5d8e985502 jitcraft/Code.h --- a/jitcraft/Code.h Sun Jul 01 11:25:36 2012 -0700 +++ b/jitcraft/Code.h Sun Jul 01 14:52:57 2012 -0700 @@ -38,13 +38,13 @@ Unbarriered bytecode_; Unbarriered locals_; Unbarriered args_; - Unbarriered maps_; + Unbarriered objects_; unsigned maxStackDepth_; public: // :TODO: use handles static Code *New(Zone *zone, ByteArray *bytecode, FixedArray *locals, FixedArray *args, - FixedArray *maps, unsigned maxStackDepth, Module *module); + FixedArray *objects, unsigned maxStackDepth, Module *module); Module *module() { return module_; @@ -71,7 +71,10 @@ return maxStackDepth_; } Map *map(size_t index) { - return Map::cast(maps_->at(index)); + return Map::cast(objects_->at(index)); + } + Object *object(size_t index) { + return objects_->at(index); } static Code *cast(Object *obj) {