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

Unified Diff: src/heap/heap.cc

Issue 2672363002: Link type feedback vectors to the shared function info. (Closed)
Patch Set: rebase Created 3 years, 10 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 3bb240e40b0b9fec145a7da57aabaa608f4b11d6..4451b5a6a5bc824c4fd2b5378ab99a3fce62c46c 100644
--- a/src/heap/heap.cc
+++ b/src/heap/heap.cc
@@ -2756,23 +2756,6 @@ void Heap::CreateInitialObjects() {
set_microtask_queue(empty_fixed_array());
{
- // Create a canonical empty FeedbackVector, which is shared by all
- // functions that don't need actual type feedback slots. Note however
- // that all these functions will share the same invocation count, but
- // that shouldn't matter since we only use the invocation count to
- // relativize the absolute call counts, but we can only have call counts
- // if we have actual feedback slots.
- Handle<FixedArray> empty_feedback_vector =
- factory->NewFixedArray(FeedbackVector::kReservedIndexCount, TENURED);
- empty_feedback_vector->set(FeedbackVector::kMetadataIndex,
- empty_fixed_array());
- empty_feedback_vector->set(FeedbackVector::kInvocationCountIndex,
- Smi::kZero);
- empty_feedback_vector->set_map(feedback_vector_map());
- set_empty_feedback_vector(*empty_feedback_vector);
- }
-
- {
Handle<FixedArray> empty_sloppy_arguments_elements =
factory->NewFixedArray(2, TENURED);
empty_sloppy_arguments_elements->set_map(sloppy_arguments_elements_map());
@@ -2938,7 +2921,6 @@ bool Heap::RootCanBeWrittenAfterInitialization(Heap::RootListIndex root_index) {
}
}
-
bool Heap::RootCanBeTreatedAsConstant(RootListIndex root_index) {
return !RootCanBeWrittenAfterInitialization(root_index) &&
!InNewSpace(root(root_index));
« 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