Index: src/type-feedback-vector.cc |
diff --git a/src/type-feedback-vector.cc b/src/type-feedback-vector.cc |
index 9fb03bb67391b28e275c87faf194ef88d1e82a5e..97d58613e99e452f40099f8f4a2d2d7d43493175 100644 |
--- a/src/type-feedback-vector.cc |
+++ b/src/type-feedback-vector.cc |
@@ -520,6 +520,19 @@ void CallICNexus::ConfigureMonomorphic(Handle<JSFunction> function) { |
} |
+void CallICNexus::ConfigureMegamorphic() { |
+ FeedbackNexus::ConfigureMegamorphic(); |
+} |
+ |
+ |
+void CallICNexus::ConfigureMegamorphic(int call_count) { |
+ SetFeedback(*TypeFeedbackVector::MegamorphicSentinel(GetIsolate()), |
+ SKIP_WRITE_BARRIER); |
+ SetFeedbackExtra(Smi::FromInt(call_count * kCallCountIncrement), |
+ SKIP_WRITE_BARRIER); |
+} |
+ |
+ |
void LoadICNexus::ConfigureMonomorphic(Handle<Map> receiver_map, |
Handle<Code> handler) { |
Handle<WeakCell> cell = Map::WeakCellForMap(receiver_map); |