Bug 1265449: Remove static assumption about SIMD objects; r=jonco
authorBenjamin Bouvier <benj@benj.me>
Thu, 07 Apr 2016 14:19:07 +0200
changeset 334012 22d56f931cb6f762f97557927d56c0bd11968cfa
parent 334011 aa95332a325b11d8a0466289fe5c89faa018ed06
child 334013 f8cc52e2b8f90ebe8982e927d31a0174c6bfe71e
push id1146
push userCallek@gmail.com
push dateMon, 25 Jul 2016 16:35:44 +0000
treeherdermozilla-release@a55778f9cd5a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjonco
bugs1265449
milestone48.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1265449: Remove static assumption about SIMD objects; r=jonco MozReview-Commit-ID: GcowJIjVRto
js/src/builtin/SIMD.cpp
--- a/js/src/builtin/SIMD.cpp
+++ b/js/src/builtin/SIMD.cpp
@@ -400,19 +400,16 @@ FillLanes(JSContext* cx, Handle<TypedObj
 }
 
 bool
 SimdTypeDescr::call(JSContext* cx, unsigned argc, Value* vp)
 {
     CallArgs args = CallArgsFromVp(argc, vp);
 
     Rooted<SimdTypeDescr*> descr(cx, &args.callee().as<SimdTypeDescr>());
-    MOZ_ASSERT(size_t(static_cast<TypeDescr*>(descr)->size()) <= InlineTypedObject::MaximumSize,
-               "inline storage is needed for using InternalHandle belows");
-
     Rooted<TypedObject*> result(cx, TypedObject::createZeroed(cx, descr, 0));
     if (!result)
         return false;
 
 #define CASE_CALL_(Type) \
       case SimdType::Type:   return FillLanes< ::Type>(cx, result, args);
 
     switch (descr->type()) {