Index: src/mips64/lithium-codegen-mips64.cc |
diff --git a/src/mips64/lithium-codegen-mips64.cc b/src/mips64/lithium-codegen-mips64.cc |
index c7dd637c24a4e708b9178a5bb85f5d54a5dd032b..bf3119d080aa752f9497be9aa864495d7739ca88 100644 |
--- a/src/mips64/lithium-codegen-mips64.cc |
+++ b/src/mips64/lithium-codegen-mips64.cc |
@@ -5228,6 +5228,22 @@ void LCodeGen::DoCheckNonSmi(LCheckNonSmi* instr) { |
} |
+void LCodeGen::DoCheckArrayBufferNotNeutered( |
+ LCheckArrayBufferNotNeutered* instr) { |
+ Register view = ToRegister(instr->view()); |
+ Register scratch = scratch0(); |
+ |
+ Label has_no_buffer; |
+ __ lw(scratch, FieldMemOperand(view, JSArrayBufferView::kBufferOffset)); |
+ __ JumpIfSmi(scratch, &has_no_buffer); |
+ __ lw(scratch, FieldMemOperand(scratch, JSArrayBuffer::kBitFieldOffset)); |
+ __ And(at, scratch, 1 << JSArrayBuffer::WasNeutered::kShift); |
+ DeoptimizeIf(ne, instr, Deoptimizer::kOutOfBounds); |
+ |
+ __ bind(&has_no_buffer); |
+} |
+ |
+ |
void LCodeGen::DoCheckInstanceType(LCheckInstanceType* instr) { |
Register input = ToRegister(instr->value()); |
Register scratch = scratch0(); |