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

Unified Diff: src/objects.cc

Issue 2680313002: Count closures using the feedback vector cell map, specialize if count==1. (Closed)
Patch Set: Only specialize if compiling from bytecode 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.cc ('k') | test/cctest/test-compiler.cc » ('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 243b10b222a0a662165d57a82a46b852d1ddf7f4..59467798eb0f7b78b3dea770a648d269bcd695c6 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -12118,7 +12118,8 @@ void JSFunction::EnsureLiterals(Handle<JSFunction> function) {
// A top level script didn't get it's literals installed.
Handle<FeedbackVector> feedback_vector =
FeedbackVector::New(isolate, shared);
- Handle<Cell> new_cell = isolate->factory()->NewCell(feedback_vector);
+ Handle<Cell> new_cell =
+ isolate->factory()->NewOneClosureCell(feedback_vector);
function->set_feedback_vector_cell(*new_cell);
break;
}
« no previous file with comments | « src/heap/heap.cc ('k') | test/cctest/test-compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698