2008-10-17 Maciej Stachowiak <mjs@apple.com>
[WebKit.git] / JavaScriptCore / kjs / JSObject.cpp
index a7548150f9ae707c8782e00e113468f89a8364e9..010429eff22c5bd0a59b4b8f3da07458874b9b35 100644 (file)
@@ -511,16 +511,7 @@ StructureID* JSObject::createInheritorID()
 
 void JSObject::allocatePropertyStorage(size_t oldSize, size_t newSize)
 {
 
 void JSObject::allocatePropertyStorage(size_t oldSize, size_t newSize)
 {
-    ASSERT(newSize > oldSize);
-
-    JSValue** oldPropertStorage = m_propertyStorage;
-    m_propertyStorage = new JSValue*[newSize];
-
-    for (unsigned i = 0; i < oldSize; ++i)
-        m_propertyStorage[i] = oldPropertStorage[i];
-
-    if (oldPropertStorage != m_inlineStorage)
-        delete [] oldPropertStorage;
+    allocatePropertyStorageInline(oldSize, newSize);
 }
 
 JSObject* constructEmptyObject(ExecState* exec)
 }
 
 JSObject* constructEmptyObject(ExecState* exec)