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

Unified Diff: src/heap/heap.cc

Issue 2401653002: [turbofan] Discard the shared code entry in the optimized code map. (Closed)
Patch Set: Dead code. Created 4 years, 2 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
Index: src/heap/heap.cc
diff --git a/src/heap/heap.cc b/src/heap/heap.cc
index b15a5d2790a91ca54aa35553e9aa3525e93d20ed..7179be4fe95fdbe8ca1079a558d6ab39d4e5f126 100644
--- a/src/heap/heap.cc
+++ b/src/heap/heap.cc
@@ -2826,14 +2826,6 @@ void Heap::CreateInitialObjects() {
Handle<WeakCell> cell = factory->NewWeakCell(factory->undefined_value());
set_empty_weak_cell(*cell);
cell->clear();
-
- Handle<FixedArray> cleared_optimized_code_map =
- factory->NewFixedArray(SharedFunctionInfo::kEntriesStart, TENURED);
- cleared_optimized_code_map->set(SharedFunctionInfo::kSharedCodeIndex,
- *cell);
- STATIC_ASSERT(SharedFunctionInfo::kEntriesStart == 1 &&
- SharedFunctionInfo::kSharedCodeIndex == 0);
- set_cleared_optimized_code_map(*cleared_optimized_code_map);
}
set_detached_contexts(empty_fixed_array());
« src/builtins/arm/builtins-arm.cc ('K') | « src/heap/heap.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698