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

Unified Diff: src/type-feedback-vector.cc

Issue 1080253003: VectorICs: recreate feedback vector if scoping changes on recompile. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rename a function. Created 5 years, 8 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/type-feedback-vector.h ('k') | test/mjsunit/regress/regress-476488.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/type-feedback-vector.cc
diff --git a/src/type-feedback-vector.cc b/src/type-feedback-vector.cc
index 145506334982db54c24b49434100a8b7a0dde3b1..efefbffc5bbbe2016693d26bdb1bf3076369e3ed 100644
--- a/src/type-feedback-vector.cc
+++ b/src/type-feedback-vector.cc
@@ -137,6 +137,22 @@ Handle<TypeFeedbackVector> TypeFeedbackVector::Copy(
}
+bool TypeFeedbackVector::SpecDiffersFrom(
+ const ZoneFeedbackVectorSpec* other_spec) const {
+ if (other_spec->slots() != Slots() || other_spec->ic_slots() != ICSlots()) {
+ return true;
+ }
+
+ int ic_slots = ICSlots();
+ for (int i = 0; i < ic_slots; i++) {
+ if (GetKind(FeedbackVectorICSlot(i)) != other_spec->GetKind(i)) {
+ return true;
+ }
+ }
+ return false;
+}
+
+
// This logic is copied from
// StaticMarkingVisitor<StaticVisitor>::VisitCodeTarget.
static bool ClearLogic(Heap* heap) {
« no previous file with comments | « src/type-feedback-vector.h ('k') | test/mjsunit/regress/regress-476488.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698