mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1115387 - Create templateObject for SIMD constructors. r=jandem
This commit is contained in:
parent
4eea340b21
commit
def506329e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user