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

Unified Diff: src/heap/heap.cc

Issue 2655853010: [TypeFeedbackVector] Combine the literals array and the feedback vector. (Closed)
Patch Set: more comments. Created 3 years, 11 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/object-stats.cc » ('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 00a7b02fd3558ceb12b3a0d863f0ad6f8d2bf243..6a5456240053e864e94f8a313376d2261272b8a6 100644
--- a/src/heap/heap.cc
+++ b/src/heap/heap.cc
@@ -2800,14 +2800,6 @@ void Heap::CreateInitialObjects() {
Smi::kZero);
empty_type_feedback_vector->set_map(type_feedback_vector_map());
set_empty_type_feedback_vector(*empty_type_feedback_vector);
-
- // We use a canonical empty LiteralsArray for all functions that neither
- // have literals nor need a TypeFeedbackVector (besides the invocation
- // count special slot).
- Handle<FixedArray> empty_literals_array =
- factory->NewFixedArray(1, TENURED);
- empty_literals_array->set(0, *empty_type_feedback_vector);
- set_empty_literals_array(*empty_literals_array);
}
{
« no previous file with comments | « src/heap/heap.h ('k') | src/heap/object-stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698