Index: src/x87/lithium-codegen-x87.cc |
diff --git a/src/x87/lithium-codegen-x87.cc b/src/x87/lithium-codegen-x87.cc |
index 13dfc17345f028d757d61387854e54aed7deee8f..62bb19087331b7d142a93a1e93469d050771176f 100644 |
--- a/src/x87/lithium-codegen-x87.cc |
+++ b/src/x87/lithium-codegen-x87.cc |
@@ -5476,6 +5476,22 @@ void LCodeGen::DoCheckNonSmi(LCheckNonSmi* instr) { |
} |
+void LCodeGen::DoCheckArrayBufferNotNeutered( |
+ LCheckArrayBufferNotNeutered* instr) { |
+ Register view = ToRegister(instr->view()); |
+ Register scratch = ToRegister(instr->scratch()); |
+ |
+ Label has_no_buffer; |
+ __ mov(scratch, FieldOperand(view, JSArrayBufferView::kBufferOffset)); |
+ __ JumpIfSmi(scratch, &has_no_buffer); |
+ __ test_b(FieldOperand(scratch, JSArrayBuffer::kBitFieldOffset), |
+ 1 << JSArrayBuffer::WasNeutered::kShift); |
+ DeoptimizeIf(not_zero, instr, Deoptimizer::kOutOfBounds); |
+ |
+ __ bind(&has_no_buffer); |
+} |
+ |
+ |
void LCodeGen::DoCheckInstanceType(LCheckInstanceType* instr) { |
Register input = ToRegister(instr->value()); |
Register temp = ToRegister(instr->temp()); |