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

Unified Diff: src/heap/heap.cc

Issue 2932263002: [cleanup] Remove instanceof cache. (Closed)
Patch Set: Created 3 years, 6 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/heap/heap.h ('k') | src/heap/heap-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/heap.cc
diff --git a/src/heap/heap.cc b/src/heap/heap.cc
index 6d135061264fc2429e49258c1034d3ea0180f766..8b1494d2807a1d400a7b80c981a2a5220f33453d 100644
--- a/src/heap/heap.cc
+++ b/src/heap/heap.cc
@@ -1542,8 +1542,6 @@ void Heap::MarkCompactPrologue() {
isolate_->compilation_cache()->MarkCompactPrologue();
- CompletelyClearInstanceofCache();
-
FlushNumberStringCache();
ClearNormalizedMapCaches();
}
@@ -2729,10 +2727,6 @@ void Heap::CreateInitialObjects() {
// expanding the dictionary during bootstrapping.
set_code_stubs(*UnseededNumberDictionary::New(isolate(), 128));
- set_instanceof_cache_function(Smi::kZero);
- set_instanceof_cache_map(Smi::kZero);
- set_instanceof_cache_answer(Smi::kZero);
-
{
HandleScope scope(isolate());
#define SYMBOL_INIT(name) \
@@ -2927,9 +2921,6 @@ void Heap::CreateInitialObjects() {
bool Heap::RootCanBeWrittenAfterInitialization(Heap::RootListIndex root_index) {
switch (root_index) {
case kNumberStringCacheRootIndex:
- case kInstanceofCacheFunctionRootIndex:
- case kInstanceofCacheMapRootIndex:
- case kInstanceofCacheAnswerRootIndex:
case kCodeStubsRootIndex:
case kScriptListRootIndex:
case kMaterializedObjectsRootIndex:
« no previous file with comments | « src/heap/heap.h ('k') | src/heap/heap-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698