Lines Matching refs:oldShape
1076 NativeObject::replaceWithNewEquivalentShape(ExclusiveContext* cx, Shape* oldShape, Shape* newShape, in replaceWithNewEquivalentShape() argument
1079 MOZ_ASSERT(cx->isInsideCurrentCompartment(oldShape)); in replaceWithNewEquivalentShape()
1080 MOZ_ASSERT_IF(oldShape != lastProperty(), in replaceWithNewEquivalentShape()
1081 inDictionaryMode() && lookup(cx, oldShape->propidRef()) == oldShape); in replaceWithNewEquivalentShape()
1090 oldShape = selfRoot->lastProperty(); in replaceWithNewEquivalentShape()
1097 RootedShape oldRoot(cx, oldShape); in replaceWithNewEquivalentShape()
1098 newShape = (oldShape->isAccessorShape() || accessorShape) in replaceWithNewEquivalentShape()
1105 oldShape = oldRoot; in replaceWithNewEquivalentShape()
1109 ShapeTable::Entry* entry = oldShape->isEmptyShape() in replaceWithNewEquivalentShape()
1111 : &table.search(oldShape->propidRef(), false); in replaceWithNewEquivalentShape()
1117 StackShape nshape(oldShape); in replaceWithNewEquivalentShape()
1118 newShape->initDictionaryShape(nshape, self->numFixedSlots(), oldShape->listp); in replaceWithNewEquivalentShape()
1120 MOZ_ASSERT(newShape->parent == oldShape); in replaceWithNewEquivalentShape()
1121 oldShape->removeFromDictionary(self); in replaceWithNewEquivalentShape()
1124 oldShape->handoffTableTo(newShape); in replaceWithNewEquivalentShape()