Commit 29bee160 authored by balazs.kilvady's avatar balazs.kilvady Committed by Commit bot

MIPS: Fix 'Add HArrayBufferNotNeutered instruction'.

BUG=

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

Cr-Commit-Position: refs/heads/master@{#28117}
parent b108f461
......@@ -5178,7 +5178,7 @@ void LCodeGen::DoCheckArrayBufferNotNeutered(
__ JumpIfSmi(scratch, &has_no_buffer);
__ lw(scratch, FieldMemOperand(scratch, JSArrayBuffer::kBitFieldOffset));
__ And(at, scratch, 1 << JSArrayBuffer::WasNeutered::kShift);
DeoptimizeIf(ne, instr, Deoptimizer::kOutOfBounds);
DeoptimizeIf(ne, instr, Deoptimizer::kOutOfBounds, at, Operand(zero_reg));
__ bind(&has_no_buffer);
}
......
......@@ -5234,11 +5234,11 @@ void LCodeGen::DoCheckArrayBufferNotNeutered(
Register scratch = scratch0();
Label has_no_buffer;
__ lw(scratch, FieldMemOperand(view, JSArrayBufferView::kBufferOffset));
__ ld(scratch, FieldMemOperand(view, JSArrayBufferView::kBufferOffset));
__ JumpIfSmi(scratch, &has_no_buffer);
__ lw(scratch, FieldMemOperand(scratch, JSArrayBuffer::kBitFieldOffset));
__ ld(scratch, FieldMemOperand(scratch, JSArrayBuffer::kBitFieldOffset));
__ And(at, scratch, 1 << JSArrayBuffer::WasNeutered::kShift);
DeoptimizeIf(ne, instr, Deoptimizer::kOutOfBounds);
DeoptimizeIf(ne, instr, Deoptimizer::kOutOfBounds, at, Operand(zero_reg));
__ 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