зеркало из https://github.com/mozilla/gecko-dev.git
Check for functions in instanceof fast path, bug 642174.
This commit is contained in:
Родитель
f41bc421d6
Коммит
52c40676b7
|
@ -4593,13 +4593,13 @@ mjit::Compiler::jsop_instanceof()
|
|||
if (!rhs->isTypeKnown()) {
|
||||
Jump j = frame.testObject(Assembler::NotEqual, rhs);
|
||||
stubcc.linkExit(j, Uses(2));
|
||||
RegisterID reg = frame.tempRegForData(rhs);
|
||||
j = masm.testFunction(Assembler::NotEqual, reg);
|
||||
stubcc.linkExit(j, Uses(2));
|
||||
}
|
||||
|
||||
/* Test for bound functions. */
|
||||
RegisterID obj = frame.tempRegForData(rhs);
|
||||
Jump notFunction = masm.testFunction(Assembler::NotEqual, obj);
|
||||
stubcc.linkExit(notFunction, Uses(2));
|
||||
|
||||
/* Test for bound functions. */
|
||||
Jump isBound = masm.branchTest32(Assembler::NonZero, Address(obj, offsetof(JSObject, flags)),
|
||||
Imm32(JSObject::BOUND_FUNCTION));
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче