Bug 1115387 - Create templateObject for SIMD constructors. r=jandem

This commit is contained in:
Nicolas B. Pierron 2014-12-30 15:01:52 +01:00
parent 4eea340b21
commit def506329e

View File

@ -9031,6 +9031,15 @@ TryAttachFunCallStub(JSContext *cx, ICCall_Fallback *stub, HandleScript script,
return true;
}
if (hook == SimdTypeDescr::call) {
Rooted<SimdTypeDescr *> descr(cx, &args.callee().as<SimdTypeDescr>());
JSObject *obj = TypedObject::createZeroed(cx, descr, 0, gc::TenuredHeap);
if (!obj)
return false;
templateObject.set(obj);
return true;
}
return true;
}