Index: src/ic/ic.cc |
diff --git a/src/ic/ic.cc b/src/ic/ic.cc |
index a7a04518f64ee794205b2b1d59d49da5b8dead07..adbd2d7b63ede991f8ba69e1c0edd510efdf63fc 100644 |
--- a/src/ic/ic.cc |
+++ b/src/ic/ic.cc |
@@ -813,8 +813,8 @@ Handle<Code> LoadIC::initialize_stub(Isolate* isolate, |
Handle<Code> LoadIC::megamorphic_stub() { |
if (kind() == Code::LOAD_IC) { |
- return PropertyICCompiler::ComputeLoad(isolate(), MEGAMORPHIC, |
- extra_ic_state()); |
+ MegamorphicLoadStub stub(isolate(), State(extra_ic_state())); |
+ return stub.GetCode(); |
} else { |
DCHECK_EQ(Code::KEYED_LOAD_IC, kind()); |
return KeyedLoadIC::generic_stub(isolate()); |