1.1 --- a/src/Interpreter.cpp Mon Dec 24 02:56:02 2012 -0800
1.2 +++ b/src/Interpreter.cpp Mon Dec 24 16:09:13 2012 -0800
1.3 @@ -82,29 +82,6 @@
1.4 return true;
1.5 }
1.6
1.7 -static bool
1.8 -DuplicateArray(Zone *zone, Handle<Array> src)
1.9 -{
1.10 - Local<ArrayMap> map(zone, ArrayMap::cast(src->map()));
1.11 - Local<Array> dest(zone);
1.12 -
1.13 - if (map->type()->isFixedLength()) {
1.14 - dest = Array::NewFixed(zone, map);
1.15 - } else {
1.16 - Type *type = map->type();
1.17 - int sizes[MAX_ARRAY_DEPTH];
1.18 - for (unsigned i = 0; i < map->type()->levels(); i++) {
1.19 - ArrayType *atype = ArrayType::cast(type);
1.20 - sizes[i] = atype->isFixedLength()
1.21 - ? atype->fixedLength()
1.22 - : 0;
1.23 - type = atype->contained();
1.24 - }
1.25 - }
1.26 -
1.27 - Local<Array> dst(zone);
1.28 -}
1.29 -
1.30 static void
1.31 GetElement(Array *array, int index, LocalSlot *vp)
1.32 {