Index: src/ic.cc |
diff --git a/src/ic.cc b/src/ic.cc |
index 83677bdbcca48abe77358cde401c493920216943..0bfb755d954f11a589f7841ca03a3ff1345db9b8 100644 |
--- a/src/ic.cc |
+++ b/src/ic.cc |
@@ -1022,7 +1022,7 @@ bool IC::UpdatePolymorphicIC(State state, |
number_of_valid_maps++; |
if (handler_to_overwrite >= 0) { |
- handlers.InsertAt(handler_to_overwrite, code); |
+ handlers.Set(handler_to_overwrite, code); |
} else { |
receiver_maps.Add(new_receiver_map); |
handlers.Add(code); |