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

Unified Diff: src/snapshot/serialize.cc

Issue 1632993003: Revert of Type Feedback Vector lives in the closure (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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/runtime/runtime-test.cc ('k') | src/type-feedback-vector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/snapshot/serialize.cc
diff --git a/src/snapshot/serialize.cc b/src/snapshot/serialize.cc
index 09d20d8170b07e9f3e49bb6f3d0bd2bc4061d756..58a80940ee51b8d8403b7daa156bb19e3c022e04 100644
--- a/src/snapshot/serialize.cc
+++ b/src/snapshot/serialize.cc
@@ -1797,15 +1797,8 @@
// Clear literal boilerplates.
if (obj->IsJSFunction()) {
- LiteralsArray* literals = JSFunction::cast(obj)->literals();
- for (int i = 0; i < literals->literals_count(); i++) {
- literals->set_undefined(i);
- }
- // TODO(mvstanton): remove this line when the vector moves to the closure.
- // We need to clear the vector so the serializer doesn't try to serialize
- // the vector in the startup snapshot and the partial snapshot(s).
- literals->set_feedback_vector(
- TypeFeedbackVector::cast(isolate_->heap()->empty_fixed_array()));
+ FixedArray* literals = JSFunction::cast(obj)->literals();
+ for (int i = 0; i < literals->length(); i++) literals->set_undefined(i);
}
// Object has not yet been serialized. Serialize it here.
« no previous file with comments | « src/runtime/runtime-test.cc ('k') | src/type-feedback-vector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698