| Index: src/ic/ic.cc
|
| diff --git a/src/ic/ic.cc b/src/ic/ic.cc
|
| index ce9f328f07eafde6472253c824e9d0887e282cf9..f9428917ea4f197a5195989c4a5ecdd180f7d2f8 100644
|
| --- a/src/ic/ic.cc
|
| +++ b/src/ic/ic.cc
|
| @@ -1024,7 +1024,8 @@
|
| // cache (which just missed) is different from the cached handler.
|
| if (state() == MEGAMORPHIC && lookup->GetReceiver()->IsHeapObject()) {
|
| Map* map = Handle<HeapObject>::cast(lookup->GetReceiver())->map();
|
| - Code* megamorphic_cached_code = stub_cache()->Get(*lookup->name(), map);
|
| + Code* megamorphic_cached_code =
|
| + stub_cache()->Get(*lookup->name(), map, code->flags());
|
| if (megamorphic_cached_code != *code) {
|
| TRACE_HANDLER_STATS(isolate(), IC_HandlerCacheHit);
|
| return code;
|
|
|