Index: src/runtime/runtime-array.cc |
diff --git a/src/runtime/runtime-array.cc b/src/runtime/runtime-array.cc |
index d40557474d361071e191b71c5912676ae18fa7fa..e22ea61de92fd5fd743f425eaa027972ed4ec390 100644 |
--- a/src/runtime/runtime-array.cc |
+++ b/src/runtime/runtime-array.cc |
@@ -1254,7 +1254,8 @@ RUNTIME_FUNCTION(Runtime_GrowArrayElements) { |
if (index >= capacity) { |
if (object->WouldConvertToSlowElements(index)) { |
- JSObject::NormalizeElements(object); |
+ // We don't want to allow operations that cause lazy deopt. Return a Smi |
+ // as a signal that optimized code should eagerly deoptimize. |
return Smi::FromInt(0); |
} |