MIPS: Fix 'Add HArrayBufferNotNeutered instruction'.
BUG= Review URL: https://codereview.chromium.org/1111003002 Cr-Commit-Position: refs/heads/master@{#28117}
This commit is contained in:
parent
b108f4615c
commit
29bee1604f
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user