зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1055864 - IonMonkey: Remove bogus assert in MTruncateToInt32, r=jandem
This commit is contained in:
Родитель
ef1c647d6b
Коммит
d7c0ae169d
|
@ -0,0 +1,8 @@
|
||||||
|
function f() {}
|
||||||
|
(function() {
|
||||||
|
f()
|
||||||
|
})()
|
||||||
|
function g() {
|
||||||
|
new f >> 0
|
||||||
|
}
|
||||||
|
g()
|
|
@ -3918,7 +3918,6 @@ class MTruncateToInt32
|
||||||
|
|
||||||
// An object might have "valueOf", which means it is effectful.
|
// An object might have "valueOf", which means it is effectful.
|
||||||
// ToInt32(symbol) throws.
|
// ToInt32(symbol) throws.
|
||||||
MOZ_ASSERT(def->type() != MIRType_Object);
|
|
||||||
if (def->mightBeType(MIRType_Object) || def->mightBeType(MIRType_Symbol))
|
if (def->mightBeType(MIRType_Object) || def->mightBeType(MIRType_Symbol))
|
||||||
setGuard();
|
setGuard();
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче