From faf0f8344b8a015c88a3fc5d3eec5bf13d0b0108 Mon Sep 17 00:00:00 2001 From: Brian Hackett Date: Tue, 16 Sep 2014 09:03:07 -0700 Subject: [PATCH] Bug 1061600 - Fix PropertyWriteNeedsTypeBarrier, r=jandem. --- js/src/jit/MIR.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/jit/MIR.cpp b/js/src/jit/MIR.cpp index cf6f11cd7a31..79f61e846d2d 100644 --- a/js/src/jit/MIR.cpp +++ b/js/src/jit/MIR.cpp @@ -4033,7 +4033,7 @@ jit::PropertyWriteNeedsTypeBarrier(TempAllocator &alloc, types::CompilerConstrai // TI doesn't track TypedArray objects and should never insert a type // barrier for them. - if (IsTypedArrayClass(object->clasp())) + if (!name && IsTypedArrayClass(object->clasp())) continue; jsid id = name ? NameToId(name) : JSID_VOID; @@ -4065,7 +4065,7 @@ jit::PropertyWriteNeedsTypeBarrier(TempAllocator &alloc, types::CompilerConstrai types::TypeObjectKey *object = types->getObject(i); if (!object || object->unknownProperties()) continue; - if (IsTypedArrayClass(object->clasp())) + if (!name && IsTypedArrayClass(object->clasp())) continue; jsid id = name ? NameToId(name) : JSID_VOID;