Commit b108f461 authored by mbrandy's avatar mbrandy Committed by Commit bot

PPC: Fix HArrayBufferNotNeutered instruction

Fix faulty condition register usage after andi.

BUG=
R=dstence@us.ibm.com, michael_dawson@ca.ibm.com, jochen@chromium.org, bmeurer@chromium.org

Review URL: https://codereview.chromium.org/1108363002

Cr-Commit-Position: refs/heads/master@{#28116}
parent 525f7c85
...@@ -5433,9 +5433,9 @@ void LCodeGen::DoCheckArrayBufferNotNeutered( ...@@ -5433,9 +5433,9 @@ void LCodeGen::DoCheckArrayBufferNotNeutered(
Label has_no_buffer; Label has_no_buffer;
__ LoadP(scratch, FieldMemOperand(view, JSArrayBufferView::kBufferOffset)); __ LoadP(scratch, FieldMemOperand(view, JSArrayBufferView::kBufferOffset));
__ JumpIfSmi(scratch, &has_no_buffer); __ JumpIfSmi(scratch, &has_no_buffer);
__ LoadP(scratch, FieldMemOperand(scratch, JSArrayBuffer::kBitFieldOffset)); __ lwz(scratch, FieldMemOperand(scratch, JSArrayBuffer::kBitFieldOffset));
__ andi(r0, scratch, Operand(1 << JSArrayBuffer::WasNeutered::kShift)); __ andi(r0, scratch, Operand(1 << JSArrayBuffer::WasNeutered::kShift));
DeoptimizeIf(ne, instr, Deoptimizer::kOutOfBounds); DeoptimizeIf(ne, instr, Deoptimizer::kOutOfBounds, cr0);
__ bind(&has_no_buffer); __ bind(&has_no_buffer);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment