mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1072911 - Scalar Replacement: Add missing MIRTypes. r=h4writer
This commit is contained in:
parent
d50e32f0f9
commit
881e8c88d2
14
js/src/jit-test/tests/ion/bug1072911.js
Normal file
14
js/src/jit-test/tests/ion/bug1072911.js
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
function X () {};
|
||||
function Y () {};
|
||||
function testCallProtoMethod() {
|
||||
var a = [new X, new X, __proto__, new Y, new Y];
|
||||
}
|
||||
testCallProtoMethod();
|
||||
|
||||
function testNot() {
|
||||
var r;
|
||||
for (var i = 0; i < 10; ++i)
|
||||
r = [];
|
||||
}
|
||||
testNot();
|
@ -3178,6 +3178,7 @@ MCreateThisWithTemplate::canRecoverOnBailout() const
|
||||
MObjectState::MObjectState(MDefinition *obj)
|
||||
{
|
||||
// This instruction is only used as a summary for bailout paths.
|
||||
setResultType(MIRType_Object);
|
||||
setRecoveredOnBailout();
|
||||
JSObject *templateObject = nullptr;
|
||||
if (obj->isNewObject())
|
||||
|
@ -2581,6 +2581,7 @@ class MArrayState : public MVariadicInstruction
|
||||
explicit MArrayState(MDefinition *arr)
|
||||
{
|
||||
// This instruction is only used as a summary for bailout paths.
|
||||
setResultType(MIRType_Object);
|
||||
setRecoveredOnBailout();
|
||||
numElements_ = arr->toNewArray()->count();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user