| Index: src/ic.cc
|
| diff --git a/src/ic.cc b/src/ic.cc
|
| index 148e06976f6ad6387f76ebf7a10eb9946337ea66..ef8ab8a309eb3a4e5bb067f3cf2419b3629f05c4 100644
|
| --- a/src/ic.cc
|
| +++ b/src/ic.cc
|
| @@ -937,7 +937,13 @@ MaybeObject* LoadIC::Load(State state,
|
|
|
| // Update inline cache and stub cache.
|
| if (FLAG_use_ic) {
|
| - UpdateCaches(&lookup, state, object, name);
|
| + if (!object->IsJSObject()) {
|
| + // TODO(jkummerow): It would be nice to support non-JSObjects in
|
| + // UpdateCaches, then we wouldn't need to go generic here.
|
| + set_target(*generic_stub());
|
| + } else {
|
| + UpdateCaches(&lookup, state, object, name);
|
| + }
|
| }
|
|
|
| PropertyAttributes attr;
|
|
|