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:
balazs.kilvady 2015-04-28 10:20:49 -07:00 committed by Commit bot
parent b108f4615c
commit 29bee1604f
2 changed files with 4 additions and 4 deletions

View File

@ -5178,7 +5178,7 @@ void LCodeGen::DoCheckArrayBufferNotNeutered(
__ JumpIfSmi(scratch, &has_no_buffer); __ JumpIfSmi(scratch, &has_no_buffer);
__ lw(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); DeoptimizeIf(ne, instr, Deoptimizer::kOutOfBounds, at, Operand(zero_reg));
__ bind(&has_no_buffer); __ bind(&has_no_buffer);
} }

View File

@ -5234,11 +5234,11 @@ void LCodeGen::DoCheckArrayBufferNotNeutered(
Register scratch = scratch0(); Register scratch = scratch0();
Label has_no_buffer; Label has_no_buffer;
__ lw(scratch, FieldMemOperand(view, JSArrayBufferView::kBufferOffset)); __ ld(scratch, FieldMemOperand(view, JSArrayBufferView::kBufferOffset));
__ JumpIfSmi(scratch, &has_no_buffer); __ JumpIfSmi(scratch, &has_no_buffer);
__ lw(scratch, FieldMemOperand(scratch, JSArrayBuffer::kBitFieldOffset)); __ ld(scratch, FieldMemOperand(scratch, JSArrayBuffer::kBitFieldOffset));
__ And(at, scratch, 1 << JSArrayBuffer::WasNeutered::kShift); __ 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); __ bind(&has_no_buffer);
} }