Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(582)

Unified Diff: src/ic.cc

Issue 14566007: Overwrite the handler using Set. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/list.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | src/list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698