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

Unified Diff: src/objects.cc

Issue 2161153002: [ic] Fix megamorphic stub cache probing on some platforms. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressing comments Created 4 years, 5 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 | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index ad7df3765f14a2f9334a5970b565a137242e395d..6fa034a87d896cf499e6ce22b8f51a54dd166b4a 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -17426,6 +17426,17 @@ Handle<UnseededNumberDictionary> UnseededNumberDictionary::AddNumberEntry(
return Add(dictionary, key, value, PropertyDetails::Empty());
}
+Handle<UnseededNumberDictionary> UnseededNumberDictionary::DeleteKey(
+ Handle<UnseededNumberDictionary> dictionary, uint32_t key) {
+ int entry = dictionary->FindEntry(key);
+ if (entry == kNotFound) return dictionary;
+
+ Factory* factory = dictionary->GetIsolate()->factory();
+ dictionary->SetEntry(entry, factory->the_hole_value(),
+ factory->the_hole_value());
+ dictionary->ElementRemoved();
+ return dictionary->Shrink(dictionary, key);
+}
Handle<SeededNumberDictionary> SeededNumberDictionary::AtNumberPut(
Handle<SeededNumberDictionary> dictionary, uint32_t key,
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698