| Index: src/arm/lithium-codegen-arm.cc
|
| ===================================================================
|
| --- src/arm/lithium-codegen-arm.cc (revision 6115)
|
| +++ src/arm/lithium-codegen-arm.cc (working copy)
|
| @@ -1337,14 +1337,16 @@
|
|
|
|
|
| void LCodeGen::DoInstanceOf(LInstanceOf* instr) {
|
| - // We expect object and function in registers r1 and r0.
|
| + ASSERT(ToRegister(instr->left()).is(r0)); // Object is in r0.
|
| + ASSERT(ToRegister(instr->right()).is(r1)); // Function is in r1.
|
| +
|
| InstanceofStub stub(InstanceofStub::kArgsInRegisters);
|
| CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
|
|
|
| Label true_value, done;
|
| __ tst(r0, r0);
|
| - __ mov(r0, Operand(Factory::false_value()), LeaveCC, eq);
|
| - __ mov(r0, Operand(Factory::true_value()), LeaveCC, ne);
|
| + __ mov(r0, Operand(Factory::false_value()), LeaveCC, ne);
|
| + __ mov(r0, Operand(Factory::true_value()), LeaveCC, eq);
|
| }
|
|
|
|
|
|
|