Index: test/cctest/test-feedback-vector.cc |
diff --git a/test/cctest/test-feedback-vector.cc b/test/cctest/test-feedback-vector.cc |
index c9dca60143768f2061a0fd07d67ed0e0e2c39bba..c06e5b9124a3e387e2c160846ed370f22637fbc0 100644 |
--- a/test/cctest/test-feedback-vector.cc |
+++ b/test/cctest/test-feedback-vector.cc |
@@ -208,7 +208,7 @@ |
Handle<JSFunction> f = GetFunction("f"); |
// There should be one IC. |
Handle<TypeFeedbackVector> feedback_vector = |
- Handle<TypeFeedbackVector>(f->feedback_vector(), isolate); |
+ Handle<TypeFeedbackVector>(f->shared()->feedback_vector(), isolate); |
FeedbackVectorSlot slot(0); |
CallICNexus nexus(feedback_vector, slot); |
CHECK_EQ(MONOMORPHIC, nexus.StateFromFeedback()); |
@@ -249,7 +249,7 @@ |
Handle<JSFunction> f = GetFunction("f"); |
// There should be one IC. |
Handle<TypeFeedbackVector> feedback_vector = |
- Handle<TypeFeedbackVector>(f->feedback_vector(), isolate); |
+ Handle<TypeFeedbackVector>(f->shared()->feedback_vector(), isolate); |
FeedbackVectorSlot slot(0); |
LoadICNexus nexus(feedback_vector, slot); |
CHECK_EQ(PREMONOMORPHIC, nexus.StateFromFeedback()); |
@@ -308,7 +308,7 @@ |
Handle<JSFunction> f = GetFunction("f"); |
// There should be one IC slot. |
Handle<TypeFeedbackVector> feedback_vector = |
- Handle<TypeFeedbackVector>(f->feedback_vector(), isolate); |
+ Handle<TypeFeedbackVector>(f->shared()->feedback_vector(), isolate); |
FeedbackVectorHelper helper(feedback_vector); |
CHECK_EQ(1, helper.slot_count()); |
FeedbackVectorSlot slot(0); |
@@ -332,7 +332,7 @@ |
Handle<JSFunction> f = GetFunction("f"); |
// There should be one IC. |
Handle<TypeFeedbackVector> feedback_vector = |
- Handle<TypeFeedbackVector>(f->feedback_vector(), isolate); |
+ Handle<TypeFeedbackVector>(f->shared()->feedback_vector(), isolate); |
FeedbackVectorSlot slot(0); |
LoadICNexus nexus(feedback_vector, slot); |
CHECK_EQ(PREMONOMORPHIC, nexus.StateFromFeedback()); |
@@ -397,7 +397,7 @@ |
// There should be two LOAD_ICs, one for a and one for y at the end. |
Handle<TypeFeedbackVector> feedback_vector = |
- handle(f->feedback_vector(), isolate); |
+ handle(f->shared()->feedback_vector(), isolate); |
FeedbackVectorHelper helper(feedback_vector); |
CHECK_EQ(4, helper.slot_count()); |
CHECK_SLOT_KIND(helper, 0, FeedbackVectorSlotKind::STORE_IC); |
@@ -416,7 +416,7 @@ |
Handle<JSFunction> f = GetFunction("testprop"); |
// There should be one LOAD_IC, for the load of a. |
- Handle<TypeFeedbackVector> feedback_vector(f->feedback_vector()); |
+ Handle<TypeFeedbackVector> feedback_vector(f->shared()->feedback_vector()); |
FeedbackVectorHelper helper(feedback_vector); |
CHECK_EQ(2, helper.slot_count()); |
} |
@@ -433,7 +433,7 @@ |
Handle<JSFunction> f = GetFunction("testpropfunc"); |
// There should be 2 LOAD_ICs and 2 CALL_ICs. |
- Handle<TypeFeedbackVector> feedback_vector(f->feedback_vector()); |
+ Handle<TypeFeedbackVector> feedback_vector(f->shared()->feedback_vector()); |
FeedbackVectorHelper helper(feedback_vector); |
CHECK_EQ(5, helper.slot_count()); |
CHECK_SLOT_KIND(helper, 0, FeedbackVectorSlotKind::CALL_IC); |
@@ -455,7 +455,7 @@ |
// There should be 1 LOAD_ICs for the load of a, and one KEYED_LOAD_IC for |
// the load of x[0] in the return statement. |
- Handle<TypeFeedbackVector> feedback_vector(f->feedback_vector()); |
+ Handle<TypeFeedbackVector> feedback_vector(f->shared()->feedback_vector()); |
FeedbackVectorHelper helper(feedback_vector); |
CHECK_EQ(3, helper.slot_count()); |
CHECK_SLOT_KIND(helper, 0, FeedbackVectorSlotKind::LOAD_IC); |
@@ -474,7 +474,7 @@ |
Handle<JSFunction> f = GetFunction("testcompound"); |
// There should be 3 LOAD_ICs, for load of a and load of x.old and x.young. |
- Handle<TypeFeedbackVector> feedback_vector(f->feedback_vector()); |
+ Handle<TypeFeedbackVector> feedback_vector(f->shared()->feedback_vector()); |
FeedbackVectorHelper helper(feedback_vector); |
CHECK_EQ(6, helper.slot_count()); |
CHECK_SLOT_KIND(helper, 0, FeedbackVectorSlotKind::LOAD_IC); |
@@ -504,7 +504,7 @@ |
"f(a);"); |
Handle<JSFunction> f = GetFunction("f"); |
// There should be one IC slot. |
- Handle<TypeFeedbackVector> feedback_vector(f->feedback_vector()); |
+ Handle<TypeFeedbackVector> feedback_vector(f->shared()->feedback_vector()); |
FeedbackVectorHelper helper(feedback_vector); |
CHECK_EQ(1, helper.slot_count()); |
FeedbackVectorSlot slot(0); |