Index: src/compiler/js-intrinsic-lowering.cc |
diff --git a/src/compiler/js-intrinsic-lowering.cc b/src/compiler/js-intrinsic-lowering.cc |
index 3e9014712e417f663046dbbf71c96308063b17c2..a18551c6426745db9ef43ac8fe517ae427b9c2c3 100644 |
--- a/src/compiler/js-intrinsic-lowering.cc |
+++ b/src/compiler/js-intrinsic-lowering.cc |
@@ -86,8 +86,6 @@ |
case Runtime::kInlineArrayBufferViewGetByteOffset: |
return ReduceArrayBufferViewField( |
node, AccessBuilder::ForJSArrayBufferViewByteOffset()); |
- case Runtime::kInlineArrayBufferViewWasNeutered: |
- return ReduceArrayBufferViewWasNeutered(node); |
case Runtime::kInlineMaxSmi: |
return ReduceMaxSmi(node); |
case Runtime::kInlineTypedArrayGetLength: |
@@ -376,22 +374,6 @@ |
return Replace(value); |
} |
-Reduction JSIntrinsicLowering::ReduceArrayBufferViewWasNeutered(Node* node) { |
- Node* receiver = NodeProperties::GetValueInput(node, 0); |
- Node* effect = NodeProperties::GetEffectInput(node); |
- Node* control = NodeProperties::GetControlInput(node); |
- |
- // Check if the {receiver}s buffer was neutered. |
- Node* receiver_buffer = effect = graph()->NewNode( |
- simplified()->LoadField(AccessBuilder::ForJSArrayBufferViewBuffer()), |
- receiver, effect, control); |
- Node* value = effect = graph()->NewNode( |
- simplified()->ArrayBufferWasNeutered(), receiver_buffer, effect, control); |
- |
- ReplaceWithValue(node, value, effect, control); |
- return Replace(value); |
-} |
- |
Reduction JSIntrinsicLowering::ReduceMaxSmi(Node* node) { |
Node* value = jsgraph()->Constant(Smi::kMaxValue); |
ReplaceWithValue(node, value); |