From ad0d549d4cc13433f77c1ac8f0ab379c83d93f28 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Fri, 24 Feb 2012 16:36:50 +0100 Subject: Imported WebKit commit bb52bf3c0119e8a128cd93afe5572413a8617de9 (http://svn.webkit.org/repository/webkit/trunk@108790) --- Source/JavaScriptCore/bytecode/StructureStubInfo.cpp | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'Source/JavaScriptCore/bytecode/StructureStubInfo.cpp') diff --git a/Source/JavaScriptCore/bytecode/StructureStubInfo.cpp b/Source/JavaScriptCore/bytecode/StructureStubInfo.cpp index ec18782d5..f2657b785 100644 --- a/Source/JavaScriptCore/bytecode/StructureStubInfo.cpp +++ b/Source/JavaScriptCore/bytecode/StructureStubInfo.cpp @@ -27,6 +27,7 @@ #include "StructureStubInfo.h" #include "JSObject.h" +#include "PolymorphicPutByIdList.h" #include "ScopeChain.h" namespace JSC { @@ -45,6 +46,9 @@ void StructureStubInfo::deref() delete polymorphicStructures; return; } + case access_put_by_id_list: + delete u.putByIdList.list; + return; case access_get_by_id_self: case access_get_by_id_proto: case access_get_by_id_chain: @@ -82,18 +86,14 @@ bool StructureStubInfo::visitWeakReferences() break; case access_get_by_id_self_list: { PolymorphicAccessStructureList* polymorphicStructures = u.getByIdSelfList.structureList; - if (!polymorphicStructures->visitWeak(u.getByIdSelfList.listSize)) { - delete polymorphicStructures; + if (!polymorphicStructures->visitWeak(u.getByIdSelfList.listSize)) return false; - } break; } case access_get_by_id_proto_list: { PolymorphicAccessStructureList* polymorphicStructures = u.getByIdProtoList.structureList; - if (!polymorphicStructures->visitWeak(u.getByIdSelfList.listSize)) { - delete polymorphicStructures; + if (!polymorphicStructures->visitWeak(u.getByIdSelfList.listSize)) return false; - } break; } case access_put_by_id_transition_normal: @@ -107,6 +107,10 @@ bool StructureStubInfo::visitWeakReferences() if (!Heap::isMarked(u.putByIdReplace.baseObjectStructure.get())) return false; break; + case access_put_by_id_list: + if (!u.putByIdList.list->visitWeak()) + return false; + break; default: // The rest of the instructions don't require references, so there is no need to // do anything. -- cgit v1.2.1