| Index: src/ic/ic.h
|
| diff --git a/src/ic/ic.h b/src/ic/ic.h
|
| index c9818f5a5b6ce39adbe98e0e3f7041f89a2c9bef..9a643438a903bf910057c32be4a76c0cb7ebdf72 100644
|
| --- a/src/ic/ic.h
|
| +++ b/src/ic/ic.h
|
| @@ -26,6 +26,10 @@ class IC {
|
| // or with a single extra frame for supporting calls.
|
| enum FrameDepth { NO_EXTRA_FRAME = 0, EXTRA_CALL_FRAME = 1 };
|
|
|
| + // A polymorphic IC can handle at most 4 distinct maps before transitioning
|
| + // to megamorphic state.
|
| + static constexpr int kMaxPolymorphicMapCount = 4;
|
| +
|
| // Construct the IC structure with the given number of extra
|
| // JavaScript frames on the stack.
|
| IC(FrameDepth depth, Isolate* isolate, FeedbackNexus* nexus = NULL);
|
|
|