Index: src/runtime/runtime-object.cc |
diff --git a/src/runtime/runtime-object.cc b/src/runtime/runtime-object.cc |
index 9853c5f5dfc52d2878701bc217165395f03cada0..a75beeb61af7e025cc5f43a5854d9f216dd90fb0 100644 |
--- a/src/runtime/runtime-object.cc |
+++ b/src/runtime/runtime-object.cc |
@@ -707,6 +707,7 @@ RUNTIME_FUNCTION(Runtime_CollectTypeProfile) { |
type = JSReceiver::GetConstructorName(object); |
} |
+ DCHECK(!vector->ToSlot(index).IsInvalid()); |
CollectTypeProfileNexus nexus(vector, vector->ToSlot(index)); |
nexus.Collect(type, position->value()); |