| Index: src/ic/ic.cc
|
| diff --git a/src/ic/ic.cc b/src/ic/ic.cc
|
| index e250a7f367a8fcbdf58ed0300f3be20451d1611b..a6ae92a892c06ac9dcc88ecf093a0201e9f0eb12 100644
|
| --- a/src/ic/ic.cc
|
| +++ b/src/ic/ic.cc
|
| @@ -1005,7 +1005,7 @@ Handle<Code> KeyedLoadIC::initialize_stub(Isolate* isolate) {
|
|
|
| Handle<Code> KeyedLoadIC::initialize_stub_in_optimized_code(
|
| Isolate* isolate, State initialization_state) {
|
| - if (FLAG_vector_ics) {
|
| + if (FLAG_vector_ics && initialization_state != MEGAMORPHIC) {
|
| return VectorRawKeyedLoadStub(isolate).GetCode();
|
| }
|
| switch (initialization_state) {
|
|
|