PPC: use the correct condition register

R=joransiu@ca.ibm.com, jyan@ca.ibm.com
BUG=
LOG=N

Change-Id: I73498982db3f247dfd88702b498e882e2a1ef508
Reviewed-on: https://chromium-review.googlesource.com/646711
Commit-Queue: Junliang Yan <jyan@ca.ibm.com>
Reviewed-by: Junliang Yan <jyan@ca.ibm.com>
Cr-Commit-Position: refs/heads/master@{#47754}
This commit is contained in:
Jaideep Bajwa 2017-08-31 18:45:08 -04:00 committed by Commit Bot
parent fbe184a602
commit b9747f357f

View File

@ -1775,7 +1775,7 @@ void CallApiCallbackStub::Generate(MacroAssembler* masm) {
__ LoadP(scratch, FieldMemOperand(accessor_holder, HeapObject::kMapOffset));
__ LoadP(scratch2, FieldMemOperand(scratch, Map::kBitFieldOffset));
__ andi(r0, scratch2, Operand(1 << Map::kIsConstructor));
__ bne(&skip_looking_for_constructor);
__ bne(&skip_looking_for_constructor, cr0);
__ GetMapConstructor(context, scratch, scratch, scratch2);
__ bind(&skip_looking_for_constructor);
__ LoadP(context, FieldMemOperand(context, JSFunction::kContextOffset));