| Index: src/arm/stub-cache-arm.cc
|
| ===================================================================
|
| --- src/arm/stub-cache-arm.cc (revision 7926)
|
| +++ src/arm/stub-cache-arm.cc (working copy)
|
| @@ -2262,6 +2262,7 @@
|
| // repatch it to global receiver.
|
| if (object->IsGlobalObject()) return heap()->undefined_value();
|
| if (cell != NULL) return heap()->undefined_value();
|
| + if (!object->IsJSObject()) return heap()->undefined_value();
|
| int depth = optimization.GetPrototypeDepthOfExpectedType(
|
| JSObject::cast(object), holder);
|
| if (depth == kInvalidProtoDepth) return heap()->undefined_value();
|
|
|