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

Unified Diff: src/objects.cc

Issue 2147433002: [ic] [stubs] Don't use Code::flags in megamorphic stub cache hash computations. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@split-stub-cache
Patch Set: Improved stub cache tests and the fixes. 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/type-info.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..8217a287b48bd08f4f943e4c245ef981343ef899 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -17426,6 +17426,14 @@ Handle<UnseededNumberDictionary> UnseededNumberDictionary::AddNumberEntry(
return Add(dictionary, key, value, PropertyDetails::Empty());
}
+void UnseededNumberDictionary::DeleteKey(uint32_t key) {
+ int entry = FindEntry(key);
+ if (entry == kNotFound) return;
+
+ Factory* factory = GetIsolate()->factory();
+ SetEntry(entry, factory->the_hole_value(), factory->the_hole_value());
+ ElementRemoved();
+}
Handle<SeededNumberDictionary> SeededNumberDictionary::AtNumberPut(
Handle<SeededNumberDictionary> dictionary, uint32_t key,
« no previous file with comments | « src/objects.h ('k') | src/type-info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698