Commit fcae4940 authored by balazs.kilvady's avatar balazs.kilvady Committed by Commit bot

MIPS: Followup 'Fix Add HArrayBufferNotNeutered instruction'.

Followup fix of nit discussed in Issue 1111003002.

BUG=

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

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